Log in

View Full Version : WMV to MPG = loss of sync!


diego gr
18th May 2008, 20:55
I've been using TMPGEnc Xpress 3 to convert some WMV to MPEG1.
But some files just have this audio out of sync problem, I don't know why!
Here's the WMV specs:
Video: WMV9 CBR 700kbps 23,97fps
Audio: WMA2 CBR 64kbps 32KHz

Output settings:
Video: MPEG1 CBR 30fps
Audio: Linear PCM WAV 44.1KHz

OBS: in the "source settings" panel, the fps box is gray, I can't select 23,97fps, and the program just selects 30fps by his own! Why?

dat720
23rd May 2008, 10:23
It could be a problem with the WMV stream or it could be TMPGenc, i have converted lots of WMV's with mencoder and never had any issue's.

diego gr
26th May 2008, 03:18
Thanks. I will try mencoder and later post the results!
Do you know other softwares that convert WMV to MPEG1 directly?

Dark Shikari
26th May 2008, 03:19
Probably because the WMVs are variable-framerate, which causes problems with a whole lot of software.

setarip_old
26th May 2008, 05:46
@diego gr

Hi!in the "source settings" panel, the fps box is gray, I can't select 23,97fps, and the program just selects 30fps by his own! Why?I'm testing my (rapidly deteriorating) memory here:

The earliest versions of TMPGEnc had a "Load" radiobutton which, when pressed, brought up the "Template" folder. Within the "Template" folder was a folder named "Extras" - and in that folder was a file named "Unlock.mcf" which, when doubleclicked unlocked/ungreyed all settings.

Perhaps this is still applicable to TMPGEnc Xpress 3?

dat720
26th May 2008, 09:08
That's a good point, i completly forgot about that, the profiles in TMPGenc are locked so you can't change certain things and break the compatibility they provide if you need to customise them you need to do what setarip_old suggested.

DarkZell666
27th May 2008, 09:58
I've had relative success using this (using ffmpeg):

ffmpeg -i "whatever.wmv" -r 29.97 -acodec libmp3lame -ab 320 -vcodec mpeg2video -qscale 2 -f mpeg "whatever.mpg"

Here's the equivalent for mencoder (off the top of my head) :

mencoder "whatever.wmv" -fps 29.97 -oac mp3lame -lameopts cbr:br=320 -ovc lavc -lavcopts vcodec=mpeg2video:vqscale=2 -of mpeg -o "whatever.mpg"

Do change the -r (or -fps) value to whatever you think it should be :)

I could have used ffv1, but that would produce massively large files and actually take longer. The quality loss using mpeg2video at q2 is very minimal imho.

On files where the framerate varied (where several files of different framerates were joined together), i've seen both stuttering and temporary sync loss, but it might not happen on all files.

Virtualdub with it's recent WMV input plugin does a better job of keeping sync but stutters a bit more when converting the framerate, it's up to you ;)