Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/winlinvip/go-fdkaac
Golang binding for lib-fdkaac(https://github.com/winlinvip/fdk-aac)
https://github.com/winlinvip/go-fdkaac
Last synced: about 1 month ago
JSON representation
Golang binding for lib-fdkaac(https://github.com/winlinvip/fdk-aac)
- Host: GitHub
- URL: https://github.com/winlinvip/go-fdkaac
- Owner: winlinvip
- License: mit
- Created: 2016-06-22T08:29:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-05-02T06:50:59.000Z (over 2 years ago)
- Last Synced: 2024-10-16T09:25:17.959Z (2 months ago)
- Language: Go
- Size: 86.9 KB
- Stars: 67
- Watchers: 4
- Forks: 37
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-fdkaac
Golang binding for lib-fdkaac(https://github.com/winlinvip/fdk-aac)
## Usage
First, get the source code:
```
go get -d github.com/winlinvip/go-fdkaac
```Then, compile the fdk-aac:
```
cd $GOPATH/src/github.com/winlinvip/go-fdkaac &&
git clone https://github.com/winlinvip/fdk-aac.git fdk-aac-lib &&
cd fdk-aac-lib/ && bash autogen.sh && ./configure --prefix=`pwd`/objs && make && make install &&
cd ..
```Done, import and use the package:
* [ExampleAacDecoder_RAW](fdkaac/example_test.go#L29), decode the aac frame to PCM samples.
* [ExampleAacEncoder_LC](fdkaac/example_test.go#L316), encode the PCM samples to aac frame.
* [audio resample](https://github.com/winlinvip/go-aresample).There are an example of AAC audio packets in ADTS:
* [avatar aac over ADTS](doc/adts_data.go), user can use this file to decode to PCM then encode.
To run all examples:
```
cd $GOPATH/src/github.com/winlinvip/go-fdkaac && go test ./...
```Winlin 2016