Stremio / stremio-service

GNU General Public License v2.0
128 stars 7 forks source link

vaapi not working. #65

Open cmspam opened 10 months ago

cmspam commented 10 months ago

I've tried different versions of ffmpeg, different versions of debian, all sorts of things, but it always fails the vaapi/renderD128 test.

Everything is fine with vainfo, everything is fine when manually using vaapi to transcode with ffmpeg (newer versions though)

Is there anything I can check?

jaruba commented 10 months ago

@cmspam can you show me the ffmpeg command you use to do transcoding that is hardware accelerated by vaapi? and can you confirm that the command you use works with the ffmpeg build that is required for stremio's server too?

there is a reason why we use a very specific version of ffmpeg, there was a change made after that version that breaks seeking in our transcoding logic

cmspam commented 10 months ago

@jaruba Thanks for the response. I used this command ffmpeg -vaapi_device /dev/dri/renderD128 -i input.mp4 -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4

It does not work with the version included. It seems like the version included isn't built with vaapi support? Or maybe the command is different? I'm not sure.

It would be great to get working though, as the transcoding kills my cpu usage.

cmspam commented 10 months ago

@jaruba Do you happen to know, what command I could use to try vaapi in the older version which is used, to troubleshoot, actually?