Skip to content

Instantly share code, notes, and snippets.

@devhero
Last active December 14, 2022 19:35
Show Gist options
  • Save devhero/78f82c5f6c55323ff918bb3ef4a43f08 to your computer and use it in GitHub Desktop.
Save devhero/78f82c5f6c55323ff918bb3ef4a43f08 to your computer and use it in GitHub Desktop.
av1 #av1
# ENCODING PARAMS (AOMENC):
--cpu-used=4 --end-usage=q --tile-columns=1 --tile-rows=1
--bit-depth=10 --lag-in-frames=28 --threads=2
--enable-dist-wtd-comp=0 --enable-qm=1 --quant-b-adapt=3
--mv-cost-upd-freq=2 --enable-chroma-deltaq=1
--enable-fwd-kf=1
# av1an docker SDR 1080p (pre=6,cq=25,denoise=0,grain=15):
docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:master --encoder aom -s ./movie-scenes.json -c mkvmerge -m lsmash -k --workers 6 -a " -an " --video-params " --bit-depth=10 --cpu-used=6 --cq-level=25 --end-usage=q --lag-in-frames=48 --enable-fwd-kf=1 --aq-mode=1 --deltaq-mode=1 --enable-chroma-deltaq=1 --quant-b-adapt=1 --enable-qm=1 --min-q=1 --enable-keyframe-filtering=2 --arnr-strength=1 --arnr-maxframes=4 --disable-trellis-quant=0 --disable-kf --threads=64 --sharpness=3 --enable-dnl-denoising=0 --denoise-noise-level=15" -i "movie.1080.mkv" -o "movie-aom-pre6-cq25-sharp3-den0-gr15-kff2.mkv"
# av1an docker HDR >1080p (pre=6,cq=25,denoise=0,grain=15):
docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:master --encoder aom -s ./movie-scenes.json -c mkvmerge -m lsmash -k --workers 6 -f " -vf scale=1920:1080 " -a " -an " --video-params " --bit-depth=10 --cpu-used=6 --cq-level=25 --end-usage=q --lag-in-frames=48 --enable-fwd-kf=1 --aq-mode=1 --deltaq-mode=5 --enable-chroma-deltaq=1 --quant-b-adapt=1 --enable-qm=1 --min-q=1 --enable-keyframe-filtering=2 --arnr-strength=1 --arnr-maxframes=4 --disable-trellis-quant=0 --disable-kf --threads=64 --sharpness=3 --enable-dnl-denoising=0 --denoise-noise-level=15 --color-primaries=bt2020 --transfer-characteristics=smpte2084 --matrix-coefficients=bt2020ncl" -i "movie-hdr-2160.mkv" -o "movie-aom-hdr-pre6-cq25-sharp3-den0-gr15-kff2.mkv"
# Error: svt-av1 does not support YUV422P
--sc-pix-format=yuv420p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment