Question
FMS FLV audio to mp3
THE PROBLEM:
I am using the NetStream class with FMS to record the audio stream from the client's microphone to the FMS server.
So far so good, the stream gets saved to the server as a .flv file. A php script grabs this file via ftp and copies it to the user's file store.
What we need now is to either record the stream directly as .mp3 OR convert the recorded .flv to a .mp3 file - and this is where it gets interesting.
POSSIBLE SOLUTION 1 (preferred solution), Recording stream directly as .mp3:
Please refer to Actionscipt Reference for Flash CS4:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/
ns.publish("mp3:mymp3stream");
Under class 'NetStream', method 'publish you will see the above.
The documentation suggests that it should be possible to directly record the audio stream as a .mp3 file. NOTE: this is with the new version, Flash CS4.
I have tried this with both an Influxis account and with FMS 3.5 dev on my local machine. Both return this error:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Publish.BadName
When I publish and record just as .flv it all works fine on both servers.
So the question here is: Is this a mistake in the documentation, is this a bug in the software (Flash), a problem with FMS or is this a rights issue that has not been resolved?
POSSIBLE SOLUTION 2, Convert the .flv to .mp3 after recording:
I can convert the .flv to .mp3 on the windows version of FMS running on my local machine using the command line ffmpeg.exe.
Ffmpeg does not appear to work converting .flv to .mp3 on a Debian version of Linux, and this is where we need to get it working.
Previously there was an opensource project called 'nelly2pcm', which has recently been withdrawn due to legal reasons. Nellymoser is the codec used by FMS to record the stream. In Flash CS4 there is also the option of using the SPEEX codec (however this too does not work with ffmpeg).
I expect the problems with these 2 potential solutions may be related. I have read certain posts suggesting there is dubious legality to some of the conversion utilities available to convert FMS recorded .flvs to .mp3.
Any suggestions or confirmations of the status of these issues would be much appreciated.
There are quite a few posts suggesting that using ffmpeg on a linux machine should work, but I am concerned that if there are legal problems with this we may be wasting our time.
I am using the NetStream class with FMS to record the audio stream from the client's microphone to the FMS server.
So far so good, the stream gets saved to the server as a .flv file. A php script grabs this file via ftp and copies it to the user's file store.
What we need now is to either record the stream directly as .mp3 OR convert the recorded .flv to a .mp3 file - and this is where it gets interesting.
POSSIBLE SOLUTION 1 (preferred solution), Recording stream directly as .mp3:
Please refer to Actionscipt Reference for Flash CS4:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/
ns.publish("mp3:mymp3stream");
Under class 'NetStream', method 'publish you will see the above.
The documentation suggests that it should be possible to directly record the audio stream as a .mp3 file. NOTE: this is with the new version, Flash CS4.
I have tried this with both an Influxis account and with FMS 3.5 dev on my local machine. Both return this error:
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Publish.BadName
When I publish and record just as .flv it all works fine on both servers.
So the question here is: Is this a mistake in the documentation, is this a bug in the software (Flash), a problem with FMS or is this a rights issue that has not been resolved?
POSSIBLE SOLUTION 2, Convert the .flv to .mp3 after recording:
I can convert the .flv to .mp3 on the windows version of FMS running on my local machine using the command line ffmpeg.exe.
Ffmpeg does not appear to work converting .flv to .mp3 on a Debian version of Linux, and this is where we need to get it working.
Previously there was an opensource project called 'nelly2pcm', which has recently been withdrawn due to legal reasons. Nellymoser is the codec used by FMS to record the stream. In Flash CS4 there is also the option of using the SPEEX codec (however this too does not work with ffmpeg).
I expect the problems with these 2 potential solutions may be related. I have read certain posts suggesting there is dubious legality to some of the conversion utilities available to convert FMS recorded .flvs to .mp3.
Any suggestions or confirmations of the status of these issues would be much appreciated.
There are quite a few posts suggesting that using ffmpeg on a linux machine should work, but I am concerned that if there are legal problems with this we may be wasting our time.
