Log in

View Full Version : AC-3 Sync issue in WTV files


blackt1ger
7th June 2011, 18:37
I'm working on a directshow filter that writes an AVC1 MP4 file. All is good, until I was working with a WTV file that was recorded over QAM ATSC. In particular, "Top Gear" from BBC America. This file has an AC-3 stream and an MPEG2 video stream. The video purports to be 29.97 fps, and the AC3 headers purports to be 48k sample rate.

After about an hour of encoding, the durations of the audio is 1:19 and the duration of the video is 1:17. If I were to stretch the video out it would give me about a 27.5 fps.

I'm using the Microsoft's DVD-Video decoder and ffdshow audio decoder in my filter graph.

Remuxing to DVR-MS or to MPEG PS gives me streams with the same problems, different durations.

What's really funny is the it plays natively in sync. AND, yes, I found exactly ONE tool that appears to work, a non-activated app from dvr-ms.com.

Any advice on getting this to work?

fyi: my filter uses the typical libx264, libfaac, and mp4v2. However, I have some changes to the mp4 container which currently supports Zune metatags.