-
-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Artifacts in Some YouTube HDR Videos When Trying to Playback Using Hardware Decoding #595
Comments
Confirm. Blocky artifacts clearly visible. Most obvious segment 00:18 to 00.21 and starting at 01:48 Also happens with DXVA2-cb. |
Yeah, I also tried using that and D3D11 (Copyback) and still got the same results. |
I can see the artifacts when I use nvidia card to decode (d3d11 native or copyback), but not when I use integrated intel 750 (d3d11 copyback). |
My A380 can playback without much issues using d3d11 copyback, too. So it probably is some NVIDIA hwdec bug or something. Which, again, makes me wonder how YouTube got it to work properly with NVIDIA hwdec... |
test with ffplay -hwaccel vulkan don't have the artifact |
And browsers use Media Foundation interface, not DXVA/D3D11/D3D12. |
So I'm guessing it's a DirectX/Direct3D related bug? |
Media Foundation uses D3D11/12. The main difference is the decoder implementation that feeds the hardware decoder. FFmpeg vs MS. |
Ah, so it's an FFmpeg bug. |
Please try https://files.1f0.de/lavf/nightly/LAVFilters-0.79.2-2.exe, it seems to work now on my end. |
There is also this patch https://patchwork.ffmpeg.org/project/ffmpeg/patch/CZHCF9QL07FJ.3VOACXA14QCVF@yukari.in/ that possibly fixes more hwdecs than patching in For reference: |
Oh wow, it works! Can't wait for it to be integrated into MPC-HC (w/ K-Lite Codec Pack!)
That would be great to improve LAV as much as possible. |
Edit: Actually, just going to reopen until the fix is pushed on a stable release. |
Issues are historically closed when fixed, releases happen when they happen. |
I've noticed that in some YouTube videos, when trying to watch in HDR, they show blocky artifacts when trying to playback using hardware decoding on MPC-HC (or even MPV's d3d11va). They playback fine if I disable hardware decoding, which would make me assume that it's a hardware bug or something, but somehow YouTube can playback the same videos just fine using hardware decoding without any blocky artifacts.
Here's one example of what's going on:
And here's the mediainfo for that video:
mediainfo.txt
The text was updated successfully, but these errors were encountered: