Home > avi, batch, broken, divfixpp, index, mencoder, repair > mass-repair avi videos with broken index

mass-repair avi videos with broken index

September 15th, 2008 Leave a comment Go to comments

so yeah, my camera makes broken avi videos and I had a bunch of them to repair :

for i in *.avi; do mencoder -idx $i -ovc copy -oac copy -o $i.repaired.avi; done

( that’s a command-line for those who wonder )

this only repairs the index, no re-encoding

divfixpp repairs indexes as well, but I didn’t try it

hope it helps

Categories: avi, batch, broken, divfixpp, index, mencoder, repair Tags:
  1. Anthony G
    June 7th, 2009 at 14:40 | #1

    mencoder is a great tool for video work. However, according to the mencoder man page, -idx "Rebuilds index of files if no index was found". The -forceidx option would seem be a better one to use as it will rebuild the index even if there's a pre-existing index.

  2. tobi
    August 11th, 2009 at 14:53 | #2

    thanks anthony

  1. No trackbacks yet.