PDA

View Full Version : Output spectrum analyzer to video?


rrh
06-22-2008, 08:28 PM
So, I've tried a couple FLV to Video demos, one is Flash to Video Encoder Pro, the other is ADShareit SWF to Video Converter. I've managed to get AS3 scripted behaviour out of both, but one thing that hasn't been working right is some spectrum analyzer stuff using SoundMixer.computeSpectrum()

That's a really important point for me, and I'm not clear why it's not working. What it's doing is that the computeSpectrum is returning all zeros. I think the Sound object is somehow not registering properly. (Although I can hear the audio in the resulting video file.)

One way I could probably sidestep it, is run it once on the audio to make an array of values and then use the array of values when producing the final video. But I would like to hear if anyone has found another way to produce video, or has a clearer explanation of why it doesn't work.

Added: I put the computeSpectrum into an EnterFrame event handler. The sound is in the library and is being played using code like this:
var music:Sound = new meetJanetmp3();
music.play(0, 1);
I would have just used timeline audio, but that doesn't work with SoundMixer.

rrh
06-23-2008, 03:58 AM
You know what? I'm just going to use the "output to quicktime .mov" thing. I had shied away from that previously, because I had something else that didn't work with that before, but I just tried out this project, and it works okay.

rrh
06-27-2008, 05:33 PM
Actually, it's not as okay as I thought. The quicktime export drops frames on export.


And I tried the solution where I generate a big array of values from the computeSpectrum and then use those instead of running computeSpectrum during the export, and for some reason I can't get that to sync up with the audio at all.