Compare commits
2 commits
a424dabd78
...
e9942d56b6
Author | SHA1 | Date | |
---|---|---|---|
e9942d56b6 | |||
f11061bd33 |
2 changed files with 13 additions and 5 deletions
|
@ -8,10 +8,12 @@ If used on containers with subtitles or audiostreams, this skript will only conv
|
|||
|
||||
### 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
|
||||
Needs a ffmpeg-build with --enable-libvpx
|
||||
- https://trac.ffmpeg.org/wiki/Encode/VP9
|
||||
- https://ffmpeg.org/ffmpeg-codecs.html#libvpx
|
||||
|
||||
#### VP9_vaapi
|
||||
|
||||
|
@ -22,7 +24,7 @@ More Information about this:
|
|||
|
||||
#### 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:
|
||||
- [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
|
||||
|
|
|
@ -51,6 +51,9 @@ done
|
|||
# Choose an GPU, if encoder is GPU accelerated
|
||||
# ls /sys/class/drm/renderD129/device/consumer*/consumer/ | grep supp
|
||||
# lspci | grep ' VGA ' | cut -d" " -f 1 | xargs -i lspci -v -s {}
|
||||
gpu="/dev/dri/renderD129"
|
||||
|
||||
# encoder-specific settings
|
||||
|
||||
# write array into string
|
||||
extension="${extension[*]}"
|
||||
|
@ -61,11 +64,14 @@ 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
|
||||
#there are problems with the -global_quality:v/-q:v settings only being able to make quality worse. Help is appreciated
|
||||
#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
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue