PDA

View Full Version : resyncing audio mid avi


aramo
27th December 2002, 13:50
'cuse if this is not specifically a gKnot problem but it seems the most appropriate place to ask.

I've a divx4.12+mpg AVI [Firefox R1] created with gKnot/vdub/nandub - by way of example I've a video glitch at frames 1000 to 1010 - the glitch is a series of small green-ish boxes approx 100*32 in size. The AVI has keyframes at 950 and 1050. I've checked the VOBs on the hard disk using PowerDVDxp and that also has a problem at the same point so reencoding the entire movie will not solve my problem.

Pre glitch audio sync is fine, post glitch audio plays early [or video plays late]. Is there an easy way to fix this?

Currently I'm using vdub to split the full AVI into three parts
part1 = frames 1-949
part2 = frames 950-1050
part3 = frames 1051-end

chopping frames 1048-1050 off the END of part2, then merging the 3 parts with nandub and muxing the original full movie mpg audio stream created by gKnot. The above method maintains all audio and the dropped video frames being at the tail end of a keyframe block go unmissed - alas I'm left with the video glitch in the final AVI.

This works fairly well but when there are several video glitches spread through out the movie it's a little tiresome to fix.