Home » Questions » Computers [ Ask a new question ]

How can I join multiple .mpg movie files?

How can I join multiple .mpg movie files?

I create a lot of these small clips on my digital camera. These are in .mpg format and before I share them with others, I would love to just join, clip a few seconds here and there.

Asked by: Guest | Views: 86
Total answers/comments: 4
Guest [Entry]

"mpg files are the easiest to join. You can actually copy them together. In Windows you use

copy/b file1.mpg+file2.mpg+file3.mpg newfile.mpg

In Linux, I use cat:

cat file1.mpg file2.mpg file3.mpg >> newfile.mpg"
Guest [Entry]

"For Linux Avidemux is quite good:

http://fixounet.free.fr/avidemux/

For Windows there is

http://www.virtualdubdotorg/

There are also more low level tools that work directly on the MPEG stream such as:

http://mpgtx.sourceforge.net/

Those might be good for lossless cutting, but give much less freedom."
Guest [Entry]

"I have used copy/b & that joins the files OK but it does something to the header that messes with the time code. But then I ran the entire file through XMedia Recode using just video copy (not convert) & audio copy with the same extension & that seemed to straighten it out:
http://forum.videohelp.com/threads/375401-How-to-cut-any-video-with-Xmedia-Recode"
Guest [Entry]

"If you simply copy them together using the command line as suggested above, the duration will not be reported correctly in your media player, but it still may work. Don't trust the duration reported by your player - check manually.

When ripping and combining videos from DVD, If I rip without re-encoding, I get mpg files which I can combine with the copy command, and then even though VLC doesn't report the duration correctly, Handbrake ""sees"" the correct duration, and the final re-encoded mp4 files play correctly and display the correct duration."