ddf4685a090a71c30645a258d97dbdc3a886a5b0
AV1 Opus Encoder (Go Port)
This is a Go port of the av1_opus_encoder.py script, designed to be compiled into a standalone executable.
Pre-compiled Binaries
Pre-compiled binaries are available in the bin directory:
- Windows:
bin/av1-encoder.exe - Linux:
bin/av1-encoder-linux(ensure you runchmod +x bin/av1-encoder-linuxbefore executing)
Prerequisites
- Go 1.21+: Required to compile the code.
- External Tools: The following tools must be in your system
PATH:ffmpegffprobemkvmergeopusencmediainfoav1anHandBrakeCLIffmsindex
Building
- Open a terminal in this directory.
- Run
go mod tidyto ensure dependencies are resolved (standard library only, but good practice). - Build the executable:
- Windows:
go build -o av1-encoder.exe . - Linux:
go build -o av1-encoder .
- Windows:
Usage
Place the executable in the directory containing your .mkv files and run it.
./av1-encoder [flags]
Flags
--no-downmix: Preserve original audio channel layout (default: false, downmixes >5.1 to stereo/5.1 based on logic).--autocrop: Automatically detect and crop black bars (default: false).--speed: Set SVT-AV1 preset (e.g.,slower,slow,medium,fast).--quality: Set SVT-AV1 quality (e.g.,medium,high).--grain: Set film-grain synthesis level (int).
Moving to a New Git Repo
This directory is self-contained. You can move the entire av1-go folder to a new location and initialize a new git repository:
mv av1-go /path/to/new/location
cd /path/to/new/location
git init
git add .
git commit -m "Initial commit"
Description
The python-script "av1_opus_encoder.py" as a Golang - project converted for compiling to standalone executable
Languages
Python
52.8%
Go
47.2%