i'm at my wit's end here. long story short: i record gameplay with DXTORY, audio stays in sync throughout. as soon as i do any form of encoding on it, the audio track plays slower than the video. they'll be in sync at the beginning of the video, and gradually go out of sync. by the end of a 1 hour video, audio's delayed by over a second.

i don't know if this is the right place to ask, but hopefully someone will have experience with it here. here are the mediainfo exports:

I'm going to guess that the issue is framerate. Input framerate is probably not a steady 24, 30 or 60 fps. You may have to decimate frames to get it to a steady value. Alternatively, the input file may be at a different framerate than what you are encoding to - this is a surefire way to get audio out of sync.

EDIT: x264 supports variable framerate encoding and playback. Option 2 is to make sure it is enabled and reading the framerate correctly.

furesh2o wrote:what are you using the encode it?if you say sync is fine after capture but fails after encoding, then problem is encoding software?

encoding is done with avidemux 2.5.6, using MPEG-4 AVC encoder. i usually do edits using Sony Vegas Pro, then frameserve it to avidemux for the final encode. i've also tried using handbrake, MeGUI, and many encoders within Sony Vegas. all of them have the same issue. whatever it is, it isn't JUST the coding software.

Voldenuit wrote:I'm going to guess that the issue is framerate. Input framerate is probably not a steady 24, 30 or 60 fps. You may have to decimate frames to get it to a steady value. Alternatively, the input file may be at a different framerate than what you are encoding to - this is a surefire way to get audio out of sync.

EDIT: x264 supports variable framerate encoding and playback. Option 2 is to make sure it is enabled and reading the framerate correctly.

input framerate is currently set to 29.970 fps. i've tried 30 and 60 fps, all with the same result. the recording media is a 3x RAID0 1TB HDD array. combined with how beefy the rest of my system is, i really doubt recording framerate is an issue. after all, the game itself runs well above 70 FPS all the time. the output framerate is 29.970 as well, as shown in the mediainfo output.

oh yeah, one funny thing: if i use the mkv container with vorbis audio encoder, the sync issue disappears, or nearly disappears. however, youtube doesn't like mkv much.

I use avidemux extensively and i've experienced audio sync issue with it when converting between mp4 and mkv.I stopped using .mp4 because aac encoder in avidemux introduces brief shrieking noise at the start.I've been using x264/mp3 in mkv instead to encode videos and i had no problem so far uploading to youtube.