Log in

View Full Version : gstreamer audio capture problem


clacker
29th January 2011, 21:28
I'm running gstreamer 0.10 on an Ubuntu 10.04 machine. I am trying to capture the video and audio streams from a website. The video side I have working fine, but I get a reduction in the volume when I use osssrc and I can't tell why.

gst-launch audiotestsrc num-buffers=100 ! audioconvert ! osssink

makes a tone as you would expect

gst-launch audiotestsrc num-buffers=100 ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.ogg
mplayer test.ogg

makes the same tone and encodes it. The playback is the same volume as the first code so I know it's not the compression that's changing the volume.

gst-launch osssrc num-buffers=100 ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.ogg
mplayer test.ogg

plays the sounds from the web page, but at maybe a fifth of the volume.

gst-launch osssrc num-buffers=100 ! volume volume=6.0 ! audioconvert ! vorbisenc ! oggmux ! filesink location=test.ogg
mplayer test.ogg

here the level sounds about right but has some hiss.

Can anyone point me in the correct direction on capturing sound from my audio card using gstreamer?

Thanks