Merge video and audio to file

Vivia Nikolaidou n.vivia at gmail.com
Fri Sep 2 22:06:22 UTC 2016


Hi,

If you notice, you have to give a name to mp4mux:

mp4mux name=m faststart=true

That's the meaning of the last "m." line: this should link to the
element that we named m. The last dot basically means "try to
automatically find a sink to use". In more complicated use cases,
you'd specify a sink name, like m.audio_0, but here you can leave it
blank as "m."

Hope it helps!

On 3 September 2016 at 00:22, schousda <schousda+gstreamer at gmail.com> wrote:
> Hello,
>
> Thanks for your help.
> I added your lines, so it looks like this:
>
> 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 \
> filesrc location=/home/pi/Timelapse/example_short.mp3 ! \
> queue ! \
> mpegaudioparse ! \
> m.
>
> But when i run it, i get this error:
>
> No sink-element named "null" - omitting link
>
> Could you please help again?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Merge-video-and-audio-to-file-tp4679383p4679392.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