Yes if I add the delay it fixes the sync problem. My point is that there shouldn't even be a delay.
I did a test. I demuxed an ac3 track using both VRD(I know this isn't your program), DGIndexNV, and DGAVCDec(I know you don't support this program anymore, I was merely using it for testing purposes.)
I checked the frame count on all 3 AC3 files. Both the output from VRD and DGAVCDec match. The output from DGIndexNV is 3 frames shorter. If I then take those AC3 files and mux it to my encoded video, for both the VRD and DGAVCDec output, I do not have to add a delay and the file is perfectly in sync. If I mux the AC3 output from DGIndexNV to my encoded video, I have to add a delay.
So basically, for whatever reason, DGIndexNV is chopping off 3 frames somewhere. Either at the beginning or end and is causing this delay.
Again, this only seems to be for H.264 files. MPEG2 does not have this issue.
|