5477578cd99c625fbd8af4e607a451210b0ae697
av1-encoder.exe.
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.
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%