00:00
00:00
bocodamondo
i'm just some dumbass who likes to draw and animate

Male

Artist and Animator

Dressrosa

Joined on 8/4/09

Level:
15
Exp Points:
2,444 / 2,500
Exp Rank:
25,107
Vote Power:
5.74 votes
Art Scouts
4
Rank:
Police Officer
Global Rank:
11,659
Blams:
18
Saves:
795
B/P Bonus:
10%
Whistle:
Normal
Trophies:
21
Medals:
597
Supporter:
1m 1d

Flash audio desync

Posted by bocodamondo - May 15th, 2014


once my flash animation project gets too big, i start to get 2 problems.

one is the fucking programm keeps annoying me about how im not having enough memory...

and second is, after a while. like 5 minutes, the audio starts to desync. i tired lots of tricks to solve this. like turning all the audio files to one. or used swivel to upload audio seperatly from swf file...but none worked, the audio still desync...does anyone know what i can do to solve this?

i dont want to manually put every audio file ahead on purpose so that it plays at the right moment in the delayed swf/avi..its too much of a pain in the ass to do so


Comments

Try having layers only for sounds, nothing else. When there is no sound playing, have it play audio of silence. Have it play audio on all audio layers from frame 1 to last frame no exceptions. It works for me.

hmm...this might actually work, i'll give it a try

If everything is timed properly in the fla then just export the video only and combine video and audio in a third party program like sony vegas. I gave up on messing with the Audio/video sync in flash a while ago because that program is terrible with memory

i guess but the quality i get from swivel is soo incredibly awesome with such low mb size, i dont want to ruin it by compressing it again in another programm like vegas and have inferious quality with bigger size

Theres a program called AVS for you that can take any file format and convert it with good compression that is pretty lossless

hmmm..i'll check it out

You could try exporting each scene as separate videos and put them together in Final Cut Pro or Adobe Premier and I think some animators like Harry Partridge have stated they've used Premier to edit the videos of their animations together there. If you don't have either, you can get a free trial of Premier if you haven't gotten one yet.

allright, i'll keep that in mind

In Sonic Paradox, we've run into the same problems. Unless you have Flash on Creative Cloud, you're stuck with 32-bit Flash, which can only make use of 4 GB of total memory. We've had to break up and go video-only on our latest projects to get around that obnoxious 4 GB RAM limit. X_X

The only way we've gotten around Swivel and it's audio desync is by breaking up our presentations into several segments and them importing them into another program, like Adobe Premiere and then exporting the combined sequence as Windows Media video and audio. With the right settings, it actually performs very well in terms of quality and file size.

I only wish I knew what MP4 variant Swivel used. I'd buy that video compressor in a heartbeat if I knew what version it was. It definitely performs the best, even with maximum bitrates.

i guess this really is the best trick to ....

its a bad idea having more than 2 minutes of animation in a flash file. you might have to break it down into multiple flash files by copying and pasting frames. then export them in separate swfs and compile them in swivel.

you're right...if the size gets too big, the programm becomes a major pain in the ass to work with ...

From personal experience with audio in Flash, having separate layers for sound prevents cluttering of audio and potential overloading of memory.

I haven't had any audio sync problems issues in terms of large file sizes. The worst I've had recently in terms of Flash problems is when I tried to move a single keyframe that had audio going for a very long time to an early point in the timeline. This resulted in the Flash file closing on me (I'm just glad I saved recently :P). The solution I discovered after a couple of crashes was adding a keyframe ahead of the audio so there was less audio that had to be moved, THEN I moved the audio to where I wanted it. The audio in this project worked fine afterwards and I haven't had any crashes on the file since.

While it is not the same problem you are experiencing, I hope maybe the method I used to solve my audio problem can be of some use.

I wish you luck with the project!

beside the audio desync my other problem is as i stated above, flash annoying me about how im not having enough memory. when the file gets too big i cant do anything, not import any audio/file , not even move or paste a single keyframe ...or even test the video..it will bitch about how theres not enough memory to do so...

Just split the file into few parts - If you put 4 swf's in order inside Swivel - it will render into one video file

ops, i didnt even knew i can put multipe swfs in swivel at once...but what about the audio? do i have to use audio files from said swfs or upload a different one for all?

Go to Publish Settings>Flash>Audio Stream>Set and change it to ADPCM. Works for me.

I've added a pic for you to see:
imgur /fSPJ5lM

hooo.this actually worked. wow...but im not sure if it will work for swivel too. but i'll see

edit: nope, i tried, it doesnt work for swivel, only for the swf

Regarding audio - both ways will work. But i upload 1 audio track just to be sure ;3

allright then

Are you swayed

I've been told to change my framerate. I animate at 24 fps and they told me to change it to 23.976 (or 23.98) fps. Sure enough, even though it still shows as 24fps (23.98 in some areas), I still have synced audio all the way along, and the animations (storyboards) have been about 4-6 minutes in length.

I made the storyboard for this one: http://www.newgrounds.com/portal/view/630887. It's just over 5 minutes long but the audio stays synced all the way along using the same technique.

I haven't tried the ADPCM tip a few comments down. I'll have to try that one as well.

i allways work with 20 fps. and the audio starts to desync at 5 minutes

go to publish settings and and find the options about audio stream and audio event, raise the compression from 24 kbps to 64 kbps or higher, this solved my audio sync problem.