Merge video and audio to file

Vivia Nikolaidou n.vivia at gmail.com
Fri Sep 2 16:11:17 UTC 2016


[...] ! mp4mux name=m faststart=true !\
 filesink location=/home/pi/Timelapse/video.mp4 \
filesrc location=/home/pi/Timelapse/audio.mp3 !\
 queue !\
 mpegaudioparse !\
 m.    (including the dot)

Note that there's a space, not an exclamation mark, between filesink
and the other filesrc.

On 2 September 2016 at 18:47, schousda <schousda+gstreamer at gmail.com> wrote:
> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list