bubbl
Posts: 85
Joined: Sun Jul 14, 2013 9:15 pm
Location: United Kingdom
Contact: Website

Join multiple mpg files into one file

Sat Nov 30, 2013 6:13 pm

It's so easy it is to join mpeg files with just the windows copy command or unix cat command.
On Windows the trick is to copy the files while preserving the binary format.
Here is how you would do it:

Code: Select all

copy files1.mpg /b + files2.mpg /b joinedfile.mpg
You could also do the following if the files are named consecutively:

Code: Select all

copy file*.mpg /b joinedfile.mpg
On UNIX it couldn’t be any simpler …

Code: Select all

cat file1.mpg file2.mpg > joinedfile.mpg
or

Code: Select all

cat file*.mpg > joinedfile.mpg
We're not here because we are free. We're here because we are not free. There is no escaping reason. No denying purpose. Because we both know without purpose, we would not exist.
http://www.bartbania.com/

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Join multiple mpg files into one file

Sun Dec 01, 2013 3:03 am

ffmpeg is the tool of choice for that stuff.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Graphics, sound and multimedia”