diff --git a/to_vp9/README.md b/to_vp9/README.md index 07f2a95..0a10cee 100644 --- a/to_vp9/README.md +++ b/to_vp9/README.md @@ -2,21 +2,27 @@ This Script is unfinished and not ready for usage. This script converts all videostreams in all files with given file extension in your current working directory and all subdirectories to vp9. -The standard settings are in my opinion good for personal storage of movies. Feel free to change them or suggest changes. +The standard settings are in my opinion good for personal storage of movies. Feel free to change them or suggest changes. Later there will be options in the script to change the default behavior. If used on containers with subtitles or audiostreams, this skript will only convert the videostream and copy the other streams in a Matroska container. + ### Encoders -### VP9_vaapi +Hardware-Encoders like NVENC, VAAPI and QSV depend on your hardware and an enabled [Hardware video acceleration](https://wiki.archlinux.org/title/Hardware_video_acceleration). So not all encoders will be available. -Needs [Hardware video acceleration](https://wiki.archlinux.org/title/Hardware_video_acceleration) enabled and libva +#### libvpx-vp9 +- https://trac.ffmpeg.org/wiki/Encode/VP9 + +#### VP9_vaapi + +needs libva More Information about this: - https://ffmpeg.org/ffmpeg-all.html#VAAPI-encoders - https://trac.ffmpeg.org/wiki/Hardware/VAAPI -### VP9_qsv +#### VP9_qsv -Needs [Hardware video acceleration](https://wiki.archlinux.org/title/Hardware_video_acceleration) enabled, intel graphics and ffmpeg with --enable-libmfx or --enable-libvpl. +needs intel graphics and ffmpeg with --enable-libmfx or --enable-libvpl. More Information about this: - [Differences between libvpl and libmfx](https://www.intel.com/content/www/us/en/developer/articles/technical/onevpl-in-ffmpeg-for-great-streaming-on-intel-gpus.html) - https://ffmpeg.org/ffmpeg-all.html#QSV-Encoders diff --git a/to_vp9/to_vp9.sh b/to_vp9/to_vp9.sh index e322607..ef3df02 100755 --- a/to_vp9/to_vp9.sh +++ b/to_vp9/to_vp9.sh @@ -61,9 +61,11 @@ for file in **/*.@($extension); do echo "$encoder" #VP9_vaapi + #there are problems with the -global_quality:v settings only being able to make quality worse. Help is appreciated #ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD129 -i "$file" -map 0 -c copy -c:v vp9_vaapi -rc_mode CQP -bf 1 -bsf:v vp9_raw_reorder,vp9_superframe -compression_level 0 -vf 'hwupload' Der\ VornameCqpLA.mkv #VP9_qsv + #was not able to test it. So it is still experimental #ffmpeg -hwaccel qsv -qsv_device /dev/dri/renderD129 -i "$file" -c:v av1_qsv -vf 'hwupload' output.mkv done