PDA

View Full Version : audio running too fast for video




Huffer
24 Nov 2002, 08:03 PM
Hey everyone, got a problem with the audio playing a few seconds (3-7secs) faster than the video.

I've used Virtual Dub and this is the info I've got.

Video stream:
Frame size, fps - 352x288, 29.970fps
# frames (time) - 95013 (52:50)
Decompressor - DivX 5.0.2 Codec
Number of key frames - 321
Min/avg/max/total key frame size - 586/6962/12564 (2183k)
Min/avg/max/total delta frame size - 0/3456/18445 (327974k)

Audio stream:
Sampling rate - 8000Hz
Channels - 2 (Stereo)
Sample precision - 16-bit
Compression - DivX ;-) Audio Compressor
Preload skew - 7 samples (0:00s)
# of frames - 49405
Min/avg/max/total frame size - 96/96/672 (4633k)


Any ideas? Will I need to re-encode the file, and how would I do that? :smashead:

Batman
25 Nov 2002, 12:51 AM
Read articles on divx-digest.com or search this forum for potential solutions to synchronizing the audio and video streams.

Huffer
25 Nov 2002, 06:14 AM
I've already read many of them, and they don't seem to help. I was told to post up the info from VirtualDub so that the community could lend me some advice?

setarip
25 Nov 2002, 06:24 AM
"Compression - DivX Audio Compressor"

1) Load the file into VirtualDub

2) Set both "Video" and "Audio" to "Direct Stream Copying"

3) From the "Audio" dropdown menu, select "Interleaving"

4) Change "Interleave audio every" to 500ms (NOT "frames")

5)Click on "OK"

6) Save with a new filename

Let us know of your success ;>}

Huffer
25 Nov 2002, 08:07 PM
setarip - thanks for the advice - I just tried doing all that you said, and I still came out with the same problem.

I've just noticed that the audio seems to be in sync for the first few minutes of the movie, but when I get to the end, it's about 6 seconds ahead of the video.

Any other ideas?:confused:

Enchanter
25 Nov 2002, 08:30 PM
"Sampling rate - 8000Hz"
This kind of audio sampling rate is indeed always giving problems. I can't offer a definitive answer to your problem, but you might just try a few suggestions:
1. Similarly to the previous given steps, add this additional step: go to Video tab -> Frame Rate, and select 'Change so video and audio durations match.' OR
2. Upsample the audio to 44,100 Hz and remux it with the video, per instructions given.

Tell us how it goes.

Huffer
26 Nov 2002, 07:34 PM
hey everyone!
guess what, it worked! Vdub did the job, once I selected "audio & video durations match".

Thanks heaps for ALL your help! You've just made this movie watcher THAT much happier! :bglaugh2:

Enchanter
28 Nov 2002, 11:53 AM
Glad to see it worked. ;)