PMS 1.30.1.6497 tries to decode AV1 HW when there is no AV1 HW support

Hi,

I’ve updated to the latest Plex Media Server beta and when trying to play an AV1 file on my phone, the server tries to transcode from AV1 (HW) → H264 (HW). This can be seen in the transcode details on the Plex mobile app. However, the GPU in my server is a GTX 1070 and it does not have AV1 hardware decoding. So the transcode fails and playback fails. When I disable the “Use hardware acceleration when available” setting in the server, transcoding works properly and playback happens.

I am on NVIDIA driver version 471.96.

1 Like

If your hardware does not support AV1, PMS should fallback to software decoding. Can you reproduce and provide server logs.

Here are the logs.

Plex Media Server.log (7.4 MB)

Here is what my phone shows:


1 Like

I’m also experiencing this.

Same here. I have 1 file I have been testing with and seeing same results. Unable to process.

Dec 20, 2022 13:33:44.738 [0x7f0db4ecfb38] INFO - [Req#39858/Transcode] CodecManager: obtaining decoder ‘av1’
Dec 20, 2022 13:33:44.738 [0x7f0db4ecfb38] DEBUG - [Req#39858/Transcode/HCl#16a] HTTP requesting GET https://plex.tv/api/codecs/av1_decoder?build=linux-x86_64-standard&deviceId=2a0f08f6-6034-4e5a-a077-3582b6e38a8b&oldestPreviousVersion=1.29.0.6219-b1b4d4871&version=583b3e4-4441
Dec 20, 2022 13:33:44.880 [0x7f0db859db38] DEBUG - [HttpClient/HCl#16a] HTTP/2.0 (0.1s) 404 response from GET https://plex.tv/api/codecs/av1_decoder?build=linux-x86_64-standard&deviceId=2a0f08f6-6034-4e5a-a077-3582b6e38a8b&oldestPreviousVersion=1.29.0.6219-b1b4d4871&version=583b3e4-4441 (reused)
Dec 20, 2022 13:33:44.880 [0x7f0db239ab38] ERROR - [Req#39858/Transcode] Codecs: Failed to download XML for codec ‘av1_decoder’

Not sure if that is the issue or not

1 Like

Just to follow up. I was getting the failure with my 1660 Super installed.
I just swapped in a 3060Ti and its working to stream.

The 1660 Super doesn’t support AV1 decode…Though i would have expected the decode to flip to the CPU. Is that not the correct flow?

1 Like

Your logs report PMS tried to use the hardware and failed, which is expected, then it fallsback to software. However, it took a long time before the first segment is created. There are a bunch of error messages about the file. This may be related to how your files are encoded. Can you generate a small sample (100-200MB) of that video so I can test it.

No it’s not. That’s a bug, it shouldn’t be downloading a codec, it’s not needed.

Though i would have expected the decode to flip to the CPU. Is that not the correct flow?

Yes it should. If you can also provide me a sample of the file causing problems, that would be great.

1 Like

Excellent, that’s what I thought on fallback.

Here’s a 5 min sample.

Here you go

IIRC it’s encoded using SVT-AV1 1.3.0. I used StaxRip.

Sorry guys, I didn’t see this before the holidays.

@smitty4x4 - Your file has expired. Can you re-upload.

@Kidsnd274 - That site keeps forwarding me to other locations, not going to try to download that. Can you upload to a different site?

No Worries…Here’s a 5 min sample…Happy Holidays!

Got it. Thanks.

@smitty4x4 For me, your video does play but without any video. I’m guessing there is something in the way it was encoded. I’ll pass this along to our decoder expert to see what they think, but it looks like something with the file.

Do you have any AV1 files that will play or does everything fail?

Sorry about that. Here’s another link.

@Kidsnd274 Thanks. I got the file and I’m able to reproduce the issue. I’ll let the team know.

Edit - Hmm. As I was filing the issue, I decided to restart PMS to get a clean log and this time playback worked fine. Strange.

1 Like

Hmm weird. I’m able to consistently reproduce this error, even after restarting PMS and tried other files as well.

If you need my server transcode settings or anything, I can provide. Also, I used a patch to unlock the number of NVENC transcode sessions on the graphics driver. Not sure if that affects anything.

It might. Can you undo the patch to test?

Yup. I’ve reinstalled the driver with the clean option (with the patch undone) and the issue is still there.

Same problem here, did some testing with an AV1 file. SW transcoding working like a charm, but enabling HW transcoding with my P400 results in a black screen and the log message:
Error while decoding stream #0:0: Resource temporarily unavailable
Transcoding HEVC streams via HW works as always, so there is no problem with the hardware integration.