Recently I was given a video by a friend in AVI format that caused trouble when playing it on my Neuros OSD. When I watched the video on my laptop with mplayer, everything was fine, but when you tried to seek with the Neuros it reported a video 16 minutes in length instead of the full hour it should have been. Poking around the internet I found the following solution: Use mencoder to rebuild the AVI index, and write it out to a new copy of the video.
$ mencoder -forceidx input.avi -o output.avi -oac copy -ovc copy
$ mv output.avi input.avi
After that, the new input.avi should be playable, and seeking should work properly again.
vega
/ Reply
Wow! Althought this little thought has been posted almost five years ago and was done for/on ubuntu, it’s exactly what I was looking for for the last two or three hours. Just had to paste this into a .bat-command on my Win7 machine, delete the dollar signs and it worked for my damaged .avi-file.
All the other “solutions” (VLC, DivFix++, AVIdemux, Digital Video Repair and whatever else there is…) weren’t weren’t doing what they’re promised.
I don’t even know if you still see this comment, but I felt the need to thank you anyway.
Thanks a lot, you saved me almost two and a half hours worth of footage and quite a bit of frustration!
Best,
Vega