Groups | Blog | Home
all groups > macromedia flash flashcom > november 2005 >

macromedia flash flashcom : Record to MP3


wallster
11/29/2005 2:32:11 PM
What is the best way to record using the client's microphone to an MP3 stored
in a database?

Currently, I am doing:

client_nc.connect("rtmp://mymediaserver/myRecordedMp3Directory");
out_ns = new NetStream(client_nc);
out_ns.attachAudio(Microphone.get());
out_ns.publish("myMp3", "record");

But this publishes an FLV file. I can use NetStream to play MP3s using
play("mp3:myMP3"). All I want is a way to record MP3s and then get a handle on
the MP3 to put it in a database or use it in as an argument in a web service
call.

Any ideas?
FlashTastic
11/30/2005 10:42:22 PM
Wallster, this has been a hot button issue in the FMS community. Audio
recorded via Flash Media Server can only be converted to MP3 in 2 ways (that I
know of), due the the NellyMoser audio coded the media server uses to encode
the audio.

1. If you have a windows machine, download "Total Video Converter". It will
extract the audio track from the FLV quite nicely (although there is no command
line support as of yet so you can't automate it on the server side).

2. If you're lucky enough to have your Flash Media Server hosted on Linux ,
there is an application available.
http://etudiant.epita.fr/~founad_m/flv2mp3/#

Theres also rumours out there that if you contact NellyMoser, they will
provide you with software to extract the audio, but so far those are unfounded
as far as I know.


Cheers,
FlashTastic
wallster
12/2/2005 11:03:24 PM
Thanks for the pointers. Unfortunately, I need to be able to publish to MP3 in
realtime. So, unless I could use FLV2MP3 as a pipe on the stream, it won't
solve my problem. Currently, I am just handling all of the cases of both MP3
and FLV which seems unnecessary when all I want is MP3 :-)

AddThis Social Bookmark Button