PDA

View Full Version : repair damaged video file?


Tobias Lindeman
August 19, 2007, 19:20:23
Hi community
yesterday I have used a DMK with IC Capture AS2.0. Unfortunately I
have closed the program before I stopped the capture-sequence. So the
program ended with a failure message and the video has not been
finished. Now the video is on HD but I can not open it with any video
player. I have already tried Virtualdub, Video Fixer, and ASF-Repair
to repair the video, but nothing worked.
This video is very important to me, because it was the first time
where we used the DMK on ISS. It was also a very good pass with
Endeavour docked to the Station.
So I would be very glad if anyone has an idea to repair the video

Best regards
Tobias Lindemann

www.tracking-station.de

Tobias Lindeman
August 22, 2007, 17:53:45
Now I have created a tmp-file with ASF-Repair and opened it with virtualdub. The program restores the first 1300 frames, but the video is about 6000 frames long and the good pictures are at the end of the video. Has anyone an idea why VirtualDub restores only the first 1300 frames?

Problem is solved :-) There were some junk bytes/pixels at the location of frame 1300.
Here is the exact procedure:
1-capture a new video-sequence with the same camera/settings and about the same file-size
2-load the video with ASF-Repair (shareware), say "yes" to avi and load the new video as reference
-this will create a file called: *repair-temp.avi (we only need the "temp"-file, not the repaired video)
-once the temp-file is created, cancel the repair sequence (maybe end the task)
3-open the repair-temp.avi in virtualdub
-the program should go to "aggressive-mode" and restore some frames (if all frames will be restored, be lucky)
-remember how many frames will be restored and close virtualdub
4-calculate the size of restored frames:
-example: 1024x768x1300 (framesize x frames) if you have a colour-camera take x3 (24bit=3byte)
5-open the repair-temp.avi in HxD hex-editor (it is freeware and IMO only HxD can open very lage files)
-use as offset-basis: decimal
-go to the byte you have calculated (1024x768x1300=1022361600)
-search once for textstring: junk
-delete junk, the bytes between with the value 00 and 00db (delete only these "junk-bytes")
-save as new file
6-open the new file with virtualdub
-now the programm should got to "aggressive-mode" once again and restore more frames
7-repeat the steps 3 to 5 since you got all frames and be lucky :-)

if you have any questions please feel free to ask me:
TobiasLindemann_ad_iss-tracking.de (change _ad_ by @)

greetings
Tobias