PDA

View Full Version : Is there a way to ignore errors in an ac3 stream while muxing to mkv?


legoman666
24th September 2007, 04:56
I have a bunch of .ts files recorded from hdtv. Since they were recorded from OTA braodcast, there are errors in a lot of the files. Errors in the video stream pan out fine when I convert with x264, but errors in the ac3 stream are giving me a headache. When I use mkvmerge to mux the h264 and ac3, mkvmerge kills the audio packets with errors and so as the clip goes on, it gets more and more out of sync (in a non linear fashion, so I can't just stretch the audio, I've tried that).

I've tried transcoding my ac3 to mp3 or ac3, but the encoder also kills the bad packets and the resulting audio stream is often ~2 seconds shorter than the original.

Any ideas? I'm stuck with >250gb of recorded tv that I can't really do anything with.

nowhere2007
24th September 2007, 05:21
You could try using delaycut to fix the CRC errors in the ac3 file.

squid_80
24th September 2007, 06:01
When dealing with OTA captures the first step before encoding should be to demux the ts with projectx. It'll catch any errors in the stream and fix the m2v/ac3 streams so they stay synchronized.

legoman666
25th September 2007, 02:53
When dealing with OTA captures the first step before encoding should be to demux the ts with projectx. It'll catch any errors in the stream and fix the m2v/ac3 streams so they stay synchronized.

I'll give it a shot, thanks for the suggestion.