Questions tagged [aac]

Advanced Audio Coding (AAC) is a standardized, lossy compression and encoding scheme for digital audio. Designed to be the successor of the MP3 format, AAC generally achieves better sound quality than MP3 at similar bit rates.

Advanced Audio Coding (AAC) is a standardized, lossy compression and encoding scheme for digital audio. Designed to be the successor of the MP3 format, AAC generally achieves better sound quality than MP3 at similar bit rates.

AAC has been standardized by ISO and IEC, as part of the MPEG-2 and MPEG-4 specifications.[3][4] Part of the AAC known as High-Efficiency Advanced Audio Coding (HE-AAC) which is part of MPEG-4 Audio is also adopted into digital radio standards like DAB+ and Digital Radio Mondiale, as well as mobile television standards DVB-H and ATSC-M/H.

AAC can be encapsulated in MP4, ADTS and ADIF formats. Use as well if the question is related to AAC encapsulated in ADTS and if the question is related to AAC encapsulated in MP4 container.

More information at AAC in wikipedia

574 questions
39
votes
3 answers

What is the difference between M4A and AAC Audio Files?

Is there any difference between M4A audio files and AAC audio files or are they exactly the same thing but with a different file extension?
alexandertr
  • 853
  • 1
  • 8
  • 17
24
votes
3 answers

PCM to AAC conversion using mediacodec

I am using a media codec class in Android (Jelly Bean) to encode PCM format to AAC. The file was encoded but no music player is able to play that file. I was not able to find any working code or proper documentation on the net. This is my…
tikson
  • 251
  • 1
  • 2
  • 6
23
votes
1 answer

Android MediaCodec AAC encoder

I use the MediaCodec class provided by the Android SDK since API level 16 with the OMX.SEC.aac.enc encoder to encode audio to a file. I get the audio input from the AudioRecord class. My instance of the AudioRecord class is configured like…
user2144883
22
votes
6 answers

PCM -> AAC (Encoder) -> PCM(Decoder) in real-time with correct optimization

I'm trying to implement AudioRecord (MIC) -> PCM -> AAC Encoder AAC -> PCM Decode -> AudioTrack?? (SPEAKER) with MediaCodec on Android 4.1+ (API16). Firstly, I successfully (but not sure correctly optimized) implemented PCM -> AAC Encoder by …
user1028880
22
votes
5 answers

Streaming AAC audio with Android

As I understand it, Android will only play AAC format audio if it's encoded as MPEG-4 or 3GPP. I'm able to play AAC audio encoded as M4A when it's local to the app, but it fails when obtaining it from a server. The following works, as the m4a file…
bdls
  • 4,548
  • 6
  • 22
  • 30
19
votes
4 answers

What is the easiest way to wrap a raw .aac file into a .m4a container

This question is overflow from the following question: How do I programmatically convert mp3 to an itunes-playable aac/m4a file? Anyway, I learned how to create an aac file and then i found out that an aac is not just an m4a file with a different…
kwork
18
votes
2 answers

Encoding AAC Audio using AudioRecord and MediaCodec on Android

I am trying to encode aac audio using android AudioRecord and MediaCodec. I have created a encoder class very similar to (Encoding H.264 from camera with Android MediaCodec). With this class, I created an instance of AudioRecord and tell it to read…
xiaowoo
  • 2,128
  • 6
  • 31
  • 44
14
votes
1 answer

Android - Include native StageFright features in my own project

I am currently developing an application that needs to record audio, encode it as AAC, stream it, and do the same in reverse - receiving stream, decoding AAC and playing audio. I successfully recorded AAC (wrapped in a MP4 container) using the…
pablitar
  • 143
  • 1
  • 1
  • 7
14
votes
3 answers

Encode wav to AAC on Android

You can use MediaRecorder to record a stream directly to AAC but there doesn't seem to be a way to encode an existing PCM/WAV file to AAC. The ability to encode to AAC exists natively in Android and I'd like to use that. Is there no way to do it…
Matt
  • 3,033
  • 4
  • 28
  • 42
14
votes
1 answer

Decode AAC to PCM format using AVAudioConverter Swift

How convert AAC to PCM using AVAudioConverter, AVAudioCompressedBuffer and AVAudioPCMBuffer on Swift? On WWDC 2015, 507 Session was said, that AVAudioConverter can encode and decode PCM buffer, was showed encode example, but wasn't showed examples…
14
votes
5 answers

AAC/MP3 Licensing

If I use the audio decoding libraries included in iPhoneOS (ex. AVAudioPlayer). Do I still have to pay for a license from Thomson, or VIA Licensing to legally decode AAC or MP3 files in my app? Edit: I was unable to find an exact answer from…
Skyler Saleh
  • 3,956
  • 1
  • 19
  • 34
14
votes
2 answers

how to record audio file with better quality in android?

I am creating one application which play recorded file on Android to iphone and vice-versa. now I am using , audioRecorder = new MediaRecorder(); audioRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); …
PrvN
  • 2,225
  • 6
  • 27
  • 30
13
votes
4 answers

Should I use the MP3 or AAC codec for a .mp4 file?

We have an encoding process in place using ffmpeg on Mac OS X. This process will take a source video and a couple files from that: .m3u8 video, .mp4 video and .mp3 audio file. By default we've used the video from our m3u8 process which is a h264…
Justin Jenkins
  • 24,581
  • 5
  • 63
  • 1,283
13
votes
2 answers

Encode audio to aac with libavcodec

I'm using libavcodec (latest git as of 3/3/10) to encode raw pcm to aac (libfaac support enabled). I do this by calling avcodec_encode_audio repeatedly with codec_context->frame_size samples each time. The first four calls return successfully, but…
ryan
  • 864
  • 1
  • 9
  • 14
12
votes
2 answers

How to normalize the volume of an audio file in python?

I have a bunch of AAC (.m4a) audio files that need to be normalized, and was hoping to find a way to do it with a simple python script using some package. I found this thread on superuser where someone has written an ffmpeg command-line utility in…
Luke Davis
  • 2,066
  • 1
  • 14
  • 33
1
2 3
38 39