AV1 video encoding tool with fast VMAF sampling & automatic encoder crf calculation. Uses ffmpeg, svt-av1 & vmaf.
Also supports other ffmpeg compatible encoders like libx265 & libx264.
Automatically determine the best crf to deliver the min-vmaf and use it to encode a video.
Two phases:
- crf-search to determine the best --crf value
- ffmpeg & SvtAv1EncApp to encode using the settings
ab-av1 auto-encode [OPTIONS] -i <INPUT> --preset <PRESET>
Interpolated binary search using sample-encode to find the best crf value delivering min-vmaf & max-encoded-percent.
Outputs:
- Best crf value
- Mean sample VMAF score
- Predicted full encode size
- Predicted full encode time
ab-av1 crf-search [OPTIONS] -i <INPUT> --preset <PRESET>
Encode short video samples of an input using provided crf & preset. This is much quicker than full encode/vmaf run.
Outputs:
- Mean sample VMAF score
- Predicted full encode size
- Predicted full encode time
ab-av1 sample-encode [OPTIONS] -i <INPUT> --crf <CRF> --preset <PRESET>
Simple invocation of ffmpeg & SvtAv1EncApp to encode a video.
ab-av1 encode [OPTIONS] -i <INPUT> --crf <CRF> --preset <PRESET>
Simple full calculation of VMAF score distorted file vs reference file.
ab-av1 vmaf --reference <REFERENCE> --distorted <DISTORTED>
Available in the AUR.
Latest release
cargo install ab-av1Latest code direct from git
cargo install --git https://github.com/alexheretic/ab-av1- svt-av1
- ffmpeg
- vmaf
- opus
ffmpeg, SvtAv1EncApp commands should be in $PATH.
Maintained with latest stable rust.