From 8e4919b6893c5d5bd3aaed3de5faec80982e9eb0 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 14 Sep 2026 18:59:11 -0700 Subject: [PATCH] pv3, fix av1 codec and add betteroutput. --- rc_shared.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rc_shared.sh b/rc_shared.sh index 67bfe94..b34bee3 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -1067,9 +1067,15 @@ function pv-test { function pv3 { org="$1" out="$2" + echo "Processing '$org' to '$out' using AV1 and OPUS." + + echo -e "\n * Original File * \n" + ffprobe -i "$org" + + echo -e "\n * Starting Processing *\n" ffmpeg -nostdin -hide_banner -loglevel level+warning \ -i "$org" \ - -c:v libstvav1 \ + -c:v libsvtav1 \ -preset 0 \ -filter:v scale=-1:720 \ -crf 18 \ @@ -1079,10 +1085,14 @@ function pv3 { -movflags +faststart \ "$out" status="$?" + if [[ "$status" != 0 || ! -s "$out" ]]; then echo "Failed, deleting output." mv -v "$out" ~/TRASH/ + return $status fi + + echo -e "\n * Success! *" }