Compare commits

..

2 commits

Author SHA1 Message Date
e9942d56b6 added libvpx 2023-07-25 18:26:16 +02:00
f11061bd33 added libvpx 2023-07-25 18:25:46 +02:00
2 changed files with 13 additions and 5 deletions

View file

@ -8,10 +8,12 @@ If used on containers with subtitles or audiostreams, this skript will only conv
### Encoders ### Encoders
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. Hardware-Encoders using NVENC, VAAPI or 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.
#### libvpx-vp9 #### libvpx-vp9
Needs a ffmpeg-build with --enable-libvpx
- https://trac.ffmpeg.org/wiki/Encode/VP9 - https://trac.ffmpeg.org/wiki/Encode/VP9
- https://ffmpeg.org/ffmpeg-codecs.html#libvpx
#### VP9_vaapi #### VP9_vaapi
@ -22,7 +24,7 @@ More Information about this:
#### VP9_qsv #### VP9_qsv
needs intel graphics and ffmpeg with --enable-libmfx or --enable-libvpl. needs intel graphics and ffmpeg-build with --enable-libmfx or --enable-libvpl.
More Information about this: 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) - [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 - https://ffmpeg.org/ffmpeg-all.html#QSV-Encoders

View file

@ -51,6 +51,9 @@ done
# Choose an GPU, if encoder is GPU accelerated # Choose an GPU, if encoder is GPU accelerated
# ls /sys/class/drm/renderD129/device/consumer*/consumer/ | grep supp # ls /sys/class/drm/renderD129/device/consumer*/consumer/ | grep supp
# lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {} # lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
gpu="/dev/dri/renderD129"
# encoder-specific settings
# write array into string # write array into string
extension="${extension[*]}" extension="${extension[*]}"
@ -61,11 +64,14 @@ for file in **/*.@($extension); do
echo "$encoder" echo "$encoder"
#VP9_vaapi #VP9_vaapi
#there are problems with the -global_quality:v settings only being able to make quality worse. Help is appreciated #there are problems with the -global_quality:v/-q: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 #not enough tested. So it is still experimental
#ffmpeg -hwaccel vaapi -vaapi_device $gpu -i "$file" -map 0 -c copy -c:v vp9_vaapi -rc_mode CQP -bf 1 -bsf:v vp9_raw_reorder,vp9_superframe -vf 'hwupload' "${file%.*}.mkv"
#VP9_qsv #VP9_qsv
#was not able to test it. So it is still experimental #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 #ffmpeg -hwaccel qsv -qsv_device $gpu -i "$file" -c:v av1_qsv -vf 'hwupload' "${file%.*}.mkv"
#libvpx-vp9
#...
done done