PDA

View Full Version : Generating mp3 from as3



Luke Perry
December 16th, 2009, 10:00 AM
Hi everyone!

I'm doing some research for a project, and have hit a snag.

The idea is for the users to freely arrange a set of different sounds in a timeline to create a song. So far so good, no problems here.

But the twist is that the created song also shall be converted and saved as a mp3-file.
Here my problem starts.

From what i've been able to google it is possible to via media server and ffmpeg create a mp3 file. But how would one go about merging the arranged sounds into a single sound and sending it to the server?

Is this even possible? Does anyone have any experience in working with this kind of stuff.

Robbus
December 16th, 2009, 10:44 AM
Assuming you have a predefined set of sounds (i.e. the user can't import their own) then all you need to do from the Flash end of things is send a bunch of meta data to the host server which explains how the user arranged the sounds in the timeline. The server would then (magically) create an mp3 based on that data as it would also have the source sound files accessible to it.

Cheers,
Rob