#!/bin/bash # Copyright 2025 Marc-Antoine Ruel. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. set -e cd $(dirname $0) # AVIF with settings that seem to work well with a Go documentation page. ARGS="-c:v libsvtav1 -crf 45 -g 9999 -sc_threshold 0 -preset 1 -pix_fmt yuv420p10le" BASE="${1##*/}" BASE="${BASE%.*}" docker run --rm -it \ -v $(pwd)/output:/config \ linuxserver/ffmpeg:latest \ -hide_banner \ -loglevel error \ -i /config/$1 \ -an \ $ARGS \ /config/$BASE.avif