Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

I use Google Picassa to create new start and end points, but I dont know a good way to join mpgs yet.

Whats the best free software i can use for this?

share|improve this question

5 Answers 5

up vote 11 down vote accepted

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
share|improve this answer
    
Valid point, but he wants to clip some parts out. –  John T Sep 19 '09 at 4:47
    
Thanks, this worked great. I can still use Picassa to clip the parts and then use the copy command to join multiple clips. –  Kapsh Sep 25 '09 at 14:44
    
I tried doing this, and it claimed the copy was successful, but the video only lasts as long as the last video's length, even though it appears to start at the first video copied. Why is this, and what can I do to fix it? –  nhinkle Nov 5 '10 at 3:54
    
And it's a pity this doesn't work with .mp4 (being a container format) - you get a file as large as it needs to be, but that only plays the first file –  PandaWood Feb 1 '11 at 22:26

Recent versions of ffmpeg can do this via its concat demuxer, which should be more reliable than using cat or copy. First, create a file called inputs.txt, containing

file /path/to/input1.mpg
file /path/to/input2.mpg
file /path/to/input3.mpg

Then use the following ffmpeg command:

ffmpeg -f concat -i inputs.txt -c copy output.mpg

See here for more information.

share|improve this answer

For Linux Avidemux is quite good:

For Windows there is

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

Those might be good for lossless cutting, but give much less freedom.

share|improve this answer
    
Avidemux for windows is also quite good, I find it better than VirtualDub. –  ansgri Jun 14 '13 at 8:00

How about Windows Movie Maker or Windows Live Movie Maker? (depending on your version of windows, which it seems you are using by your other questions).

share|improve this answer

Join/encode/convert to your heart's content with MediaCoder.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.