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.
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.