Program to join TS videos using command line

1

2

I have a need to join .ts video files. I know of http://www.ffprojects.net/tssplitter/ which works very well, but as far as I can tell it is GUI only.

I need to be able to do this from the command line in Windows. Are there any solutions out there that can handle this?

bradvido

Posted 2012-02-29T21:10:41.993

Reputation: 145

Answers

4

ffmpeg for windows

ffmpeg.exe -i concat:file1.ts^|file2.ts^|file3.ts -vcodec copy -acodec copy -f vob combined.mpg

h0tw1r3

Posted 2012-02-29T21:10:41.993

Reputation: 1 408

Thanks. That works, but the escape character for pipe on windows is ^ not \ – bradvido – 2012-03-01T14:11:56.807

3

I would simply use the command line. Navigate to the folder with all *.ts-files to be concatenated and then run the...

copy /b *.ts output-file.ts

...command, which takes all *.ts-files in the current directory and concatenates them to a resulting file called output-file.ts. The command might run for several minutes, so don't worry, you can grab a cup of coffee now ;)

(as the *.ts-format - "Transport Stream" - is a streaming format, it is possible to easily just "add one file after another" without damaging the data inside)


source: http://tomyeah.com/howto-join-multiple-ts-files/

mozzbozz

Posted 2012-02-29T21:10:41.993

Reputation: 133