How to use gnlcomposition to concatenate video files?

Posted by Hardy on Stack Overflow See other posts from Stack Overflow or by Hardy
Published on 2010-03-20T00:17:21Z Indexed on 2010/03/20 0:21 UTC
Read the original article Hit count: 687

Hi All,

I am trying to concatenate two video files with the gnonlin components of the gstreamer.

The pipeline I am using is

gst-launch-0.10 gnlcomposition { gnlfilesource name="s1" location="/home/s1.mp4" start=0 duration=2000000000 media-start=0 media-duration=2000000000 gnlfilesource name="s2" location="/home/s2.mp4" start=2000000000 duration=2000000000 media-start=0 media-duration=2000000000 } ! queue ! videorate ! progressreport name="Merging Progress" ! ffmpegcolorspace ! ffenc_mpeg4 ! ffmux_mp4 ! filesink location="/home/merge.mp4"

As a result I am getting only the second file for the duration specified in the parameters. Tried several things and also searched on google but I could not figure out the problem with the above command. Can anyone point what i am doing wrong? Any other way of concatenating multiple files into one based on time is welcome too.

Thanks

© Stack Overflow or respective owner

Related posts about video-processing

Related posts about gstreamer