Linux Command Line AVI Repair

3
1708

Recently I had an avi file with a broken index that needed to be repaired. After a quick search and read of some man pages I discovered these handy flags for mencoder to get the job done!


mencoder -idx homemovie.avi -ovc copy -oac copy -o homemovie-repaired.avi

bamo!

SHARE
Previous articleList Contents Of An RPM Package
Next articleBackupPC ping too slow
Hi, I'm Rus and after 10 years of Linux administration and software development, in September 2014 I quit my day job, sold all my stuff and moved to Thailand to live the good life. My new website, http://www.ruspow.com shows how I'm making money online as well as what life can be like when you're not sat behind a desk and are free to make your own decisions!
  • Thanks for this tip. I searched “linux fixing AVI index” and it was pretty high on the list! VLC can play the AVI’s with busted indexes, but I’m fastidious. Having a simple mencoder fix is excellent. Fast too!

    Linux T5246 3.5.0-22-generic #34-Ubuntu SMP Tue Jan 8 21:47:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

    • By the by, all the uppercase letters in my comment got shifted to lowercase in the unapproved preview, isn’t that odd?

  • Javad

    Thank you. It’s easy, pretty fast, and does the job.

    Just a tip:
    There must not be any blank spaces in your input and output file names, otherwise you mencoder cannot open your file. If there is a blank space in your file name, just rename your file before you execute the command (program).