View Full Version : Wmv-->AVI ,isn't synch
thuongshoo
17th April 2006, 03:48
This file is still good if it is played with all player . Yes ! If I play it by Media-Classic-Player , video and audio is synch . After converting it to AVI by Virtualdub, Megui, Staxrip and play AVI or Mp4 file , result isn't good .
AVIcodec says that my file has 23 frm/s but VD says "30 frm/s"
I edited a AVIsynth file :
DirectShowSource("c:\lalala.wmv", fps=30 )
and view this file in VD . Result is a bit better . At a this moment , it's synch but at another moment it's not synch .
I re-edited the avs files
DirectShowSource("c:\lalala.wmv", fps=30.3 )
Result is best but Audio and Video isnot synch absolutely
setarip_old
17th April 2006, 07:33
Load the file into VirtualDub, VirtualDubMod, or NanDub.
Set BOTH "Video"(VirtualDub, VirtualDubMod and NanDub) and "Audio"
(VirtualDub and NanDub - VirtualDubMOD>"Streams>"Stream list") to "Direct Stream Copy".
A) If the difference between audio and video is constant throughout the
video:
From the "Audio" dropdown menu, select "Interleaving" (For
VirtualDubMOD, rightclick on the listed audiostream and then select
"Interleaving")
Under "Audio skew correction", set an appropriate number of
milliseconds (positive or negative) in the box labelled "Delay audio track
by"
Save with a new filename
B) If the difference increases as the movie plays:
From under the "Video" dropdown menu, select "Framerate" - and
select "Change so video and audio durations match"
Save with a new filename
Let us know of your success ;>}
leiming2006
17th April 2006, 11:57
That is another possible reason:
VFR.
darkavatar1470
17th April 2006, 19:49
Yup, one reason pepole use wmv instead of something else is VFR support....
heck, since you still need to encode by parts, why not just use x264 in MKV/MP4
and I thought VD can't demux wmv's anymore....
even a good old 1.3 doesn't quite like a recent file...
LoRd_MuldeR
17th April 2006, 20:53
Converting WMV to AVI works in MEncoder.
mencoder.exe -ofps 30 -of avi -o c:\out.avi c:\lalala.wmv
(Of course you need to add parameters for audio and video codec)
thuongshoo
19th April 2006, 11:10
thank all of yous !
TO setarip_old :
ok ! delay time is -800 but I have a new problem .I view new file in VD and can't view all .At last frame , VD say "the audio codec reported an error while decompressing audio data
Error code : 512 (ACMERR_NOTPOSSIBLE) "
I used Megui convert video to x264 and mux but synchrorize is still a problem need to solve
C:\>mp4box -add lala1.mp4:video -add lala.aac:audio -delay audio=80 lala.mp4
IsoMedia import - track ID 1 - Video (size 640 x 480)
AAC import - sample rate 24000 - MPEG-2 audio - 2 channels
Saving to lala.mp4: 0.500 secs Interleaving
mp4box don't seem to see -delay argument .
movmasty
10th June 2006, 03:42
Load the file into VirtualDub, VirtualDubMod, or NanDub.
Set BOTH "Video"(VirtualDub, VirtualDubMod and NanDub) and "Audio"
(VirtualDub and NanDub - VirtualDubMOD>"Streams>"Stream list") to "Direct Stream Copy".
A) If the difference between audio and video is constant throughout the
video:
From the "Audio" dropdown menu, select "Interleaving" (For
VirtualDubMOD, rightclick on the listed audiostream and then select
"Interleaving")
Under "Audio skew correction", set an appropriate number of
milliseconds (positive or negative) in the box labelled "Delay audio track
by"
Save with a new filename
B) If the difference increases as the movie plays:
From under the "Video" dropdown menu, select "Framerate" - and
select "Change so video and audio durations match"
Save with a new filename
Let us know of your success ;>}
These wont work with wmv sync problems,
you have to use another way, an old way thought...
the same that with vbr mp3, that is to save wav as decompressed pcm, then load wav audio,
then your audio will be sync :)
KitFox
3rd October 2006, 18:17
setarip_old :
I really hope you still exist in the community :)
I followed your tricks and it really worked well until now, because my AVI have 2 Audio Tracks.
How can i use VirtualDub to offset and keep the 2 audio tracks not just the 1st one?
I use the Original AC3 with DivX btw.
Thanks!
Kit
Jekill
4th October 2006, 10:13
I guess too it would depend on "variable frame rate".
You should use this parameters with Avisynth:
Loadplugin("C:\Program_files\Avisynth2.5\plugins\directshowsource.dll")
DirectShowSource("C:\my_video.wmv", 25.00, convertfps=true)
Instead of 25.00, you have to put it's original frame rate value.
Hi
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.