GNOME Bugzilla – Bug 690507
No audio recorded when creating an Audio/Video using qtmux
Last modified: 2016-02-07 12:19:41 UTC
I used gst-launch-1.0 -e v4l2src norm=PAL ! 'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1' ! videoconvert ! queue ! mux. alsasrc num-buffers=440 ! audioconvert ! 'audio/x-raw,rate=44100,channels=2' ! queue ! mux. qtmux name=mux ! filesink location=test.mov to record video for a test. There was both video and audio to capture. When I played teh video, the audio was silent.
Are you sure this is a GStreamer issue and not an issue with your sound setup? I tried to reproduce this using: gst-launch-1.0 pulsesrc num-buffers=440 ! audioconvert ! 'audio/x-raw,rate=44100,channels=2' ! queue ! qtmux ! filesink location=/tmp/test.mov and gst-launch-1.0 alsasrc num-buffers=440 ! audioconvert ! 'audio/x-raw,rate=44100,channels=2' ! queue ! qtmux ! filesink location=/tmp/test.mov As it turns out, I had to change something in pavucontrol (I'm running pulseaudio, and all alsa stuff goes through pulse in my setup). I tested with: gst-launch-1.0 alsasrc ! queue ! wavescope ! ximagesink sync=false and also got silence (flat white line). Then I opened pavucontrol, went to the 'Recording' tab, and switched: Alsa capture from [Monitor of Built-in Analog Stereo] to Alsa capture from [Built-in Analog Stereo] and things suddenly started working (white line showed some noise and peaks when I tap on the mic).
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!