mplayer

Want to combine two avi files using mencoder? Well below is how its done. The mencoder binary comes with mplayer 1rc.x. When using the fork, mplayer2, you no longer get this tool which is a bit irritating. I will follow up when I get mplayer2 to provide this functionality. It is worth noting that mplayer2 has more functionality and fixes than the somewhat forgotten mplayer1. The only reason I have installed the older version on my machine is for mencoder.

mencoder -oac copy -ovc copy part1.avi part2.avi part3.avi -o combined.avi

oac copy – means to encode with the following audio codec. Since we are using copy as a parameter it just uses the same codec as the source files we are duplicating.

ovc copy – means to encode with the following videocodec. Since we are using copy as a parameter it just uses the same codec as the source files we are duplicating.

The files are parameters and the -o switch means the output filename follows in this case “combined.avi”