View Single Post
  #4  
Old 09-23-2008, 10:14 AM
Stream Recorder
 
Posts: n/a
Default

Re: Splitting Nellymoser FLV (extracting raw Nelly Moser stream from FLV file)


There was a program for Linux at google code called nelly2pcm. It was removed from google code in response for compliant received from DMCA. You may try to find it on other web-sites.

nelly2pcm converts an flv sound file to a raw pcm file.

Creating an executable file for nelly2pcm:
Code:
$ tar -xjvf nelly2pcm.tar.bz2
$ 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
Running nelly2pcm
Code:
$ ./nelly2pcm test.flv > test.raw
mono Nellymoser stream with 16-bit samples at 44kHz
This will create a raw NellyMoser sound file with no headers. Moreover it will output the characteristics of the Nellymoser stream that you will need in the next step.

To play this raw file you can use sox (apt-get install sox)
Code:
$ sox -r 44100 -c 1 -2 -s test.raw
If you can play the file (options must be correct), you can use sox to create a wav file which is essentially the same except that it has a header which contains all the settings (e.g. bitrate etc.)
Code:
$ sox -r 44100 -c 1 -2 -s test.raw test.wav
Reply With Quote