Fast and simple Opus command-line frontend
There are two build systems available; CMake and Zig.
-
Before building, ensure you have the
libsoxr,libopus, andlibopusenclibraries installed, as well ascmakeversion 3.10 or newer.vac-encuses the pkg-config utility to find these libraries, so confirm they are installed and thePKG_CONFIG_PATHenvironment variable is set correctly. -
Clone the repository and navigate to the
builddirectory.git clone https://github.com/gianni-rosato/vac-enc.git cd vac-enc/build -
From here, you can invoke
cmake ..as you wish, or use the shell script provided../build.sh
The vac-enc binary will be located in bin. From there, you can move it to a location in your PATH (like /usr/local/bin) or use it directly.
-
Before building, ensure you have the
libsoxr,libopus, andlibopusenclibraries installed, as well aszigversion 0.11.0 or newer.vac-encuses the pkg-config utility to find these libraries, so confirm they are installed and thePKG_CONFIG_PATHenvironment variable is set correctly. -
Clone the repository and navigate to the root directory.
git clone https://github.com/gianni-rosato/vac-enc.git cd vac-enc/ -
Build the project.
zig build
The vac-enc binary will be located in zig-out/bin. Fome there, you can move it to a location in your PATH (like /usr/local/bin) or use it directly.
vac-enc is simple to use. Running it with no arguments yields useful information.
vac-enc 0.2 (using libopus 1.5.2, libopusenc 0.2.1, libsoxr 0.1.3)
Usage: ./vac-enc [-b kbps] <WAVE/FLAC input> <Ogg Opus output>A sane bitrate will be chosen if not specified, or you can provide your own.
./vac-enc -b64 my-song.flac test.opusAlso included is the vac-auto script, which can convert from various filetypes with FFmpeg.
This project is licensed under the GPL-3.0 License -- see the LICENSE file for details.
- wavreader source files by Martin Storsjö
- libfoxenflac source files by Andreas Stöckel