View Full Version : Repairing a corrupted .TS?
oddball
8th November 2006, 16:56
I have a small portion of corruption in a H.264 .TS file. Mencoder baulks at it and crashes at the point the corruption is in. I can't seem to find a way to edit that bit of corruption out so I can encode it.
Pookie
8th November 2006, 21:45
That xport.exe app in your other thread is pretty robust. Demux the stream with it and see if it helps.
oddball
8th November 2006, 23:23
I used TSReader to mux to an MPG and the corruption is in the video stream itself. Oh well. Guess I will delete and wait for a re-broadcast.
jmac698
8th November 2006, 23:29
Try mpg2cut2. There's a trick to getting around the corruption. Load the file, press the cut in key, "[" I believe, then use the slider to forward to just before the corrupted point, press the "]" key, then use the slider to quickly drag past the bad part, and mark the rest of the video.
If you don't slide past the bad part, the program will seem to hang, but is actually not crashed, it will scan through the end file to the end and stop with the slide at the end. You can try to slide past the bad part again at this point, or simply close the program while it's scanning and start again.
http://www.geocities.com/rocketjet4/
Pookie
9th November 2006, 03:29
He'd Need Mpeg4Cut4 (which doesn't exist):D
orbitlee
9th November 2006, 04:05
A simple method, use hex editors or HDTVtoMPEG2 to divide the TS by size. Locate the corrupted part, divide it into smaller size, repeat the process until you feel OK, then merge all good part together.
Stupid but works :-)
oddball
9th November 2006, 17:37
Yeah that was the other method I was thinking of using TSReader to dump to a file and stop at the time just before the corruption and then doing another dump just after until the end of the file (Except TSReader does not seem to have a 'from timeframe' option :(
I also tried opening it in Avidemux 2.3 preview 2 and it moaned about not being able to determine the aspect ratio after indexing the file and then exited (Methinks either the corruption causes that or that the BBC HD 1084 padding is confusing it. I have posted this info in their forums).
Oh yeah I also tried TSConverter but it would not allow me to mark an in and out point or move through the video at all.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.