MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.5k stars 288 forks source link

How can I use VAAPI in SSR #916

Open wszqkzqk opened 2 years ago

wszqkzqk commented 2 years ago

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

mathieu-aubin commented 2 years ago

do you have any vaapi installed?

ffmpeg -hide_banner -encoders | grep vaapi

wszqkzqk commented 2 years ago

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 commented 2 years ago

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

MaartenBaert commented 2 years ago

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

wszqkzqk commented 2 years ago

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……

mathieu-aubin commented 2 years ago

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

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