Merge video and audio to file

schousda schousda+gstreamer at gmail.com
Fri Sep 2 15:47:08 UTC 2016


Hello,

i'm creating a timelapse video. It's a h.264 MP4 Video. To do this i use the
following code:
___________________________________________________________________________
sudo gst-launch-1.0 multifilesrc location=/home/pi/Timelapse/image_%04d.jpg
index=0 \
caps="image/jpeg,framerate=\(fraction\)24/1" ! \
jpegdec ! \
queue ! \
omxh264enc target-bitrate=15000000 control-rate=variable ! \
video/x-h264,width=1920,height=1080,framerate=24/1,profile=high ! \
h264parse ! \
mp4mux faststart=true ! \
filesink location=/home/pi/Timelapse/video.mp4
___________________________________________________________________________

Later i want to add some audio, for example from a mp3file, but i can make
the source the format you recommend, to this video. But i have no idea how i
can do this.

As i'm useing a Raspberry Pi i use h.264 because the hardware supports this
to do the job fast.

Please help me to find the correct pipeline. Thanks.





--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Merge-video-and-audio-to-file-tp4679383.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list