fork from lib-fdkaac(https://github.com/izern/fdk-aac) (https://github.com/winlinvip/go-fdkaac)
go get github.com/seastart/go-fdkaac
compile lib fdk-aac:
wget https://github.com/seastart/go-fdkaac/raw/refs/heads/master/fdk-aac-2.0.0.tar.gz
tar -zxvf fdk-aac-2.0.0.tar.gz && cd fdk-aac-2.0.0/ && ./configure --prefix=/usr/local/lib/fdk-aac-2.0.0 && make && make install
use the package:
- ExampleAacDecoder_RAW, decode the aac frame to PCM samples.
- ExampleAacEncoder_LC, encode the PCM samples to aac frame.
There are an example of AAC audio packets in ADTS:
- avatar aac over ADTS, user can use this file to decode to PCM then encode.
To run all examples:
go test ./...
Winlin 2016