Tuesday, June 29, 2010

How to concatenate files from Dos cmd

To combine multiple files, e.g. concatenate them...

copy /b file1+file2 dest


copy /b 00001.mts+00002.mts+00003.mts combined.mts

Copies the mts files into one file, combined.mts

If this, like i am using is for combining video streams, you can then easily remux with ffmpeg, to fix the broken indexes.

ffmpeg -i combined.mts -acodec copy -vcodec copy -scodec copy combined_indexfixed.mp4