LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-29-2015, 04:48 PM   #1
GreenFireFly
Member
 
Registered: Jul 2013
Posts: 218

Rep: Reputation: Disabled
Question alsamixer no pcm meter


Hello Everyone,

I needed to record my desktop audio so i loaded the sound loop module

modprobe snd_aloop

then i found this asoundrc and copied it to /home/username/.asoundrc.
Code:
pcm.!default {
  type asym
  playback.pcm "LoopAndReal"
  #capture.pcm "looprec"
  capture.pcm "hw:2,1"
}

pcm.looprec {
    type hw
    card "Loopback"
    device 1
    subdevice 0
}


pcm.LoopAndReal {
  type plug
  slave.pcm mdev
  route_policy "duplicate"
}


pcm.mdev {
  type multi
  slaves.a.pcm pcm.MixReale
  slaves.a.channels 2
  slaves.b.pcm pcm.MixLoopback
  slaves.b.channels 2
  bindings.0.slave a
  bindings.0.channel 0
  bindings.1.slave a
  bindings.1.channel 1
  bindings.2.slave b
  bindings.2.channel 0
  bindings.3.slave b
  bindings.3.channel 1
}


pcm.MixReale {
  type dmix
  ipc_key 1024
  slave {
    pcm "hw:0,0"
    rate 48000
    #rate 44100
    periods 128
    period_time 0
    period_size 1024 # must be power of 2
    buffer_size 8192
  }
}

pcm.MixLoopback {
  type dmix
  ipc_key 1025
  slave {
    pcm "hw:Loopback,0,0"
    rate 48000
    #rate 44100
    periods 128
    period_time 0
    period_size 1024 # must be power of 2
    buffer_size 8192
  }
}
I changed the capture.pcm "hw:0,0" to capture.pcm "hw:2,1". I have sound and can capture it with

ffmpeg -f alsa -i hw:2,1 -codec:a libvorbis -qscale:a 6 out.ogg

Problem 1).There is no pcm level meter in the alsamixer.
Problem 2).The ogg file plays in music player but when i try to open it with mhwaveedit i get unexpected end of file.

How can i resolve this?

Last edited by GreenFireFly; 11-29-2015 at 04:52 PM.
 
Old 11-29-2015, 08:17 PM   #2
WLD
LQ Newbie
 
Registered: Nov 2015
Location: UK
Distribution: Slack64-current, Slack64-14.1, Slack-13.37, RISC OS
Posts: 16

Rep: Reputation: Disabled
Not sure about problem 1; maybe you can you try moving your customised files out the way and try with a blank slate and see if PCM mixer returns?

With regards to problem 2 it's probably just a bug in mhwaveedit, you could try converting the file with MPlayer/MEncoder/ffmpeg? Maybe take it back to a WAVE then convert it to an OGG again?

# mplayer -ao pcm:file=raw.wav input.ogg
# ffmpeg -i raw.wav -acodec libvorbis output.ogg
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ALSA- only one program can use sound at a time- no PCM in alsamixer maples Linux - Newbie 3 05-27-2014 12:27 PM
LINE, PCM: definition in the context of alsamixer. stf92 Slackware 4 11-26-2010 03:57 AM
Alsamixer has no PCM option dellthinker Debian 12 08-24-2010 02:40 PM
alsamixer: PCM front attenuator always @100 when starting. stf92 Linux - Software 2 07-31-2010 09:24 AM
My alsamixer is missing PCM,Master and some other controls praveenya Linux - Hardware 1 08-30-2008 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration