FastFlix icon indicating copy to clipboard operation
FastFlix copied to clipboard

Add Hardware VAAPI encoding support

Open cdgriffith opened this issue 2 years ago • 2 comments

This is more difficult as basic things like scaling are done differently with vaapi. Opening separate issue to track this and possible beta tries with this version.

cdgriffith avatar Apr 16 '22 23:04 cdgriffith

Any update on VAAPI support?

sourpatched avatar Jul 21 '22 01:07 sourpatched

Have not spent any effort on that yet myself. Always looking for other contributors!

cdgriffith avatar Jul 21 '22 04:07 cdgriffith

hi, i have a IGPU AMD 4800u. If i want encode with vaapi and HEVC i use:

ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i input.mkv -vf 'scale_vaapi=w=1920:h=800' -c:v hevc_vaapi -rc_mode CQP -qp 26 -c:a copy -strict unofficial output.mkv

i think for AMD a vaapi profile works so it's a good idea to add in the list.

Best regards.

marcscama avatar Feb 19 '23 09:02 marcscama

+1 to see that coming to live. But I'm using ffmpeg -vaapi_device /dev/dri/renderD128 -i INPUT -c:v hevc_vaapi -b:v 3000k -c:a aac -b:a 160k -c:s copy -map 0:v:0 -map 0:a:0 -vf format='nv12|vaapi,hwupload' OUTPUT with my AMD Ryzen 5 PRO 3400G / Vega 11, which should do the same as the example above.

ojaksch avatar Apr 19 '23 12:04 ojaksch

Finally added in 5.5.0! For HEVC, AVC, VP9 and MPEG2 https://github.com/cdgriffith/FastFlix/releases/tag/5.5.0

cdgriffith avatar Apr 23 '23 20:04 cdgriffith