PDA

View Full Version : How to deal with h264 TS recordings with errors?


canTsTop
7th September 2008, 11:04
Is there any way to deal with h264 TS recordings with errors (discontinuities) to avoid audio / video synchronization lost? For mpeg2 TS there is ProjectX, but i cant find a way for h264 videos. If my recording have 2 or 3 errors i can scan and cut it with TS Packet Editor and then join with Avisynth, but this is not an option if there is 80 or more errors in TS.

Is there any tool or easier way to deal with this problem?


Thank You!

canTsTop
12th September 2008, 19:23
Then i play such TS in MPC audio/video sync is back after errors. Is there any way to encode video to lossless avi and audio to wav, exactly as shown in MPC (with all corrupted frames and clicking audio, but with correct sync). I tested DirectShowSource but sync is lost.

poisondeathray
12th September 2008, 20:08
In my experience, if it plays in sync with MPC, it will encode fine with DirectShowSource

You have to use the identical filters. Check MPC to see if you are using internal and/or external filters. You may have to emulate the same filters that work correctly with graph edit or graph studio

canTsTop
12th September 2008, 20:21
here is sample http://www.mediafire.com/file/azxjyatwffn/with_errors_LTV.ts it plays in sync in mpc+ffdshow but not with DirectShowSource. Can you try it?

poisondeathray
12th September 2008, 23:14
I take my previous statement back. I can't get it to work with.

Usually if a stream has only a few errors, you can recover it by using TsMuxeR and placing it into a new .ts - it will automatically repair it. This one has way too many errors.

Selur
13th September 2008, 13:17
ffmpegsource might be worth a try,..

poisondeathray
13th September 2008, 16:21
ffmpegsource might be worth a try,..

Actually both ffmpegsource & dgavcdec crash with this one. Both have libavcodec in common...

This .ts is very bad quality - there's almost more errors than "normal" segments

neuron2
13th September 2008, 16:25
It plays straight through with DGAVCIndexNV (available in first alpha). If all the frames are returned, even though they are garbled due to errors, sync could be maintained, unless you lose a lot of audio too. But you'll have to wait for me to finish DGAVCDecodeNV. :)

canTsTop
16th September 2008, 14:27
i found a way to convert h264 TS with errors to lossless avi without sync lost: VirtualDub + Directshow Input Driver plugin (http://www.virtualdub.org/beta/DShowInputDriver-0.5.zip)

It's not perfect solution (very big file size), but will do until someone with knowledge write a tool for fixing h264 TS files. neuron2 mentioned that he might write one, but i think he is busy with DGAVCIndexNV :)