Collection of audio utilities for decoding/encoding files and streams.
Go to file
DataHoarder f1e808b8f1
All checks were successful
continuous-integration/drone/push Build is passing
Add packetizer category
2022-03-04 12:25:13 +01:00
audio Add packetizer category 2022-03-04 12:25:13 +01:00
cgo Proper FLAC byte reader, use buffered reader 2022-03-01 22:02:06 +01:00
hasher Added Hasher / Filter / Sink interfaces and implementation 2022-02-22 19:30:48 +01:00
resources Added Kirika logo 2022-02-22 13:02:22 +01:00
.drone.yml Update CI dependencies 2022-02-28 13:57:21 +01:00
.gitignore Initial commit 2022-02-22 10:35:08 +01:00
.gitmodules Addded samples submodule 2022-02-22 10:44:50 +01:00
go.mod Added FLAC packetizer 2022-03-01 18:30:45 +01:00
go.sum Added FLAC packetizer 2022-03-01 18:30:45 +01:00
Kirika.go Initial commit 2022-02-22 10:35:08 +01:00
Kirika_test.go Added helper queue methods 2022-03-02 16:08:31 +01:00
LICENSE Initial commit 2022-02-22 10:35:08 +01:00
README.md Implemented ADTS packetizer sample number reporting 2022-03-03 10:15:37 +01:00

Kirika

Collection of audio utilities for decoding/encoding files and streams.

  • Not based on ffmpeg/libav/libavcodec/libavformat and alike
  • Channel-based audio consumption/filter chain
  • Raw sample analyzer channels
  • AnalyzerChannel channels / mergers / splitters / trimmers
  • Audio resampler
  • Audio downmixing to stereo/mono
  • Multi-codec decoder and encoder
  • Multi-format packetizers

Codecs supported

Codec Container Decoder Analyzer Encoder Notes
FLAC FLAC Adjustable encoding compression level and block size.
TTA TTA Only 16bit encoding
MP3 MP3 - Adjustable encoding bitrate and mode. Decoding via minimp3, encoding via LAME.
Opus Ogg - Adjustable encoding bitrate.
AAC ADTS - Adjustable encoding bitrate and mode (LC, HEv2).

Container packetizers supported

Container Packetizer Keep Mode Sample Number
FLAC
TTA - -
MP3
Ogg *
ADTS

Dependencies

Go >= 1.18

libFLAC (required by goflac)

sudo apt install libflac-dev

libopus and libopusfile (required by go-pus)

sudo apt install libopus-dev libopusfile-dev

libopusenc (required by go-pus)

git clone --depth 1 https://github.com/xiph/libopusenc.git
cd libopusenc
./autogen.sh
./configure --prefix /usr
make
sudo make install

FDK AAC Codec Library (required by go-fdkaac)

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

LAME (required by go-lame)

sudo apt install libmp3lame-dev

libsamplerate (required by gosamplerate)

sudo apt install libsamplerate0-dev