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

614 questions
5
votes
0 answers

Android OpenSL ES AAC decoder

Is there any example source code how to decode AAC frames into PCM using Android OpenSL ES AAC decoder code? I need to decode AAC frame (with or without ADTS header) stored in memory buffer into PCM.
user1744147
  • 1,099
  • 13
  • 30
5
votes
1 answer

How to record using AVAudioRecorder without the .caf container?

I am using a AVAudioRecorder instance to record with the setting for AVFormatIDKey set to kAudioFormatMPEG4AAC. It records the audio in AAC format but a .caf audio container packages the audio file. (I can see the caff header in the recorder…
rahulg
  • 2,183
  • 3
  • 33
  • 47
5
votes
2 answers

Converting audio on android to mp3 or AAC

I am recording audio from mic and save it to .mp4 - it is AMR format. How to convert this audio to mp3 or AAC? I saw this post and I did not understand it - I am new in android. Is there some easy library for android that can work with mp3? I…
Evgeny Borzenkov
  • 1,107
  • 3
  • 12
  • 19
5
votes
0 answers

AAC with PhoneGap on Android

Is there any existing plugin to play AAC on Android with PhoneGap ? The code should remain the same as it is the primary goal of PhoneGap. But for now, I learned that there doesn't seem to be a native way to play this AAC feed. I found something…
Patrice Cote
  • 3,572
  • 12
  • 43
  • 72
4
votes
5 answers

Best he-aac encoder on linux?

I need an encoder that can convert mp3 files to he-aac (aka aac+). So far the best one I have found is nero aac encoder . I have two problemes with it : - Only one input format : wav . It is a little bit slow to transform mp3 files to wav and…
Alexandre Victoor
  • 3,104
  • 2
  • 27
  • 27
4
votes
3 answers

How to detect AAC audio profile and ensure Android compatibility

I am having problems figuring out how to detect if an AAC audio source is compatible with Android. The supported media formats page for android says 'AAC LC/LTP' when delivered as 3GP, MPEG4 or ADTS raw AAC. It appears the LC means 'Low Complexity"…
Nick Campion
  • 10,479
  • 3
  • 44
  • 58
4
votes
1 answer

iPhone: Problems encoding 32KHz PCM to 96Kbit AAC using AudioConverterFillComplexBuffer

Has anyone had success converting 32KHz PCM to 96Kbit AAC on iPhone/iOS? I can not get this to work correctly on any hardware device. The code I wrote only works correctly in the simulator. When run on current-generation iPad/iPod/iPhone, my code…
welch1820
  • 41
  • 1
  • 3
4
votes
1 answer

Which mp4 timescale should I use for creating/modifying chapter trak atoms?

Background: I'm working on a Swift library for modifying audiobook chapters and metadata in a much simpler and user-friendly way than AVFoundation. I'm not editing with the actual media at all, this is simply for tagging and chaptering audiobook…
NCrusher
  • 93
  • 1
  • 10
4
votes
2 answers

Can't give metadata of comment to MP3 file using ffmpeg

I want to covert an AAC audio file to MP3 and add a comment in the metadata of the MP3 file using ffmpeg. The -metadata comment option doesn't work and ffmpeg doesn't return an error. The complete command I'm running is ffmpeg -i "test.aac" -ab 128k…
Juco
  • 43
  • 4
4
votes
1 answer

AAC Packet Size

I am working on an M4a file with the following metadata: Metadata: major_brand : M4A minor_version : 0 compatible_brands: M4A mp42isom creation_time : 2019-08-14T13:45:39.000000Z iTunSMPB : 00000000 00000840…
Ahmed Hawary
  • 461
  • 4
  • 15
4
votes
1 answer

Invalid data found when processing file with ffmpeg API

I have an m4a file containing two AAC-encoded audio streams. I want to decode it on Android with the ffmpeg library. However, avformat_open_input() fails with "Invalid data found when processing input". This file was created (i.e. the audio data…
Timmy K
  • 291
  • 1
  • 2
  • 14
4
votes
1 answer

FFmpeg check audio channels for silence

I have two .mp4 files, both having 8 (7.1) audio channels. But in fact, I've been told that one has a stereo audio channel + 2 SAP (secondary audio on channels 7-8), and the other one has 6 (5.1) audio channels + 2 SAP (on channels 7-8). So…
Tina J
  • 4,983
  • 13
  • 59
  • 125
4
votes
0 answers

Android adding AAC ADTS to Mediarecorder PCM

My Mediarecorder gives me a PCM File as an output when I record the phone's microphone. Now when trying to listen to this File that it created all I hear is static and I think, if I have understood correctly, I get a PCM file from Mediarecorder not…
Richard
  • 1,087
  • 18
  • 52
4
votes
1 answer

Muxing AAC audio and h.264 video streams to mp4 with AVFoundation

For OSX and IOS, I have streams of real time encoded video (h.264) and audio (AAC) data coming in, and I want to be able to mux these together into an mp4. I'm using an AVAssetWriterto perform the muxing. I have video working, but my audio still…
Sully
  • 41
  • 2
4
votes
1 answer

MediaCodec decode AAC audio chunks from RTSP and play

I'm receiving rtp packets containing aac audio chunks encoded by libvo_aacenc (44100hz 128kbps 2ch) from a FFServer instance. I'm trying to decode them with MediaCodec one by one in Android and playback as soon as the chunk is…
Nicolò
  • 186
  • 1
  • 16