5

I have an avi file and tried to check it as suggested here. But after a short while I just got a segmentation fault, without any other information!

How is it possible to fix/repair this avi file? Watching this file with mplayer just works fine, using it with ffmpeg or kdenlive is causing errors!

System: Ubuntu 13.10 Size file: 4.2 GB

Addition:

Here is part of the output(begin and end) when running the command (the FULL output is about 1 MB of text!)

ffmpeg -v error -i file.avi -f null -

Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
[dvvideo @ 0x21f39c0] AC EOB marker is absent pos=64
    Last message repeated 1 times
.....
(These kind of lines repeat over and over and over. I really do not see a point providing them all. There are no build information. Interlaced in the output are lines like:
frame=  124 fps=  0 q=0.0 size=      -0kB time=4.00 bitrate=  -0.0kbits/s
)
....
    Last message repeated 3 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=69
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
    Last message repeated 1 times
    [dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=75
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=64
    Last message repeated 2 times
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=70
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=71
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=67
[dvvideo @ 0x1fad9c0] AC EOB marker is absent pos=65
Segmentation fault (core dumped)
Alex
  • 387

2 Answers2

7

try using mencoder (the encoding part of mplayer) like this:

mencoder -idx problemfile.avi -ovc copy -oac copy -o reindexedfile.avi

(via http://www.kahunaburger.com/2010/01/30/fixing-an-avi-index-with-mencoder/)

Giacomo1968
  • 58,727
2

Force index

mencoder -forceidx input.avi -o output.avi -oac copy -ovc copy  

Copy all

mencoder -ovc copy -oac copy input.file -o output.file  

Also see https://stackoverflow.com/questions/894903/how-can-i-validate-a-video-file-from-a-script

totti
  • 870