audio out of sync with video

P

Poway

When I save my movies to cd's. My audio is out of sync
with my movie. Its about a second behind the scene.
Does anyone know what causes this???? Thanks
 
B

B. Peg

Poway said:
When I save my movies to cd's. My audio is out of sync
with my movie. Its about a second behind the scene.
Does anyone know what causes this???? Thanks

Some speculate it is a problem with frames, others are blaming the sound or
video card, others blame the processor speed, and another group blames the
software. Who knows?

One theory is if the sound card is not really at 44,100 Hz and is actually
at 44,109, then the audio could be off several seconds at the end of the
movie sort of a compression or expansion of the audio file. This one might
explain why a ripped movie is different when played on various players or
computers.

I did one tonight where the audio and video synch was off a few seconds on a
DivX AVI movie rip I did to put it in my portable player. The thing was off
a little at the beginning and a bunch at the end.

A couple of pieces of software can help: VirtualDub and SoundForge
(VirtualDub is free, other is trial I believe but I bought SF as I like it).

Here is the outline as I wrote it down:
Open the AVI file in VirtualDub and make note of the frame counter time
(bottom of screen) for a sound near the beginning and one near the end. I
used someone banging a hammer for one and shouting at the end.

In VirtualDub, you can rip a WAV file out of the AVI file. Using
SoundForge, load the large WAV file and scan to the two "approximate" times
noted above and listen for the sounds you are using to mark the file (i.e.
the hammer and shout noise in mine). Make an exact note of the "real
occurring time" of the two noises at the bottom of the screen in SoundForge.
Add or subtract the two times in SoundForge from the frame video times in
VirtualDub. The object is to get the two times to agree with each other as
close as you can.

You can shift the WAV file time ahead or back using either a Insert Time at
the beginning of the WAV file or subtract it to match the above video frame
times. No doubt they "both" will not match doing so.

Now come the little trick. You can use Resample in SoundForge and shift the
audio (either compress or expand the length of the track). Open Resample
(leave anti-alias off), check the box regarding "Sample Only" so you do not
save it yet, and change the Sample Rate from 44,100 Hz to say 44,110 and see
where the new audio times are in comparison to the frame times earlier done.
You can increment or decrement the 44,100 number and watch the audio times
change. The idea is to change it and get it to closely match the video
frames. You cannot get it exact but close.

Once done, set the Resample back to 44,100, uncheck the Sample only box, and
save it. You can then set both the video and audio pulldowns in VirtualDub
to Streaming and load the AVI file. Under the Audio select your new WAV,
Press F7 (or Save AVI), and let it rip. It's pretty fast here (4-5
minutes).

However, now you have a DivX AVI with a WAV file and it's pretty large. Run
it back through VirtualDub. Turn on Full Processing Mode in both Video and
Audio pulldowns. Set the video Compression codecs for DivX; the audio
Compression for LAME Mp3 (set to around 44,100 Hz, 128 Constant Bit Rate
(CBR - not variable or average), Stereo. You can also alter the Video
filter with a bit of Brightness and Contrast (mine always seems so dark in
Windows Media Player). This run will take longer (30 mins) and the file
will be much smaller.

That's as much as I remember.....whew!

Good luck.

B~
 
G

Guest

Andrew E referenced an update 887131 to fix sync problems.

Two questions:

1: Does this work with DirectX 9.0c?
I have seen references to KB831937, but that just works with 9.0, a, and b -
when I try to install it with 9.0c, I get a message that it is already
installed.
A search for downloads containing "887131" comes up empty, as does a search
for "Quartz.dll", as referred to in the only MS page to contain "887131",
http://support.microsoft.com/default.aspx?scid=kb;en-us;887131. Since that
page was last reviewed last October, I thought it might be outdated.

2: How can I find this hotfix?
If the update is still current, how do I find it? Since I have an OEM copy
of Windows XP, MS wants to charge for support. (If the update referenced here
is obsolete, they will charge me just to tell me that.)

In case there are other suggestions:
My specific issue - I have captured video to an AVI file, provided by ATI TV
included with the TV Wonder USB 2.0 and updated to the latest version.

I imported this file into WMM (drag-and-drop) and it still played fine from
inside WMM. After dragging the file to the timeline and saving to WMV ("High
quality video (NTSC)"), the audio is now out of sync with the video. My
reason to do so is simply to get a smaller file size (from typical 4-6GB to
typical 1.5-2GB).

Thanks.
(Replied in microsoft.public.windowsxp.video; cross-posted to
microsoft.public.windowsxp.moviemaker. Additional info added because of
cross-posting.)


Subject: RE: audio out of sync with video 2/22/2005 1:26 AM PST
By: Andrew E. In: microsoft.public.windowsxp.video
There's a hotfix for that particular problem,the # is:887131


Subject: audio out of sync with video 2/20/2005 8:56 PM PST
By: Poway In: microsoft.public.windowsxp.video
 
G

Guest

The solution suggested by PapaJohn (referenced below) was essentially my
solution - I saw in a post / reference (I believe from PapaJohn,
incidentally) that AVI does not sync the audio with the video, hence there
are inherent sync issues. (Yes, the original file was in sync and WMM should
have kept it in sync, but that's
another matter...) My capture software allows capture as a WMV9 file as well
as AVI. The WMV file was the same size as the AVI file, but different format.
I then used WMM with the same procedures as before, and had no sync issues
this time.

Michael Pollard


Subject: Re: Problems Rendering from DV-AVI Files 6/30/2005 1:05 PM PST
By: PapaJohn (MVP) In: microsoft.public.windowsxp.moviemaker
....
 
G

Graham Hughes

When MS update things, like DirectX, if they have found a problem it will be
addressed in the next update, therefore 9c will have any updates to a nd b
already in it, the reason you get the message it is already installed.
As for teh time lag, what file type is it you are importing into MM?

--
Graham Hughes
MVP Digital Media
www.myvideoproblems.co.uk
www.dvds2treasure.com
www.simplydv.com
 
G

Guest

I was importing an AVI file created by ATI TV 9.08. The original AVI file
plays fine both in WMP and WMM, but the movie created from it by WMM (to get
a smaller file size) is not in sync. I have since started saving from ATI TV
to WMV9 files since WMV files don't have the same problem. (I found out that
AVI files don't have any embedded sync information.)

Thanks.
Michael Pollard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top