Sunday, May 16, 2010

Using Mencoder To Merge AVI Files

Merging 2 AVI files can be easily accomplished with mencoder. But the two AVI files must be encoded with the same video and audio codec. Assuming that you have part1.avi and part2.avi, seamlessly consecutive, the mencoder command to concatenate them is:


mencoder -ovc copy -oac copy -o whole.avi part1.avi part2.avi

1 comment:

  1. That works great. Also wildcard * works fine for the input, but ONLY if the working folder inwhere the files to be merged are.


    This will work:

    mencoder -ovc copy -oac copy -o whole.avi *.avi
    So this would NOT work:

    mencoder -ovc copy -oac copy -o whole.avi c:\video\*.avi


    sebus

    ReplyDelete

About This Blog

KBlog logo This blog is about current events and issues concerning general population. Thanks for visiting the blog and posting your comments.

© Contents by KBlog

© Blogger template by Emporium Digital 2008

Followers

Total Pageviews

icon
Powered By Blogger