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!
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?
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).