jellyfin-media-player icon indicating copy to clipboard operation
jellyfin-media-player copied to clipboard

AV1 artifacting error

Open HannahBanana1312 opened this issue 1 year ago • 15 comments

Four considerations:

  • Please do not open bug reports to ask questions. Use the Discussions feature instead.
  • Please make sure the issue only pertains to Jellyfin Media Player. If it also occurs in the web client, send the issue to jellyfin-web instead.
  • Please make sure that your issue is not being caused by errors in custom CSS or note that you are using custom CSS.
    • Notably, there have been instances of custom CSS breaking TV mode.
    • You can disable custom CSS under Display in the user settings.
  • Please provide logs. You can drag the log file into the issue to attach it.
    • Windows: %LOCALAPPDATA%\JellyfinMediaPlayer\logs
    • Linux: ~/.local/share/jellyfinmediaplayer/logs/
    • Linux (Flatpak): ~/.var/app/com.github.iwalton3.jellyfin-media-player/data/jellyfinmediaplayer/logs/
    • macOS: ~/Library/Logs/Jellyfin Media Player/

Describe the bug A clear and concise description of what the bug is.

When watching AV1 encoded files, there's artifacting and flickers, it looks like the next frame is overlaid onto the current frame. It does not show up when watching using MPC-HC directly. I would test on web but it hangs and won't direct play or transcode (tried Firefox and Edge)

To Reproduce Steps to reproduce the behavior: Watch a file encoded with AV1

Expected behavior A normal viewing experience

Screenshots If applicable, add screenshots to help explain your problem.

Frame 1 Frame 2 Frame 3 Frame 4

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10 21H2 build 19044.3086
  • Version [e.g. 22] 1.9.1
  • Installation Method [e.g. windows installer] JellyfinMediaPlayer-1.9.1-windows-x64.exe

Additional context Add any other context about the problem here. JellyfinMediaPlayer.log

HannahBanana1312 avatar Sep 21 '23 04:09 HannahBanana1312

Possible duplicate of #460 ?

felix920506 avatar Sep 24 '23 19:09 felix920506

Possible duplicate of #460 ?

Possibly, but #460's visual problems don't resemble the usual presentation (rainbow artifacting) of this bug. I think it would be wise to hold off closing this, until the underlying problem is solved.

xescure avatar Oct 06 '23 17:10 xescure

It is most likely caused by an outdated video player dependency. dav1d introduced this bug at some point, but versions after v1.2.1 should be alright. Compiling the project with up-to-date MPV DLLs might fix it, but I have not tested it myself.

xescure avatar Oct 06 '23 18:10 xescure

I was not able to reproduce. Neither in Ubuntu 22.04.3 LTS Desktop nor Windows 11 Pro 23H2. Tried both AV1 HDR content and AV1 SDR content.

JMP 1.9.1 Server 10.8.12, Ubuntu 22.04.3 LTS Server GPU AMD Radeon RX 6800 CPU Ryzen 7 5900X

JellyfinMediaPlayer.log av1 sdr av1 hdr

solidsnake1298 avatar Nov 11 '23 05:11 solidsnake1298

I heard it is fixed by updated MPV dlls. Unfortunately I now have to compile from source for Windows because the MPV version officially shipped has a TLS version that doesn't work correctly. I tried building it the other day but I have to hand patch the build scripts since they are broken.

iwalton3 avatar Nov 11 '23 05:11 iwalton3

@solidsnake1298 it's definitely not all content. AFAIK it has something to do with the embedded grain in the video stream.

Here's a really short clip that triggers the problem.

xescure avatar Nov 16 '23 22:11 xescure

@solidsnake1298 it's definitely not all content. AFAIK it has something to do with the embedded grain in the video stream.

Here's a really short clip that triggers the problem.

I will add this to my test library tonight and report back.

solidsnake1298 avatar Nov 17 '23 14:11 solidsnake1298

@xescure The file you provided did not trigger what you described on my system. Side note, what is this clip from?

image

solidsnake1298 avatar Nov 18 '23 17:11 solidsnake1298

@solidsnake1298 Are you on Windows? I can try to replicate it on other computers, but I don't see why it wouldn't show up with the same file, on the same OS (Windows 10/11) and same build (v1.9.1)

Also, the clip I provided wasn't the best way to show it this should be much better.

Here's some extra background info:

image

image

p.s.: The clip is from Frieren

xescure avatar Nov 18 '23 17:11 xescure

THAT file triggered it for me.

image

solidsnake1298 avatar Nov 18 '23 18:11 solidsnake1298

looks like this is confirmed and ready for a fix. this issue will be closed by an updated release.

sevenrats avatar Dec 17 '23 19:12 sevenrats

I'm still having this exact issue while direct playing av1 encoded files in the Jellyfin app. I'm using the Jellyfin windows app version 1.9.1 on Windows 11 Pro 22621.3007 with an AMD Ryzen 7800X3D and a Radeon 7900XTX

shaunvaidyan avatar Jan 19 '24 21:01 shaunvaidyan

Confirm I'm also experiencing this on a NAS running in docker.

Malumen avatar Mar 08 '24 13:03 Malumen

Same issue on 1.9.1 windows 11 pro 22H2 22621.3007 RX6500XT graphics card. I downgraded to release 1.8.1 and that fixed it.

hydrtd avatar Apr 11 '24 11:04 hydrtd

Is there any clips to reproduce not hosted on onedrive? That site is looping for me...

I have used a mpv.dll build from shinchiro (mpv-dev-x86_64-v3-20231231-git-abc2a74.7z) to fix another issue unrelated to av1 and I have never seen this, although I have seen plenty of AV1 Also that mpv build works without any issues for me so you can maybe try that one.

fatexs avatar Apr 11 '24 19:04 fatexs

@xescure Can you repost the one clip I stated triggered the AV1 chroma bug? I cleared out all my test libraries for a server rebuild and need a known "bad" clip to test JMP 1.10.

solidsnake1298 avatar May 18 '24 00:05 solidsnake1298

My mate who had this bug cannot replicate this on JMP 1.10

Volkor3-16 avatar May 18 '24 07:05 Volkor3-16