Menu

#94 avi audio desyncs badly

open
nobody
Sound (16)
5
2004-03-03
2004-03-03
eniphach
No

When spitting out an avi of a gba game the audio
always desyncs at some point after fifty seconds in.

I've tried adjusting everything possible and even
outputting the audio separately and putting that in the
avi instead, the logged .wav doesn't match the .avi
either.

I don't know what I can suggest that might make it
better, but I can say that loading the avi into
virtualdubmod and...

. filter, resize, 480x320, lanczos3
. filter, resize, 320x214, accurate bilinear, letterbox to
320x240

...makes the produced clip look insanely good with
lossless codecs, if anyone else wants to give it a shot.

Discussion

  • eniphach

    eniphach - 2004-03-03

    Logged In: YES
    user_id=989244

    Okay, I got it to work. Just had to alter the framerate to
    59.997 or whatever the hell it ended up being and it works.
    You guys might want to add a line about this in the .txt file
    so other people don't feel as stupid as i do right now. =P

     
  • Forgotten

    Forgotten - 2004-03-03

    Logged In: YES
    user_id=335241

    Can you be more clear on what exactly you changed? I can
    alter the framerate of the produced AVI in my code, but I
    need to know exactly what value you used.

     
  • eniphach

    eniphach - 2004-03-03

    Logged In: YES
    user_id=989244

    I just made 3 quick avi's and checked them with
    VirtualDubMod.

    The "Change framerate so audio and video durations match"
    is the option that I'm using. Unfortunately, each avi has a
    different value!

    59.735 with microsoft video 1
    59.666 with huffyuv
    59.669 with huffyuv again

    People will most likely edit the produced avi's anyway so just
    noting this phenomenon and how to correct it in the
    documentation would be more than enough for me.

    Hmm. 59.627 and 59.675 after setting the throttle to 100%,
    if that makes a difference or not.

     
  • Forgotten

    Forgotten - 2004-03-04

    Logged In: YES
    user_id=335241

    Ok, try the version at
    http://vba.sourceforge.net/vba-avi.zip and let me know if it
    is any better.

     
  • eniphach

    eniphach - 2004-03-04

    Logged In: YES
    user_id=989244

    I tried vba-avi.zip.

    Instead of 60 it says the framerate is 59.737 but the option
    to change it so the audio and video match is still there, and it
    says 59.695.

    Give me a few minutes to free up a gig and I'll try it with a
    longer movie.

    Also, not a complaint but the 1:28 speedrun of Metroid I just
    ran now desyncs. It will say 1.7.1 on Zophar so this isn't a
    bug.

     
  • eniphach

    eniphach - 2004-03-04

    Logged In: YES
    user_id=989244

    Made a four and a half minute one this time, and for the first
    time yet... same numbers!

    59.737 as it came out of the emulator
    59.695 for the audio to sync up

    Still currently desyncs but it looks like you're narrowing in on
    the problem. =)

     
  • Forgotten

    Forgotten - 2004-03-05

    Logged In: YES
    user_id=335241

    Please download again and let me know. It is now producing
    the AVI with the framerate set to 59.695.

    By the way, what sound frequency do you have set?

     
  • eniphach

    eniphach - 2004-03-05

    Logged In: YES
    user_id=989244

    Yes this time the produced fps is 59.695 but to make the
    audio sync VirtualDubMod suggests 59.667, which really was
    so close that it looked fine four minutes in.

    Almost always 22khz but 44 once or twice.

     
  • Sigma Domoniqu

    Sigma Domoniqu - 2004-06-30

    Logged In: YES
    user_id=1074489

    you mean avi as in those new video roms right yeah for some
    reason it runs great at 99% when its goes above a hundred
    percent the sound gets really choppy for no reason and it
    happens about every minute to two minutes

     

Log in to post a comment.