Mix two audio inputs and one video input to filesink

Pradeep Reddy pradeep.mundlapudi5 at gmail.com
Tue Jan 22 14:48:40 UTC 2019


Hi All,

I am trying to mix two audio inputs(alsasrc) & one video (v4l2src) input to
a file. I am getting one audio and one video in the filesink, other audio
is missing from filesink. I have tried playing one audio at a time, both
audio's are fine.

can you please check below gstreamer command . correct and suggest me how
to get both audio's in the filesink?

gst-launch-1.0 -e mp4mux name=muxy ! filesink location=out.mp4 \
-e *alsasrc* device="plughw:0,2" do-timestamp=true !
'audio/x-raw,format=S16LE, rate=48000' ! queue max-size-time=10000000000
max-size-bytes=104857600 max-size-buffers=2000 ! lamemp3enc ! muxy.audio_0 \
-e *alsasrc* device="plughw:1,0" do-timestamp=true !
'audio/x-raw,format=S16LE, rate=48000' ! queue max-size-time=10000000000
max-size-bytes=104857600 max-size-buffers=2000 ! lamemp3enc ! muxy.audio_1 \
-e *v4l2src* device=/dev/video10 !  videoconvert !
video/x-raw,format=NV12,width=1280,height=720 ! v4l2h264enc
extra-controls="controls,h264_profile=4,video_bitrate=20000000;" !
h264parse ! queue ! muxy.video_0

Thanks,
Pradeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190122/2bae1b29/attachment.html>


More information about the gstreamer-devel mailing list