Golang binding for lib-fdkaac. Fork of https://github.com/winlinvip/go-fdkaac
DataHoarder
823922bd66
All checks were successful
continuous-integration/drone/push Build is passing
|
||
---|---|---|
doc | ||
fdkaac | ||
.drone.yml | ||
.gitignore | ||
go.mod | ||
LICENSE | ||
main.go | ||
README.md |
go-fdkaac
Golang binding for lib-fdkaac(https://github.com/winlinvip/fdk-aac)
Usage
First, get the source code:
go get git.gammaspectra.live/S.O.N.G/go-fdkaac
Then, compile/install the fdk-aac:
git clone --depth 1 https://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
./autogen.sh
./configure --prefix /usr
make -j$(nproc)
sudo make install
Done, import and use the package:
- ExampleAacDecoder_RAW, decode the aac frame to PCM samples.
- ExampleAacEncoder_LC, encode the PCM samples to aac frame.
- audio resample.
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:
cd $GOPATH/src/git.gammaspectra.live/S.O.N.G/go-fdkaac && go test ./...
Winlin 2016