Questions tagged [adts]

This tag is for questions about playback of, creation of, and programmatic interaction with, Audio Data Transport Stream (*.adts) files.

Audio Data Transport Stream (ADTS) is a audio streaming format, consisting of a series of AAC audio frames, each frame having a header followed by the AAC audio data.

More details at http://en.wikipedia.org/wiki/Advanced_Audio_Coding#Container_formats

26 questions
10
votes
7 answers

Hiding a "local" type parameter in Java

Suppose I'm using an interface with a generic type parameter interface Foo { T getOne(); void useOne(T t); } The intention is that the type T is abstract: it enforces a type constraint on implementations of Foo, but the client code doesn't…
Chris Conway
  • 55,321
  • 43
  • 129
  • 155
7
votes
4 answers

Is there a way to implement algebraic types in Java?

Is it possible, in Java, to enforce that a class have a specific set of subclasses and no others? For example: public abstract class A {} public final class B extends A {} public final class C extends A {} public final class D extends A {} Can I…
Apocalisp
  • 34,834
  • 8
  • 106
  • 155
6
votes
1 answer

How to decode AAC compressed frames to PCM using AudioConverterFillComplexBuffer iOS

I want to implement SIP calls in my application, and first problem, that I need to solve, is converting audio from compressed AAC format with ADTS header to linear PCM. My input data is an NSArray of ADTS frames with different framesize. Each frame…
avsmirnov567
  • 176
  • 11
5
votes
1 answer

How to record raw AAC audio files in Android using MediaRecorder? AAC_ADTS doesn't work

I'm using the Android MediaRecorder to record AAC encoded audio files. Setting the output format to MPEG-4 worked pretty well. But as my audio player supports neither MPEG-4 nor 3GP I tried to get raw AAC files by using the output format AAC_ADTS,…
Kirby
  • 86
  • 1
  • 8
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
3
votes
1 answer

AAC ADTS for AACObject ELD packets

How to correctly configure AAC ADTS header to support AAC ELD in Android. I am able to configure for LC and Main. As per the article below https://wiki.multimedia.cx/index.php?title=ADTS Profile take only two bits ( E 2 profile, the MPEG-4…
shinto Joseph
  • 1,039
  • 3
  • 16
  • 27
3
votes
1 answer

How to construct Codec Specific Data (CSD) from AAC-ADTS header?

How to construct CSD data from ADTS header? I can create ADTS header for CSD data, but how to do the reverse? /* function to construct ADTS header from CSD * header_info - contains CSD * frameLength - total frame size */ void…
2
votes
1 answer

How does the fmp4 file populate the esds box according to the ADTS of the AAC frame?

My source AAC frame contains the ADTS header. I need to initialize the esds box in the fmp4 file according to the ADTS, cut out the ADTS header and fill in the rest data, but I have tried many times without success (the player can't parse out the…
YuanDa.Yu
  • 127
  • 7
2
votes
1 answer

Invalid ADTS sampling_frequency_index and channel_configuration why?

I hope someone can direct me on the right path before I put a lot of time and effort on this. I'm currently trying to parse an AAC+ frame to get information such as number of channels and sample frequency. So it seems that we can simply get this…
Jona
  • 13,325
  • 15
  • 86
  • 129
2
votes
1 answer

BST Level Traversal

Ok, so I'm trying to do a level order traversal of a binary search tree and its not working. The code below makes sense to me, but that is probably because I've been looking at it forever and I've convinced myself that it should work. void…
Dalton Conley
  • 1,599
  • 2
  • 28
  • 36
2
votes
0 answers

How to format audio file into aac in window phone 8?

I want save audio file into .aac format and send to iPhone : private string fileAudioName; private IRandomAccessStream randomAccessStream; private AudioVideoCaptureDevice mic; private DispatcherTimer dtm; private async void RecordAudio() { try …
Quang Quí
  • 35
  • 10
2
votes
0 answers

Gstreamer AAC ADTS with variable bitrate time duration calculation

I am using gstreamer for my aac files . I want to know how to calculate exact duration for AAC file with ADTS format(ie variable bitrate) in fast way. Right now I am calculating estimated duration at the start of frame which gives more error…
geek2geek_AWS
  • 556
  • 1
  • 7
  • 18
2
votes
2 answers

How to read ADTS header from file in C++?

How can I read the header of an ADTS encoded aac file? I need it to get the buffer length for each frame to read out the whole aac file. But I can't get the right values. Here is my code to read the header and get the buffer length for each…
user2212461
  • 3,105
  • 8
  • 49
  • 87
1
vote
1 answer

Handling unions, subsets and supersets in Scala

I need to write a code snippet that would compare multiple arrays and produce the set that match the data in those arrays, produce the data set only in array A, but not in array B,C,D,in array B but not in A,C,D, being able to handle any number of…
Roman Kagan
  • 10,440
  • 26
  • 86
  • 126
1
vote
1 answer

Creating ADTS frame on iPhone.... problem

I am getting raw aac data from web stream and try to put it in ADTS frame in order to play it on iPhone. It works for 10 seconds then sound stops and restart but seems accelerated or mixed with others audio data. Quicktime and others audio app are…
thierryb
  • 3,660
  • 4
  • 42
  • 58
1
2