pv3, fix av1 codec and add betteroutput.

This commit is contained in:
me
2026-09-14 18:59:11 -07:00
parent 0f42f92eaf
commit 8e4919b689
+11 -1
View File
@@ -1067,9 +1067,15 @@ function pv-test {
function pv3 { function pv3 {
org="$1" org="$1"
out="$2" 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 \ ffmpeg -nostdin -hide_banner -loglevel level+warning \
-i "$org" \ -i "$org" \
-c:v libstvav1 \ -c:v libsvtav1 \
-preset 0 \ -preset 0 \
-filter:v scale=-1:720 \ -filter:v scale=-1:720 \
-crf 18 \ -crf 18 \
@@ -1079,10 +1085,14 @@ function pv3 {
-movflags +faststart \ -movflags +faststart \
"$out" "$out"
status="$?" status="$?"
if [[ "$status" != 0 || ! -s "$out" ]]; then if [[ "$status" != 0 || ! -s "$out" ]]; then
echo "Failed, deleting output." echo "Failed, deleting output."
mv -v "$out" ~/TRASH/ mv -v "$out" ~/TRASH/
return $status
fi fi
echo -e "\n * Success! *"
} }