ssr icon indicating copy to clipboard operation
ssr copied to clipboard

How can I use VAAPI in SSR

Open wszqkzqk opened this issue 4 years ago • 6 comments

Can SSR use VAAPI to encode the video just like OBS does? Z4KLY6T577BQ G49Z%CJEQJ G()F@} Z8_SYNAR1PM%5S8S

wszqkzqk avatar Oct 03 '21 02:10 wszqkzqk

do you have any vaapi installed?

ffmpeg -hide_banner -encoders | grep vaapi

mathieu-aubin avatar Oct 03 '21 04:10 mathieu-aubin

do you have any vaapi installed?

ffmpeg -hide_banner -encoders | grep vaapi

Yes, and I can use ffmpeg(encoded by hevc_vaapi) to record my screen in terminal

wszqkzqk avatar Oct 03 '21 06:10 wszqkzqk

do you have any vaapi installed?

ffmpeg -hide_banner -encoders | grep vaapi

Command like:

ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -i :0 -f pulse -ac 2 -i 0 -vf 'hwupload,scale_vaapi=format=nv12' -c:a mp3 -c:v hevc_vaapi output.mp4

works on my device,but ssr still can't use VAAPI

wszqkzqk avatar Oct 03 '21 14:10 wszqkzqk

SSR doesn't currently support VAAPI, and unfortunately it is not easy to add support for it.

MaartenBaert avatar Oct 03 '21 16:10 MaartenBaert

SSR doesn't currently support VAAPI, and unfortunately it is not easy to add support for it.

But why can it support AMF and QSV…… What's the difference…… And may it call ffmpeg directly……

wszqkzqk avatar Oct 03 '21 23:10 wszqkzqk

https://trac.ffmpeg.org/wiki/Hardware/VAAPI

Couldnt SSR just change/update it's ffmpeg command line instruction?

mathieu-aubin avatar Oct 05 '21 07:10 mathieu-aubin