Here's the description of the problem:
Video and audio are IN sync in fraps raw footage (everything's fine).
Encoding in Virtualdub a/v is in sync. (all good so far)
Encoding in anything else video and audio are out of sync after encoding. Audio plays about 1-2.5 secs before video starts. (bad playback locally using Media Player Classic Home Cinema).
Problem is the setting "Zero Latency" from the x264vfw codec settings. That needs to be checked to fix the problem. (Unchecked the problem occurs during local playback on media player classic).
To note: even if the local playback is out of sync, when uploaded to youtube the video and audio will be back in sync from youtube's processing.
Remember to CHECK Zero Latency option in x264vfw codec settings to avoid this out of sync issue when encoding using Sony Vegas or any other compressor besides VirtualDub (which didn't have this problem).
It took a long time for me to find that fix because most of the stuff about out of sync audio out there is about a slow drift off problem (which I didn't have) instead of this immediate a/v sync problem. So maybe this will help if you're recording with fraps and encoding with x264vfw.
I stumbled across your post. I use Corel Video Studio v12 and this audio leading problem has been dogging my x264 encoding effort.
ReplyDeleteI followed your instructions, and in addition, I encode the audio data using MP3 constant bit rate (CBR) instead of variable/arbitrary bitrate (VBR/ABR).
As soon as I put these two settings in combination, the video and audio sync was working flawlessly again. Now I can throw away my Xvid codec! :)
Thank you very much for your help.
@penguino, I'm glad it helped. It was a frustrating few hours tracking this obscure setting down.
ReplyDeleteWOW!, it works. Thanks you!
ReplyDeleteSweet! Thanks dude! :D
ReplyDeleteThanks a lot! Worked perfectly.
ReplyDeleteWhere can i find that setting?
ReplyDeleteShortcuts are created in your start menu pointing to x264vfw configuration depending on where you installed it. If you installed here you can just copy and paste into a run dialog.
Delete32 bit:
C:\Windows\SysWOW64\rundll32.exe x264vfw.dll,Configure
64 bit:
C:\Windows\System32\rundll32.exe x264vfw64.dll,Configure
Ricky, thanks for researching all of this. Worked perfectly! Why that is even an unchecked option is beside me.....
DeleteThanks for posting this. Worked like a charm!
ReplyDeleteBIG Thanks, it still works with Movie Studio 13.0... after 3 years
ReplyDeleteThis article saved me too. I wouldn't have figured it out. Thanks!
ReplyDelete7 years later, this blog post is still solving issues. Thanks!
ReplyDeleteGlad to know it is still working! HA! I had to use my old video encoding settings since I haven't used it much last month and sure enough they still worked! Thanks!
Delete