[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-18 Thread benmccann
I've figured out how to extract the AMR audio from the 3GP file: http://www.benmccann.com/dev-blog/extracting-amr-audio-from-android-3gp-files/ On Mar 14, 9:16 pm, benmccann wrote: > I played with ISO parser a bit more today, and made some progress.  I > made a single 3gp audio recording on my

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-14 Thread benmccann
I played with ISO parser a bit more today, and made some progress. I made a single 3gp audio recording on my Android device and ISO parser seems to be telling me that it is 5 boxes and 3 tracks, which I don't really understand. When I print the results of IsoFile.getBoxes() : File Type Box: 3gp4

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread benmccann
Thanks Warwick. That's basically what I got from Wikipedia, though I'm still not sure the advantage a media container provides. It enables streaming or has some other advantage? I checked out and built the IsoParser, but can't figure out what to pass to getTrack(long trackId). I'm not familiar

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread warwickhunter
Ben, I found some Java code that can parse an mp4 or 3gp file. I am using it to extract an AMR audio stream from the file. https://contributions.coremedia.com/isobox4j/wiki/IsoParser Look at IsoFile.getTrack to get the raw AMR samples and then stick an AMR header on the front of the data. 3gp

[android-developers] Re: Getting Raw Data from AMR-NB 3GP file

2009-03-13 Thread Dave Sparks
There are no public classes for decoding AMR to raw PCM. 3GPP is just a thin wrapper around the raw AMR stream. On Mar 13, 4:01 pm, benmccann wrote: > Any ideas on the easiest way to get the raw data from a file recorded > by the MediaRecorder class? I am going to have to pull up the RFC and >