PDA

View Full Version : Movie's audio out of sync after converting WMA to MP3


Talayero
4th May 2007, 01:08
Hi,

this audio out of sync has happened before several times, when I've converted windows media clips to xvid, just to make them playables by my standalone.

I usually demux the wma with virtualdub-mpeg2 and convert it to mp3 with dbpower music converter. But I think it's the same if I use besweet or any other audio program. The thing is that the audio is out of sync now and then and I can't find an explanation.

This last time the wma audio was 44100Hz and 64kbps and I converted to mp3 44100Hx and 112kbps. The result was out of sync.

Thanks in advance.

foxyshadis
4th May 2007, 01:24
It's not the audio that's out of sync, it's the video that's going out of sync with the audio. When you convert it naively in vdub, you strip out all the timecode information. You have two choices:

Load an avisynth script into vdub, consisting of:
DirectShowSource("video.wmv",convertfps=true,fps=29.97,audio=false) or fps=23.976 if necessary. This will resync the video correctly.

Or you can make a convoluted procedure of muxing the wmv to mkv in gdsmux, getting the timecodes with mkv2vfr, converting as normal, and then applying tc2avi from the avi_tc_package. The first is much simpler!

Talayero
4th May 2007, 02:13
Thanks,
I'm gonna try the first way, the one with the avisynth script.

Then, if I understood well, I can use my already mp3 converted audio and muxed it with the new converted video, the one converted with the script, is that right?

P.S: I've just seen that the wm file is 29.890 fps, so I should use: DirectShowSource("video.wmv",convertfps=true,fps=29.890 ,audio=false), should I?

foxyshadis
4th May 2007, 13:39
You can use just about anything, but you should probably stick to 29.97. The lower number probably comes from the total framecount divided by time, which doesn't work if there are skipped frames. (That's why it goes out of sync in the first place.)