Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Comcast/gaad
GAAD (Go Advanced Audio Decoder)
https://github.com/Comcast/gaad
Last synced: 3 months ago
JSON representation
GAAD (Go Advanced Audio Decoder)
- Host: GitHub
- URL: https://github.com/Comcast/gaad
- Owner: Comcast
- License: apache-2.0
- Created: 2016-07-11T14:19:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T22:41:30.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T20:30:23.258Z (5 months ago)
- Language: Go
- Homepage:
- Size: 109 KB
- Stars: 122
- Watchers: 12
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
- awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go-with-stars - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-Char - gaad - Native Go AAC bitstream parser. (Audio and Music / Contents)
- awesome-go-cn - gaad
- awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go-stars - gaad(stars: 120) - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go-cn - gaad
- awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-open-synth - gaad - 2.0 | Go | (Go)
- awesome-go-cn - gaad
- awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go - gaad - | (Audio and Music)
- awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go - gaad - Native Go AAC bitstream parser. - :arrow_down:0 - :star:11 (Audio and Music)
- awesome-go - gaad - GAAD (Go Advanced Audio Decoder) - ★ 49 (Audio and Music)
- awesome-go-cn - gaad
- awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go - gaad - 本地AAC码比特流分析器。 (<span id="音频和音乐-audio-and-music">音频和音乐 Audio and Music</span>)
- fucking-awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- fucking-awesome-go - gaad - Native Go AAC bitstream parser. (Audio and Music)
- awesome-go-plus - gaad - Native Go AAC bitstream parser. ![stars](https://img.shields.io/badge/stars-127-blue) (Audio and Music)
- awesome-go-plus - gaad - Native Go AAC bitstream parser. (Audio and Music)
README
[![GoDoc](https://godoc.org/github.com/Comcast/gaad?status.svg)](https://godoc.org/github.com/Comcast/gaad)
[![Build Status](https://travis-ci.org/Comcast/gaad.svg?branch=master)](https://travis-ci.org/Comcast/gaad)
[![Go Report Card](https://goreportcard.com/badge/github.com/Comcast/gaad)](https://goreportcard.com/report/github.com/Comcast/gaad)# GAAD (Go Advanced Audio Decoder)
Package currently provides AAC parsing capabilities. This package performs a full parse of AAC-LC and HE-AACv1 bitstreams. Bitstreams with Parametric Stereo (HE-AACv2) are not yet supported, but AAC bitstream data and SBR data will be extracted. The AAC decode from the parsed data to LPCM (.wav) is not yet implemented. Please help us expand and test this library!
## AACParser
This package currently supports AAC audio data contained in an ADTS header. All available data is returned in the `adts` struct and can be accessed as nested objects as presented in the AAC specification. All parameter names should be verbatim from the AAC specification, if you find an issue with this please file a bug or submit a pull request.### AAC Types
| Type | Description | CODEC |
| :-------: | --------------- | :----------: |
| AACLC | AAC | mp4a.40.2 |
| HEAAC | AAC + SBR | mp4a.40.5 |
| HEAACv2 | AAC + SBR + PS | mp4a.40.29 |where:
+ SBR = Spectral band replication
+ PS = Parametric Stereo### Usage
```go
var []byte buf
buf =// Parsing the buffer
adts, err := gaad.ParseADTS(buf)// Looping through top level elements and accessing sub-elements
var sbr bool
if adts.Fill_elements != nil {
for _, e := range adts.Fill_elements {
if e.Extension_payload != nil &&
e.Extension_payload.Extension_type == gaad.EXT_SBR_DATA {
sbr = true
}
}
}
```### VBR vs CBR
VBR (Variable bitrate) and CBR (Constant bitrate) is derived from the bitstream_type attribute in the adif_header section. It is VBR if bitstream_type is true, and CBR otherwise.
### References
#### ISO/IEC STANDARD 14496-3
```
Title : Coding of audio-visual objects — Part 3: Audio
File : ISO_14496-3-4th-Edition.pdf
Edition : Fourth edition (2009-09-01)
Relevant Sections
- Page 64 : 1.6.5 Signaling of SBR
- Page 120 : 1.A.2 AAC Interchange formats
- Page 489 : 4.4.2 GA bitstream payloads
```
#### Related Books* Video Demystified (5th Edition) http://my.safaribooksonline.com/book/-/9780750683951
#### Related Links
* http://www.mp4ra.org/codecs.html