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
Software decoding looks low quality #21850
Comments
Totally useless as you not provided none info (video resolution, render resolution, output resolution, debug log, etc.).
This is the key point. Some context: DXVA2 = OFF ----> PixelShaders are used ----> DXVA upscaling cannot be used. |
I have said that there was no scale, all 1080p, 100% point-to-point. |
Debug log is mandatory |
After more tests, I found that this does not only happen with hevc, but also with H264. Therefore, I suspect that all software decoders have this problem. It doesn't look like a scaling problem. I used MPC-HC in different scaling algorithm for comparison. These unsmooth edges are neither the nearest nor bilinear. The log of h264 is as follows: kodi.log |
I'm sorry, but I'm not going to waste time looking at something that happens in outdated graphics (10 years old) |
@thexai This happens all of my PC with different GPUs: Intel HD4400, AMD Vega8, AMD 5700xt and Nvidia GTX1660Super. I don't think all of them are out of date. |
Debug log? |
It looks to me that the Chroma siting is 0.5px off in both directions. I.E. sampling Type 2 4:2:0 media as Type 1. |
Does the issue still occur under version 21 using FFmpeg 6.0 ? |
Yes and dxva is affected sometimes, has to do with 8 or 10 bit but not clear yet how. |
After some tests, with dxva the issue is the AMD dxva processor with 10 bit output (same results with 8 or 10 bit input). There is a pixellation of the chroma that doesn't exist with 8 bit output. Intel and NVIDIA have no such issue. The pixel shaders (Kodi color conversion) and software render method (ffmpeg color conversion) show a similar chroma pixellation. dxva may have more advanced chroma upscaling algorithms, explaining the better results. To be further investigated. |
If you're still around and can test with v21 beta2 + AMD other than the vega 8 (like 5700XT), you may find an issue with dxva render method when the new setting " High quality processing" is on. Please let us know. |
Thanks!
Set the following options:
Play an SDR video. On my 5600G (contemporary with your vega 8) that makes the chroma pixillated even with latest driver. |
Something is wrong, it still picked 8 bit
Maybe the processor doesn't have support for 10 bit. Please turn on additional logging in System > Logging. Then play the video. |
Thanks. I could grab your log file with 8 bit before you replaced it and have a clear picture now for the 5700XT, For 8 bit source the dxva processor doesn't claim support for rgb10 output So yeah it's likely architecture related. Could you try your vega 8? (both 8 and 10 bit input) |
Great, now we have something. Thanks for your help, it confirms an issue with the GCN family. Now how to identify it... Looks like AMD put GCN and RDNA in different branches recently: https://www.anandtech.com/show/21126/amd-reduces-ongoing-driver-support-for-polaris-and-vega-gpus Looking at the driver version numbers, the 3500U has 31.0.21902.5, the 5600G has 31.0.21905.1001 (same for a couple months now, matches the timeline of the article) We could probably filter with version < 31.0.22000.0. |
There is not easy way to know driver version on Xbox because apps not have access to Windows Registry (not reported on Kodi logs) and driver version also not seems present in Xbox system settings. Anyway is easy exclude/include Xbox from workarounds with this code:
|
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
it looks low quality if I use software decoding (ff-hevc) for hevc video, and will be fine if I enable hardware acceleration.
Same video software decoding in VLC or MPC-HC is OK.
Expected Behavior
Here is a clear and concise description of what was expected to happen:
The edges of the lines should be smooth.
Actual Behavior
Line edges are not smooth, it's especially evident in Anime.
There is no scale, so it's not because of nearest upscaling.
Possible Fix
Use hardware decoder instead of ff-hevc software decoder.
To Reproduce
Steps to reproduce the behavior:
Debuglog
The debuglog can be found here:
kodi.old.log
Screenshots
Here are some links or screenshots to help explain the problem:
Please right click to see the original image. Notice the edges of the text, and the pattern in the middle of the first group of images
HEVC 10bit KODI SW (low quality)
HEVC 10bit VLC SW (OK)
HEVC 8bit KODI SW (low quality)
HEVC 8bit KODI HW (OK)
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
Your Environment
Used Operating system:
Android
iOS
tvOS
Linux
OSX
Windows
Windows UWP
Operating system version/name: Windows 11
Kodi version: 20 Alpha3
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.
The text was updated successfully, but these errors were encountered: