Jellyfin Forum
AV1 content takes obscenely long time to load - 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: AV1 content takes obscenely long time to load (/t-av1-content-takes-obscenely-long-time-to-load)



AV1 content takes obscenely long time to load - thepwrtank18 - 2023-06-28

When it eventually loads, it's using Direct Play, so it's not trying to modify anything. It looks like it gets worse the higher the resolution, with 4K seeming like it just doesn't load at all (it does eventually load after ~5 minutes). This is all I see in the log:

Code:
[2023-06-27 21:11:01.006 -04:00] [WRN] [27] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "https://[jellyfin url]/web/90471e989e93c6f2f5bf.woff2" to "[user ip]" in 0:00:00.8151517 with Status Code 200

This happens on both Chromium 116.0.5838.0 and Firefox 115.0b9. The device used for playback has an NVIDIA GeForce RTX 4070, which should be more than capable of playing AV1 content, and made the files in the first place.


RE: AV1 content takes obscenely long time to load - TheDreadPirate - 2023-06-28

What OS is the server running on, is Jellyfin running natively or in a container, and what are the server hardware specs? Can you attach more of the log file?


RE: AV1 content takes obscenely long time to load - thepwrtank18 - 2023-06-28

Jellyfin 10.8.10 (Native)
Windows 10 22H2
Core i7 4910MQ @ 2.10GHz
Nvidia GeForce GTX 880M
32GB DDR3
x1 LITEONIT DMT-80M6M-11 mSATA 80GB (Operating System), x2 PNY 1TB SATA SSD (Everything for Jellyfin except the server binaries)

Here's the full log file (domain name is censored, all IP's are from Cloudflare): https://gist.githubusercontent.com/thepwrtank18/2d33eb1fdfd72212da097b05cfd55a67/raw/5b259da00425d39c6908191e543f2931d6b700fe/log_20230628.log


RE: AV1 content takes obscenely long time to load - Venson - 2023-06-28

You said that your ips are from CF. Do you tunnel your traffic though Cloudflare?


RE: AV1 content takes obscenely long time to load - thepwrtank18 - 2023-06-28

I tunnel through Cloudflare.


RE: AV1 content takes obscenely long time to load - Venson - 2023-06-28

@thepwrtank18 did you try to access it directly and see if that works?
We generally try to avoid helping with any instance related to CF Tunneling as its against CF's TermsOfService.


RE: AV1 content takes obscenely long time to load - TheDreadPirate - 2023-06-28

(2023-06-28, 05:12 PM)thepwrtank18 Wrote: Jellyfin 10.8.10 (Native)
Windows 10 22H2
Core i7 4910MQ @ 2.10GHz
Nvidia GeForce GTX 880M
32GB DDR3
x1 LITEONIT DMT-80M6M-11 mSATA 80GB (Operating System), x2 PNY 1TB SATA SSD (Everything for Jellyfin except the server binaries)

Here's the full log file (domain name is censored, all IP's are from Cloudflare): https://gist.githubusercontent.com/thepwrtank18/2d33eb1fdfd72212da097b05cfd55a67/raw/5b259da00425d39c6908191e543f2931d6b700fe/log_20230628.log

On your server, open up task manager and sort by CPU usage.  Start playing a video and tell me what process is using the most CPU.  I'm betting it is Windows Defender.  I had the same issue when I was still running Jellyfin on Windows.  Even with HEVC direct plays, I also had issues with responsiveness just from Windows Defender inspecting the video file.


RE: AV1 content takes obscenely long time to load - thepwrtank18 - 2023-06-28

It looks like disabling Cloudflare's tunneling fixes the issue.

Are there alternatives to Cloudflare's tunneling that allow video?


RE: AV1 content takes obscenely long time to load - Venson - 2023-06-28

@thepwrtank18

Sure CF has paid plans for that, but i can not think of any provider that allows that for free. Its a huge load you put on thier systems with video/audio streams thats why they generally do not allow that.

But an VPS can easily be created by our own for around 10€/Month with a headless server hosted at (insert your prefered hosting provider). Then use OpenVPN or other free VPN software for that.