Welcome Guest ( Log In | Register )

Detecting codec in a stream, aac adts vs mp3
post Oct 7 2012, 12:46
Post #1

Group: Members
Posts: 142
Joined: 13-December 04
Member No.: 18660

How does e.g. VLC detects the codec when opening a http stream?

Both AAC and MP3 has a very short sync mark which often appears in other streams.


This post has been edited by stigc: Oct 7 2012, 12:53
Go to the top of the page
+Quote Post
Start new topic
post Oct 7 2012, 18:38
Post #2

Winamp Developer

Group: Developer
Posts: 670
Joined: 17-July 05
From: Brooklyn, NY
Member No.: 23375

The first four bytes of an ADTS AAC frame header look exactly like an MPEG-1/2 "Layer 4" frame. So it's quite easy to detect the difference.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 29th November 2015 - 21:42