From 224e112340031184ee15652e0ac7f367a34d315b Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 14 Sep 2026 18:47:21 -0700 Subject: [PATCH] Add pv3. --- rc_shared.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/rc_shared.sh b/rc_shared.sh index 33344f8..476a4a5 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -1064,6 +1064,27 @@ function pv-test { echo "Completed tests after ${count} loop${plural}! :)" } +function pv3 { + org="$1" + out="$2" + ffmpeg -nostdin -hide_banner -loglevel level+warning \ + -i "$org" \ + -v:c libstvav1 \ + -preset 0 \ + -filter:v scale=-1:720 \ + -crf 18 \ + -svtav1-params rc=1:tbr=2000k:overshoot-pct=0:undershoot-pct=100 \ + -a:c libopus \ + -filter:a dynaudnorm=f=33:g=65:p=0.66:m=33.3 \ + -movflags +faststart \ + "$out" + status="$?" + if [[ "$status" != 0 || ! -s "$out" ]]; then + echo "Failed, deleting output." + mv -v "$out" ~/TRASH/ + fi +} + ### Web ###