Skip to main content
Participant
August 14, 2011
Answered

Flash audio out of sync

  • August 14, 2011
  • 2 replies
  • 36137 views

Hi everyone,

I have an animation that I am exporting as either a .wav or .mov file then editing in different software but when I import the new file it is out of sync.  That sounds confusing so I will explain.

The project is a cartoon and a temp dialogue track was created before animation started.  Then that temp track was used to animate over and do lip synching.  Recently, actors have re-recorded the original temp dialogue track.  So, I need to export the original dialogue track out of Flash, use an editor, in this case Final Cut Pro, and replace the dialogue then export that as an audio file and bring it back into Flash. 

But it is always out of sync.  I have even exported a .wav file from Flash then immediately re-imported it and put it on the timeline and it is already out of sync. And it is the exact same audio! I don't even know how that could be possible. Surely if you export a wav from Flash and then re-import it, it should be exactly the same.

Does anyone have any ideas?

Cheers,

Rob

    This topic has been closed for replies.
    Correct answer theonemanshow

    Well yeah it worked for me then putting it in Mp3. P.S this was not easy too find out because i was too busy with sources not helping on the internet. When i did this it worked very well I have not had a problem ever since

    by the way sorry for making you wait. and If you want you and friends can see my channel here comment if want me to do tutorials for things your having problems with the choice is yours my friend.


    My youtube channel is here for those who want to see Ran D ass Studio Productions - YouTube

    2 replies

    theonemanshow
    Participating Frequently
    August 4, 2014

    Hello I have the The Answer for Every one try and see. I tested it and it works so say thanks.works for every version of adobe Flash cc cs6 cs5

    look below.

    Participant
    January 28, 2016

    Thanks Dude, you saved my animation life!!!

    adninjastrator
    Inspiring
    August 14, 2011

    Couple things, Flash uses "stream" or "event" sound:

    "To Stream, or Not to Stream

    Flash can handle sounds in two different ways, Stream or Event. A streamed sound plays as it comes into the computer. You dont have to wait for the entire file to download. An event sound must fully download before it plays, but is stored in the memory for later re-use.

    After youve placed a sound into Flash, youll have to decide if the sound should stream or not."

    http://www.awdsf.com/courseware/flash/flash6_sound.htm

    Second, be sure that the frames per sec of the Flash doc EXACTLY matches that of the audio.

    Flash high recommmends AGAINST embedding sounds into the timeline (unless they are very short), but I've not had any problems even keeping embedded video in sync with it's sound track as long as I set the Flash document frames per second to exactly match that of the audio.

    So for example, a video (with audio) recorded at 29.97 fps, and embedded directly into the main time line would need to have the Flash doc fps set at 29.97 in order to keep the audio in sync with the video. The sound is only going to play correctly at one frame rate... too slow and the wwoorrddss wwiilll ddrraagg oouuttt. Toofastandtheywillsoundfunnybecausethefrquencyofthesoundhaschanged. Makes sense doesn't it?

    So it's NOT the audio that's out of sync... there is one and only one frame rate that will work for the audio... it the animation that's out of sync. Change the Flash doc frame rate to exactly match the audio... then sync the animation to match that.

    Best wishes,

    Adninjastrator

    rjpat1Author
    Participant
    August 14, 2011

    Thanks for replying!

    I will check on the stream and event thing.  Which one would you recommend?  And how would they effect the sync?

    The frame rate for the entrie project is 25fps and always has been but I know that audio doesn't technically have a frame rate so I don't think that could be the problem. And the .fla file plays fine within flash so it's definitely not frame rates. The audio was recorded separately at 44.1 khz 16-bit and then inserted into Flash and the animation completed around the audio.  We have split the audio file within Flash at some points because the timing wasn't right... maybe that's it but it seems like such an easy feature. It's strange because when we output an swf everything is exactly in sync. 

    adninjastrator
    Inspiring
    August 14, 2011

    "Stream" sound should work best.

    Since any one particular Flash project will have it's own special quarks and parameters... I can't say for sure why there are sound problems in your project. But I do stick by the theory that it's the animation, not the audio that's out of sync.

    If the audio file is exactly 3 minutes long, you can not change that or the frequency of the sound will either drop (sound takes >3 min to play), lowering the pitch or the frequency will increase (sound takes <3min to play) causing a raise in pitch.

    It's the animation that's out of sync, not the audio.

    So if the audio seems to be lagging, falling behind the animation, reduce the frame rate of the Flash doc. If the audio seems to be running ahead of the animation, increase the Flash doc frame rate.

    And it works just fine to use fractional framerates. If 25fps is too fast (audio lags) try 24.75 or 24.5. It won't cost anything to at least test this theory, just give it a try and see what happens.

    Best wishes,

    Adninjastrator