Command Line Video – How to Merge Multiple FLV Files

adobe-flashcommand linevideo

What tool in Linux can I use to merge multiple flv files ? Files are already in order, just put them altogether seamlessly

Best Answer

I didn't test the following yet, so see it just as some hints.

You could use ffmpeg. From the manual

* You can put many streams of the same type in the output:

               ffmpeg -i test1.avi -i test2.avi -vcodec copy -acodec copy -vcodec copy -acodec copy test12.avi -newvideo -newaudio

       In addition to the first video and audio streams, the resulting output file
       test12.avi will contain the second video and the second audio stream found in the
       input streams list.

       The "-newvideo", "-newaudio" and "-newsubtitle" options have to be specified
       immediately after the name of the output file to which you want to add them.

You can also use mencoder for example:

mencoder -forceidx -ovc copy -oac pcm -o output.flv input1.flv input2.flv

Another option is maybe flvcat.

You could also try avidemux-cli.

Related Question