From 4ab6301def12834098eb4c1d2dabcee26413130c Mon Sep 17 00:00:00 2001 From: esche Date: Wed, 26 Jul 2023 23:41:24 +0200 Subject: [PATCH] added vp9_qsv --- to_vp9/to_vp9.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/to_vp9/to_vp9.sh b/to_vp9/to_vp9.sh index 23b3e8c..a20e08d 100755 --- a/to_vp9/to_vp9.sh +++ b/to_vp9/to_vp9.sh @@ -65,8 +65,7 @@ for file in **/*.@($extension); do file_out="${file%.*}2.mkv" else file_out="${file%.*}.mkv"; fi - - + #just for testing. This will be removed in a future release echo "$encoder" #VP9_vaapi @@ -78,7 +77,9 @@ for file in **/*.@($extension); do #VP9_qsv #was not able to test it. So it is still experimental - #ffmpeg -hide_banner -hwaccel qsv -qsv_device $gpu -i "$file" -c:v av1_qsv -vf 'hwupload' "${file%.*}.mkv" + if [[ $encoder == "vp9_qsv" ]]; then + ffmpeg -hide_banner -hwaccel qsv -qsv_device $gpu -i "$file" -c:v vp9_qsv -vf 'hwupload' "${file%.*}.mkv" + fi #libvpx-vp9 #...