GStreamer record video with audio on Raspberry Pi

Vinod Kesti vinodkesti at yahoo.com
Thu Aug 3 11:27:08 UTC 2017


Ne need to add muxer in the pipline. Splitmuxsink will create/add muxer for
given muxer object to splitmuxsink. Below pipeline should work for you. 

raspivid -t 9999999 -h 720 -w 1280 -fps 60 
    -rot 180 -b 2000000 -o - | gst-launch-1.0 -ve fdsrc num-buffers=-1 ! 
     video/x-h264,width=1280,height=720,framerate=60/1 ! h264parse ! queue 
     ! smux.video alsasrc device=hw:1,0 ! audioconvert ! avenc_aac ! 
    aacparse ! queue ! smux.audio_0 ! splitmuxsink name=smux
location=video%02d.mp4 
    max-size-time=10000000000 max-size-bytes=10000000 muxer=mpegtsmux 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/GStreamer-record-video-with-audio-on-Raspberry-Pi-tp4684070p4684083.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list