AnsweredAssumed Answered

Record mp4 with video and audio

Question asked by kun zhang on Jun 28, 2019
Latest reply on Jun 30, 2019 by Joan Xie

gst-launch-1.0 videotestsrc num-buffers=2500 ! video/x-raw,width=640,height=480,framerate=25/1 ! queue ! mux. alsasrc num-buffers=4400 ! audioconvert ! audio/x-raw,format=S16LE,rate=7000,channels=2 ! queue ! mux. avimux name=mux ! filesink location=test.avi 

 

IS OK!

-----------------------------------------------------------------------------------------------------------------------------------------------------------

gst-launch-1.0 imxv4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=25/1 ! queue ! mux. alsasrc num-buffers=4400 ! audioconvert ! audio/x-raw,format=S16LE,rate=7000,channels=2 ! queue ! mux. avimux name=mux ! filesink location=test.avi

 

IS NOT OK, err says:

====== IMXV4L2SRC: 4.1.6 build on Sep 21 2018 11:30:07. ======
WARNING: erroneous pipeline: could not link imxv4l2src0 to queue0

 

 

 

Why i am wrong?

Outcomes