Hi !


Look what i've found in android sources:

        /** @hide AAC ADTS file format */
        public static final int AAC_ADTS = 6;

in frameworks/base/media/java/android/media/MediaRecorder.java

It's right there, but not visisble yet in the documentation :/


It works on my galaxy SII with ICS 4.0.3:


abrac@dabra:~/Bureau$ mediainfo test.adts 
General
Complete name                            : test.adts
Format                                   : ADTS
Format/Info                              : Audio Data Transport Stream
File size                                : 11.1 KiB

Audio
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format version                           : Version 4
Format profile                           : LC
Bit rate mode                            : Variable / Variable
Minimum bit rate                         : 4 875 bps
Maximum bit rate                         : 109 Kbps
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 8 000 Hz
Compression mode                         : Lossy
Stream size                              : 11.1 KiB (100%)


You just set the output format to 6: mr.setOutputFormat(6);

Regards

On Wednesday, April 11, 2012 7:32:06 PM UTC+2, Tom Uhl wrote:
>
> ICS is supposed to support encoding AAC-ADTS. I can use 
> setAudioEncoder(MediaRecorder.AudioEncoder.AAC) to set the audio 
> codec, but how do I tell the MediaRecorder to use the ADTS packaging 
> format? It seems like there needs to be a 
> "setOutputFormat(MediaRecorder.OutputFormat.ADTS_RAW)". 
>
> Tom

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to