Jump to content

Unable to use HW acceleration


agottschling

Recommended Posts

agottschling
Just now, softworkz said:

I don't understand. You said you don't see the FFmpeg Options tab?

I apologize, I must've poorly explained myself. I can find the ffmpeg options, but I can't find the selection to disable the iHD driver so that it falls back to the i965 driver. The other selections in your screenshot appear just fine.

Link to comment
Share on other sites

agottschling
Just now, softworkz said:

Tick the checkbox and choose "i965 - Intel VA Driver"

Then restart the server

Ok. I'll test it out and report back

Link to comment
Share on other sites

agottschling
1 minute ago, softworkz said:

I forgot: you need to click SAVE.

I assumed that was implied. :D

 

As for the available decoders, changing to the old driver didn't remove the HW HEVC decoder

image.png.7a36a3648ccd7a870e21f901e1f1f9fd.png

Link to comment
Share on other sites

No, it wont't remove it. I'm rather curious whether something would be working.

Just move put QuickSync to the top, check HEVC, and the try to play back one H.264 and one H.265/HEVC video and post the logs.

That would be great, thanks.

Link to comment
Share on other sites

I already have a fix for the beta to remove the QuickSync codecs, but I don't want to take away something that might be working. (HEVC very unlikely, H264 rather unlikely...)

Edited by softworkz
Link to comment
Share on other sites

On 3/10/2022 at 2:46 PM, softworkz said:

No, it wont't remove it. I'm rather curious whether something would be working.

Just move put QuickSync to the top, check HEVC, and the try to play back one H.264 and one H.265/HEVC video and post the logs.

That would be great, thanks.

@agottschling - Have you had a chance to try?

Link to comment
Share on other sites

agottschling
1 hour ago, softworkz said:

@agottschling - Have you had a chance to try?

Apologies for the delay. Here's the logs for a HEVC transcode and a h.264 transcode

image.png.8f2df62ebdf0543c06ab0bad34203eea.png

ffmpeg-transcode-459940ec-05b6-4551-8256-859f0336e455_1.txtffmpeg-transcode-2cd80aef-3570-4cd5-b907-b8f126beee4b_1.txtffmpeg-transcode-8215e40d-0ba1-4da3-b066-64fbd279bbcb_1.txt

 

image.png.5a5313c799d8510782b976715b3ba378.png

ffmpeg-transcode-01efa649-d4d6-4df5-ab58-67c6fad11400_1.txt

 

And the main server log: embyserver.txt

 

All of this was with the following settings in the transcoding dashboard:

image.png.555d902084eb25e9638098648afe14b1.png

And the following in the Advanced Transcoding settings:

image.png.b6d84a342304553ee31c1d38759588e2.png

Hope that helps, and if you need more info, please let me know.

Link to comment
Share on other sites

Thanks, what I meant is testing QuickSync, through:

On 3/10/2022 at 2:46 PM, softworkz said:

 Just move QuickSync to the top , check HEVC, and then try to play back one H.264 and one H.265/HEVC video and post the logs.

Link to comment
Share on other sites

agottschling
4 minutes ago, softworkz said:

Thanks, what I meant is testing QuickSync, through:

Ah yes. I do see that now. Give me a few minutes and I'll redo the test.

Link to comment
Share on other sites

agottschling

@softworkz

Transcoding settings:

image.png.274089784e82174ea82a49937123d281.png

HEVC -> H.264:ffmpeg-transcode-a0774ae6-5aed-4d2f-84ad-1ac901420363_1.txtffmpeg-transcode-a0774ae6-5aed-4d2f-84ad-1ac901420363_1.txt

image.png.6c498ce9b4b1b12950f51bb0823af74a.png

 

H.264 -> H.264:ffmpeg-transcode-a0774ae6-5aed-4d2f-84ad-1ac901420363_1.txt

 

image.png.bf78d339eee914825023a0e0f4715c4b.png

 

Main Server log for the whole time period: embyserver(2).txt

 

Hope this helps. And let me know if you need other info.

Link to comment
Share on other sites

Thanks. It seems that all three log files are the same. I'd need the one with h264 to h264, even though it seems it wasn't successful.

Thanks

Link to comment
Share on other sites

OK, thanks a lot for all your effort in trying these things! 

 So here's the conclusion: 

 It seems that in the recent versions of the Intel Media SDK (which provides those HWA codecs that ffmpeg calls QuickSync, even though it's actually Intel's name for the iGPU hw accel capability), it's not possible to enforce the use of the i965 driver instead of the iHD driver (like we tried). The iHD driver has always been the recommended driver for the MSDK, but I think in earlier versions it was possible to use it with the i965 driver. Also, there are artifacts in the MSDK (e.g. a constant like MFX_PLATFORM_SANDYBRIDGE) that indicate that earlier versions might have had support for that platform.

It was an attempt to be sure that it's not only just HEVC which is non-working, but that QuickSync codecs aren't working at all on this platform (not even for H.264), so we can safely disable QSV functionality for all platforms before Broadwell, which is the earliest supported CPU gen for MSDK.

This change will be included in the next beta version. When no QuickSync HEVC codecs will be detected, then they won't be erroneously chosen anymore, which will make sure that transcoding will be working again with default settings.

Thanks again for your help in that matter,
softworkz

Link to comment
Share on other sites

agottschling
9 hours ago, softworkz said:

OK, thanks a lot for all your effort in trying these things! 

 So here's the conclusion: 

 It seems that in the recent versions of the Intel Media SDK (which provides those HWA codecs that ffmpeg calls QuickSync, even though it's actually Intel's name for the iGPU hw accel capability), it's not possible to enforce the use of the i965 driver instead of the iHD driver (like we tried). The iHD driver has always been the recommended driver for the MSDK, but I think in earlier versions it was possible to use it with the i965 driver. Also, there are artifacts in the MSDK (e.g. a constant like MFX_PLATFORM_SANDYBRIDGE) that indicate that earlier versions might have had support for that platform.

It was an attempt to be sure that it's not only just HEVC which is non-working, but that QuickSync codecs aren't working at all on this platform (not even for H.264), so we can safely disable QSV functionality for all platforms before Broadwell, which is the earliest supported CPU gen for MSDK.

This change will be included in the next beta version. When no QuickSync HEVC codecs will be detected, then they won't be erroneously chosen anymore, which will make sure that transcoding will be working again with default settings.

Thanks again for your help in that matter,
softworkz

Just to confirm though, VAAPI will still be available on these older Intel platforms right?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...