Record mp4 with video and audio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Record mp4 with video and audio

971 Views
819265478
Contributor I

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?

0 Kudos
2 Replies

853 Views
819265478
Contributor I

anyone know?

0 Kudos

853 Views
joanxie
NXP TechSupport
NXP TechSupport

try to add "format=(string)$FORMAT" after "video/x-raw"? FORMAT is what you need, like "format=(string)NV12"

0 Kudos