Linux Command Line AVI Repair

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!

About rus

Arrogant, narcissistic and imperatively logical. I first started coding in the mid 80s on an Amstrad 6128, entering games found in the back of Amstrad Action.After watching Hackers and falling in love with Angelina Jolie I installed Slackware 2.0 on a P200 in 1997and spent the next 6-7 years studying computery things at various colleges and universities.Several years later I can now be found in an office premises by day sat in front of a Macbook, using a Windows VM to manage Linux servers, or in a field by night, fire dancing and holding pyrotechnics casually in my hands whilst they explode.

,

2 Responses to Linux Command Line AVI Repair

  1. Matt Tober January 24, 2013 at 7:51 am #

    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

    • Matt Tober January 24, 2013 at 7:52 am #

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

Leave a Reply