00:00
00:00
vezanmatics
Freelance animator, occasional music-maker, idealistic sci-fi-enjoyer.

Evan Animates @vezanmatics

Male

Orange Androidimator

A.I.

Killy Philly

Joined on 1/15/08

Level:
30
Exp Points:
9,582 / 9,990
Exp Rank:
3,559
Vote Power:
7.14 votes
Art Scouts
1
Rank:
Police Officer
Global Rank:
13,517
Blams:
148
Saves:
560
B/P Bonus:
10%
Whistle:
Normal
Trophies:
39
Medals:
1,012
Supporter:
8y 4m 29d

My audio lags when I export my flash.

Posted by vezanmatics - December 22nd, 2012


I've been working on a flash project for several months, but recently I noticed a problem with exporting. Be it to .swf, .mov, .html, .avi, any export.

Basically, the audio starts out okay and well-synced in the exported file, but as it plays the audio becomes more and more out of sync. By the end of the flash the audio lag is so noticeable it's distracting. I'm frustrated with this because I've spent a lot of time on lip-syncing, and it turns out to be a total bust.

Even pausing and playing again doesn't force the audio to catch up.

Any ways around this?

File Specs:
Program: Adobe Flash CS6
Flash Length: 472.2 seconds (that's almost 8 minutes.)
Frames: 11,337 frames
Speed: 24 fps
.fla File size: 1,764,749 kb. WOWE.

Also this flash takes like 5-10 minutes to save so I keep autosave to every 1.5 hours.

My audio lags when I export my flash.


Comments

Go to File > Publish settings > Flash > Audio Stream (because I'm assuming you're streaming), and then set the bitrate higher (at least to a number equivalent to the fps you're using).

If you've already done this, then you may be in the same boat I was earlier this year. I had an animation that would go further out of sync as the movie went on. To remedy this, I simply staggered the frames (i.e. the sound came in a 1/4 of a second late, so I moved the animation down about 6 frames). It'll require a lot of guesswork, but it's the only other option.

Good luck and PM me if this helped.

I guess I'll try staggering the frames after the animation itself is done, though that sounds like a real freaking pain. Ah well, it's probably only a matter of pressing f5 a couple times. If it works I'll let you know.

Alternatively, it occurred to me that I could split the original flash file into its respective scenes, reducing the file size. Then I could render each scene individually and work some Aftereffects magic.

You could try Publish settings > Flash > Audio Stream, and then changing that option to ADPCM. I've found that usually works to sync the sound in an .swf without any problems. The sound quality resulting from doing this varies somewhat, so it might not sound perfect, depending.
As for exporting the file as a video file like .avi, you might have to try adjusting the sound and video speed to sync things up by using another program entirely, like Adobe Premiere, Sony Vegas, or Camtasia Studio.

Thank you, this seemed to solve the lag problem but now the audio whistles and pops constantly. So much for that. If only there was a way to get the best of both...

Another thing some people do is add actions in certain frames of the movie like
stop(); play();
because usually when audio starts to go out of sync, stopping the Flash movie and playing it again seems to re-sync it. So if there are any convenient spots in your movie to do that, that might also be worth a try.

The best fix I've heard for this problem is to have sound playing constantly, even if it's just silence. In a separate layer, just play the silence for the duration of your movie, or mix all audio into one big mp3.

Yeah, like some others are saying, setting all of your audio to stream is a start, and make sure the quality is up really high so you don't get the whistles and pops. Also like MSGhero said, you can try having a single sound playing the entire time, whether it's music or silence. Just have it set to stream and loop it the entire video and surprisingly it usually works. Works for me!

Publish settings > Flash > Audio Stream and event. set the rate from 16 to 24 and the quality to best.

I run into this problem all the time. The fix I've learned is kind of unorthodox, but it works.

If your movie is divided into scenes, you'll have to do this scene by scene. If not, it will be easy.

Export your flash as an audio file (wav/mp3/whatever). Once your sound file is exported, bring it into your library. Then create a Movie Clip and open it up. Make the movie clip as many frames as your flash (or scene). Then drop your audio file into that movie clip. Make sure the frame extends as long as the sound clip does.

Now that you have your sound clip in movie clip form, add said movie clip to your first frame and extend it to the end of the movie (or scene). Then clear out all your sounds from the original timeline. Test the movie and see if the sound delay still occurs. If you did everything right, the sound should stay perfectly in sync.

I know it sounds like a mess, but just remember, the overall goal is to get all of your sounds converted to one movie clip and let the movie clip act as your soundtrack. Don't ask me why, but it works flawlessly. So if none of these other techniques are working for you, try this one.

I think that sounds like the best solution. I'll try that when the animation is done, thanks!

I've looked all over the web for a way to solve this problem but have not found one that actually works.