Extracting from sound from Flash (aka NellyMoser)
So you need something like Flash Media Server or Red5 to record it.
However, once you record it to the server it is an flv and the audio codec is stored as a NellyMoser encoded audio portion. This codec is not supported by many applications and after a quick google found the nelly2pcm project on google code.
This will convert a flv sound file to a raw pcm file - which you can then do useful stuff with. So here's how to do it on a Ubuntu machine.
- Ensure you have build tools: (apt-get install build-essential)
- Download nelly2pcm from google code
- Extract and Compile it,
$ cd nelly2pcm
$ make
cc -Wall -c -o nelly2pcm.o nelly2pcm.c
cc -Wall -c -o nelly.o nelly.c
cc -Wall -c -o nelly_tables.o nelly_tables.c
cc -Wall nelly2pcm.o nelly.o nelly_tables.o -lm -o nelly2pcm
You can run it as follows:
mono Nellymoser stream with 16-bit samples at 44kHz
This will create a raw sound file with no headers and output the line above which you'll need for the next part.
To play this file back you can use sox (apt-get install sox)
If you've got all the options correct then this will play the file back. Once you got it correct you can then use sox to create a wav file which is essentially the same except that it has a header which contains all the settings (eg bitrate etc)
From a wav you can convert to whatever you like. I'm looking forward to the Flash Player 10 release as this messing will no longer be necessary as it will support encoding with the free Speex codec.
Cheers, Mark
Update:
In the 12 hours since I wrote this post it appears that a DMCA takedown notice has been served on the nelly2pcm site and google have taken it down. I've no idea if it's related to this post or not and no details are available yet on the chillingeffects site but hopefully it will be updated shortly. As I mentioned earlier, I can't wait for flash 10 with the speex codec so we don't have to use Nellymoser, well done Adobe for including it.





Cheers,
Mark
I'll have a look at building from source one of these days.
Cheers,
Mark
This might be what you need.
Cheers,
Mark