Jellyfin Forum
SOLVED: AV1 + subtitles doesn't work with hardware acceleration enabled - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: AV1 + subtitles doesn't work with hardware acceleration enabled (/t-solved-av1-subtitles-doesn-t-work-with-hardware-acceleration-enabled)



AV1 + subtitles doesn't work with hardware acceleration enabled - manphiz - 2024-01-13

Hi,


I've been using the official docker image[1] and enabled hardware acceleration which has been working fine in most cases.  However when trying to enable subtitles for AV1 videos, Jellyfin will get stuck forever, while it plays the same video fine when the subtitle is disabled.  I have also tried changing the subtitle settings with burn-in enabled or disable but it didn't make any difference.

A closer look at the FFmpeg log seems to suggest that libdav1d doesn't support subtitles with hardware acceleration enabled:
Quote:[av1 @ 0x55df4e324740] No support for codec av1 profile 0.
[av1 @ 0x55df4e324740] Failed setup for format vaapi: hwaccel initialisation returned error.
[av1 @ 0x55df4e324740] Your platform doesn't suppport hardware accelerated AV1 decoding.
[av1 @ 0x55df4e324740] Failed to get pixel format.
Error while decoding stream #0:0: Function not implemented
[av1 @ 0x55df4e324740] Missing Sequence Header.
Error while decoding stream #0:0: Invalid data found when processing input
[av1 @ 0x55df4e324740] Missing Sequence Header.
Error while decoding stream #0:0: Invalid data found when processing input
Error while decoding stream #0:0: Resource temporarily unavailable
    Last message repeated 33514 times
Too many packets buffered for output stream 0:1.
[libfdk_aac @ 0x55df4e80d1c0] 2 frames left in the queue on closing
Conversion failed!
Note that despite the error log says "Your platform doesn't suppport hardware accelerated AV1 decoding", it did play the same AV1 video fine without subtitles, so I guess that the "profile 0" part should just be the subtitle, but do correct me if I'm wrong.

I wonder whether this is a known issue, and if the developers are familiar with FFmpeg development schedule, is there any plans for supporting this?

[1] https://hub.docker.com/r/jellyfin/jellyfin


RE: AV1 + subtitles doesn't work with hardware acceleration enabled - TheDreadPirate - 2024-01-13

What are your server specs? That message probably means you check "AV1" in the transcoding settings, but your server GPU doesn't support AV1 decoding. The fact that your client played AV1 only means that the client supports AV1. The check boxes in the transcode settings are for telling Jellyfin what codecs your SERVER GPU supports decoding.


RE: AV1 + subtitles doesn't work with hardware acceleration enabled - manphiz - 2024-01-15

Hi TheDreadPirate,

Thanks for your explanation!  And sorry for the late reply as somehow I didn't receive any notifications.

If I understand it correctly, without subtitles, if the client supports AV1 the server doesn't do any transcoding but just serve the video directly, right?

I'm using an AMD Ryzen 3 5900HX with bundled GPU which should be a Vega 8.  Can you help me verify whether hardware acceleration is available for AV1 for this chipset?  Thanks!


RE: AV1 + subtitles doesn't work with hardware acceleration enabled - TheDreadPirate - 2024-01-15

It does not. IIRC, only the RX 6000/7000 series of AMD GPUs supports AV1 decoding. And whatever iGPU derivatives in the Ryzen 7000 series that use RDNA2/3.

I can't find a clear cut codec chart for AMD. But AV1 should definitely be UNchecked. I think the rest can be checked, based on what documentation I can find.


RE: AV1 + subtitles doesn't work with hardware acceleration enabled - manphiz - 2024-01-15

Guess I'll just leave AV1 unchecked. Thanks for confirming!