PDA

View Full Version : How to play avi with missing segment.


Agamemnon
7th January 2003, 21:45
Problem:

I've got a number of files movie.avi.001, etc... These parts where created from an avi (divx5) file with HJSplit. But there is one part missing. So I want to join the movie regardless of the missing part and being able to watch the movie beyond the missing part.

I've tried this with mpeg files, using HJSplit and (if nessesary) VCDGear to repair, and it works fine.

Is this also possible with avi files?

-h
7th January 2003, 21:51
So long as you have the start and end of the AVI file, you can put whatever you like in the middle - the index will allow you to skip to keyframes before and after the bad segment.

Just make a movie.avi.0xx file the same size as the other segments and fill it with zeroes. As long as it's the same size, you'll be able to view the AVI in say VirtualDub up until the damaged segment is read. Then you can extract that first good portion to a new file.

Then I'd navigate to the last frame in the movie, and jump backwards from keyframe to keyframe until you find one that it can't decode - that will mark the end of the damaged segment, and the last good keyframe is where you can extract the second good portion from.

-h

Agamemnon
7th January 2003, 22:23
Thanks a lot.
I see it already starts playing without removing the bad segment.