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 #...