2023-08-29, 12:45 AM
(This post was last modified: 2023-08-29, 12:47 AM by nyanmisaka. Edited 2 times in total.)
Init VAAPI base device. Derive a QSV device from VAAPI device.
Or simply to:
Invoke the QSV decoder wrapper and enable hardware surface output.
Specify input file.
QSV AV1 encoder.
AV1 ICQ mode is not yet supported on Linux. Intel is WIP. Don't use this.
https://github.com/intel/media-driver/issues/1597
Audio codec and audio filters.
Copy subtitle.
Specify output file.
The -17 error is caused by missing libmfx related libs.
https://packages.ubuntu.com/lunar/libmfx-gen1.2
If it still doesn't work, please switch to jellyfin-ffmpeg6. It contains all necessary libs and patches.
Code:
-init_hw_device vaapi=va:/dev/dri/renderD129 -init_hw_device qsv=qs@va
Or simply to:
Code:
-qsv_device /dev/dri/renderD129
Invoke the QSV decoder wrapper and enable hardware surface output.
Code:
-hwaccel qsv -hwaccel_output_format qsv
Specify input file.
Code:
-i /path/to/input
QSV AV1 encoder.
Code:
-c:v av1_qsv -preset slower
AV1 ICQ mode is not yet supported on Linux. Intel is WIP. Don't use this.
https://github.com/intel/media-driver/issues/1597
Code:
-global_quality:v 18
Audio codec and audio filters.
Code:
-c:a libopus -ac 2 -b:a 256k -af "pan=stereo|FL<FC+0.30*FL+0.30*BL|FR<FC+0.30*FR+0.30*BR"
Copy subtitle.
Code:
-c:s copy
Specify output file.
Code:
/path/to/output
The -17 error is caused by missing libmfx related libs.
https://packages.ubuntu.com/lunar/libmfx-gen1.2
Code:
sudo apt install -y libmfx-gen1.2 intel-media-va-driver-non-free
If it still doesn't work, please switch to jellyfin-ffmpeg6. It contains all necessary libs and patches.
Code:
sudo apt install -y jellyfin-ffmpeg6
/usr/lib/jellyfin-ffmpeg/ffmpeg