-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intel GPU support #12
Comments
Hi @energywave, thanks for the bug report. I'm guessing this is something to do with the snap confinement restricting access to hardware. I don't have any Intel-based systems that I can test with, but I'll look into it - maybe it's an easy fix |
Can you please try the version in the |
You can also now call |
Hey @IsaacJT, thank you so much for having worked on this and taken it so seriously! That would be great if the snap will support GPU acceleration (at least Intel one, as I believe it's the most used as it's in all MiniPCs...) I've updated the snap to the latest/edge. I've tried with QSV, this is the result:
I also tried with VAAPI and this is the result (I've seen two different kind of errors):
VAAPI-2:
I can correctly transcode both files if I set the Hardware acceleration to none (but with a huge CPU effort). I can think that maybe you used old repository related to Ubuntu 22.04, but there it seems there are old drivers and va-api drivers. This is why I updated to Ubuntu 23.10. So here the result of the vainfo:
And here the result of itrue-jellyfin.vainfo:
Could be the problem be there? |
Some more info. I was trying to encode using ffmpeg a sample file on the machine and it correctly use QSV. So I know my hardware/drivers is ok (wanted to exclude that). I could not encode, however, using itrue-jellyfin.ffmpeg as I get a permission denied error with my user as well as with sudo by loading the input file in my /home/user Here some more output, if could be useful:
|
Tested again after the refresh, no luck. |
Hi, Could it be the package |
Hello, thank you for this snap. I'm using it on Ubuntu 23.10 and I want to use my Intel GPU (Gen9) to HW accelerate transcoding.
I could not manage to do it, however, by setting QSV in JellyFin settings.
I suspect that it has something to do with the snap environment but it's the first times that I'm using them so I'm not sure.
If I run the following command in the host:
ffmpeg -hwaccel qsv -c:v h264_qsv -i SampleVideo_1280x720_30mb.mp4 -c:v h264_qsv -global_quality 25 -maxrate 2M test.mp4 -v verbose
the result is a correct encoding using Intel QSV, with the following output:
However, when setting QSV in the JellyFin settings, I find this in logs folder's FFmpeg.Transcode-xxx.log:
The error is this: [AVHWDeviceContext @ 0x5638540f8940] libva: Failed to get device id from the driver. Please consider to upgrade the driver to support VA-API 1.15.0
and that error doesn't arise on the host itself.
Do you have some clue? Maybe it should be better to install JellyFin directly on the host?
Furthermore I wanted to know on what base you'll consider updating JellyFin as there is a newer version with important security fix but the snap isn't updated yet.
Thank you in advance for the time you'll give on this and happy new year!
The text was updated successfully, but these errors were encountered: