Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Hardware & Software > Software players
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 13th May 2020, 10:55   #2501  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
Quote:
Originally Posted by NikosD View Post
I don't have a Navi card but I tried to help asking AMD here:
https://github.com/GPUOpen-Libraries...AMF/issues/186
Read the conversation there and take a look at that GitHub forum to see if anything new has appeared.

Maybe @huhn knows more.
Hi NikosD, thanks, I found this topic after I already read that Github issue, and I managed to play some videos with HW decoder like MichailAMD was saying, with Movies & TV. MPC-HC only works with CPU decoding, and I think MPV is working with VAAPI on Linux but drops frames a lot on higher FPS videos (which is OK I guess since Navi shouldn't support more than 8k@24 anyway)
Lumiel is offline   Reply With Quote
Old 13th May 2020, 11:32   #2502  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Quote:
Originally Posted by Lumiel View Post
Hi NikosD, thanks, I found this topic after I already read that Github issue, and I managed to play some videos with HW decoder like MichailAMD was saying, with Movies & TV. MPC-HC only works with CPU decoding, and I think MPV is working with VAAPI on Linux but drops frames a lot on higher FPS videos (which is OK I guess since Navi shouldn't support more than 8k@24 anyway)
So, it seems that nobody has managed to build a DirectShow decoder and you need a MediaFoundationTransform decoder.
That's bad because only Microsoft apps can provide that.

If I were you, I would try PotPlayer as a final move.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 13th May 2020, 13:15   #2503  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
Quote:
Originally Posted by NikosD View Post
So, it seems that nobody has managed to build a DirectShow decoder and you need a MediaFoundationTransform decoder.
That's bad because only Microsoft apps can provide that.
Why is that? I know nothing about encoders but it looks to me MFT is available to everyone? I don't even own an 8k monitor, I'm just trying to figure out if I can help somehow to help other people to make it work with theirs, plus I don't like the amount of misinformation available for Navi, so I'm trying to clear that up, if possible.

LAV filters seems to already use an IMFTransform for other codecs.
Lumiel is offline   Reply With Quote
Old 13th May 2020, 15:14   #2504  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,926
the driver is buggy.

it reports that it only supports macroblock mode while you have to support raw bitstream mode so a correctly coded DXVA2 implantation will not use it. the problem is raw bitstream mode works totally fine they just flag it wrong mpc-be internal decoder isn't checking or ignoring it and it works fine.

and even if it works it still shows up as encoding. AMD doesn't care that's what you should take from this.
i can only recommend to avoid AMD they don't deserve any support anymore. i talked directly with AMD about that the answer was "that doesn't sound important".
huhn is offline   Reply With Quote
Old 13th May 2020, 19:03   #2505  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
Quote:
Originally Posted by huhn View Post
the driver is buggy.

it reports that it only supports macroblock mode while you have to support raw bitstream mode so a correctly coded DXVA2 implantation will not use it. the problem is raw bitstream mode works totally fine they just flag it wrong mpc-be internal decoder isn't checking or ignoring it and it works fine.

and even if it works it still shows up as encoding. AMD doesn't care that's what you should take from this.
i can only recommend to avoid AMD they don't deserve any support anymore. i talked directly with AMD about that the answer was "that doesn't sound important".
It might be "buggy" but it works with other software? I can understand if developers don't want to support it but from what I see it works fine. Microsoft is using it just fine. Browsers are using it but not in an optimal way. What if it shows as encoding? It shows encoding on my machine too but that's just a sensor. Recording with OBS works fine as well with AMF.

We can argue all you want but if you say AMD doesn't care I can also say that developers don't seem to care. I'm here to discuss it and find solutions though, not start a flame war.
Lumiel is offline   Reply With Quote
Old 13th May 2020, 19:10   #2506  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Quote:
Originally Posted by Lumiel View Post
It might be "buggy" but it works with other software?
Could you test MPC-BE and PotPlayer and report here about your findings ?
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 13th May 2020, 19:13   #2507  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
Try if it works with this LAV build:
vp9_dxva_test
clsid is offline   Reply With Quote
Old 13th May 2020, 19:30   #2508  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
Quote:
Originally Posted by clsid View Post
Try if it works with this LAV build:
vp9_dxva_test
Thanks, unfortunately it doesn't. I can see more options now I believe, but still only copy-back detects my Navi card. D3D11 in Automatic still uses CPU. Native can't detect the hardware. edit: I might be reading the menus wrong, in any case none of the options is using the GPU hardware decoding capability.

Quote:
Originally Posted by NikosD View Post
Could you test MPC-BE and PotPlayer and report here about your findings ?

I will test it now.

Last edited by Lumiel; 13th May 2020 at 19:34.
Lumiel is offline   Reply With Quote
Old 13th May 2020, 19:43   #2509  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
MPC-BE works fine, it's using 100% GPU, however it's very heavy for my PC. Almost everything else become unresponsive. This is probably because I'm testing a 60 FPS video while Navi supports 8k@24 fps. I will now test PotPlayer and edit the same post so I don't spam.

edit: PotPlayer works fine as well, a little less heavy than MPC-BE. Some stats from Potplayer. So at least I know there are some players that support my GPU thanks NikosD

p.s the smoothest experience is 100% still with Movies & TV though, I can also see about 3% CPU usage along with 100% GPU usage. That's as far my knowledge goes on the issue

Last edited by Lumiel; 13th May 2020 at 19:59.
Lumiel is offline   Reply With Quote
Old 13th May 2020, 20:33   #2510  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,926
Quote:
Originally Posted by Lumiel View Post
We can argue all you want but if you say AMD doesn't care I can also say that developers don't seem to care. I'm here to discuss it and find solutions though, not start a flame war.
if you have to break the spec to make it works it's clearly an issue with AMD. this all has been tested month ago and reported to AMD and there answer was pretty much we don't care. at what point can i say they don't care?

nev was not willing to add this yet.
and why does it work with other software like video app it doesn't use DXVA2.

you can read more here:
https://forum.doom9.org/showthread.p...36#post1899136
huhn is offline   Reply With Quote
Old 13th May 2020, 20:58   #2511  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
Quote:
Originally Posted by huhn View Post
if you have to break the spec to make it works it's clearly an issue with AMD. this all has been tested month ago and reported to AMD and there answer was pretty much we don't care. at what point can i say they don't care?

nev was not willing to add this yet.
and why does it work with other software like video app it doesn't use DXVA2.

you can read more here:
https://forum.doom9.org/showthread.p...36#post1899136
Thanks for the link, that's why I came here to learn more about the issue. As I said I'm OK with devs not wanting to add exemptions etc, and I'm happy at least I have an alternative to use my card now. Maybe it will be fixed by AMD at some point.
Lumiel is offline   Reply With Quote
Old 13th May 2020, 20:59   #2512  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Quote:
Originally Posted by Lumiel View Post
p.s the smoothest experience is 100% still with Movies & TV though, I can also see about 3% CPU usage along with 100% GPU usage. That's as far my knowledge goes on the issue
You can reach AMD writing under my topic at GitHub to MichaelAMD and tell them that according to the developers the

"DXVA VP9 specification states that "ConfigBitstreamRaw" should always be 1 for VP8/9"

and their driver doesn't comply.

Now, using your GPU at 100% can make your GUI - Windows - feel sluggish.

I would like you to open Task Manager of Windows 10 and see the GPU video decoder usage during VP9 8K playback with both DS Players (PotPlayer and MPC-BE) and the MFT Player (Movies & TV)

In pure DXVA2 native mode or D3D11 native mode, the GPU usage should be real low and the HW video decoder usage should be close to 100% while CPU should be low too.

Can you test DXVA Checker in benchmark mode in pure hardware decoding mode renderless (not playback) using MPC-BE filters ? (you have to install them separately as DS filters)

Also, I would like you to post some VP9 4K results regarding video performance (FPS, GPU usage) with both DS and MFT decoders.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 13th May 2020, 21:29   #2513  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
Quote:
Originally Posted by NikosD View Post
I would like you to open Task Manager of Windows 10 and see the GPU video decoder usage during VP9 8K playback with both DS Players (PotPlayer and MPC-BE) and the MFT Player (Movies & TV)

In pure DXVA2 native mode or D3D11 native mode, the GPU usage should be real low and the HW video decoder usage should be close to 100% while CPU should be low too.
Sorry for confusing you, by GPU usage I meant the HW video decoder.

MPC-BE: HW decoder 100% - GPU D3D Usage 19% - GPU memory controller 4% - GPU memory usage 1500MB - CPU 0%
PotPlayer: HW decoder 100% - GPU D3D Usage 19% - GPU memory controller 5% - GPU memory usage 1600MB - CPU 0.8%
Movies & TV: HW decoder 100% - GPU D3D Usage 13% - GPU memory controller 25% - GPU memory usage 1992 MB - CPU 1.2%


Quote:
Can you test DXVA Checker in benchmark mode in pure hardware decoding mode renderless (not playback) using MPC-BE filters ? (you have to install them separately as DS filters)

Also, I would like you to post some VP9 4K results regarding video performance (FPS, GPU usage) with both DS and MFT decoders.
I'm not sure how to do all that... but I can give it a try.
Lumiel is offline   Reply With Quote
Old 13th May 2020, 22:14   #2514  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Quote:
Originally Posted by Lumiel View Post
Sorry for confusing you, by GPU usage I meant the HW video decoder.
Thanks for the results.
Then you are pushing your HW decoder to its limit.

But, Windows GUI has nothing to do with that and everything should be normal with such low GPU and CPU usage.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 14th May 2020, 00:34   #2515  |  Link
Lumiel
Registered User
 
Join Date: May 2020
Posts: 14
So I've downloaded a 4K video but DXVA checker only shows CPU support. I don't think I can force it somehow to work with a Navi GPU.
Lumiel is offline   Reply With Quote
Old 14th May 2020, 07:41   #2516  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,926
windwos media foundation does this:
youtube UHD 60 HDR.
VP9 profile2 103 122 137 9% CPU 100 % video encode engine.

edit: 8k runs at about 40 FPS i didn't finish the run that would take a long time. about the same CPU usages more then 1 thread.

the very high CPU usages is very odd:
https://abload.de/img/veryhighcpuusageerkpg.png

these test are done without loading the radeon control panel or what it'S name is now to avoid issues.
Quote:
But, Windows GUI has nothing to do with that and everything should be normal with such low GPU and CPU usage.
this just happens from time to time up to this day it is recommended to disable hardware acceleration in browser and programs like discord. it was much worse in the past.

Last edited by huhn; 14th May 2020 at 07:47.
huhn is offline   Reply With Quote
Old 14th May 2020, 13:04   #2517  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
I suggest some Navi user to report the bug demonstrated with ffplay to ffmpeg. If it gets closed because the workaround is rejected, one could still point that to AMD.
Not that any hopes would be justified, but...
aufkrawall is offline   Reply With Quote
Old 14th May 2020, 16:01   #2518  |  Link
DMU
Registered User
 
Join Date: Dec 2018
Posts: 207
Quote:
Originally Posted by Lumiel View Post
Maybe it will be fixed by AMD at some point.
I do not advise you to hope so. They will not do anything themselves until you force them. AMD has some kind of problem with flags in the software. An example was the missing BT.2020 flag in their private API - AGS, which did not allow HDR content to be correctly played using madVR. I spent a lot of time to sort out the problem and describe it to them. It took even more time to explain this to them. And if not for the community (thanks to mclingo, aka stoolzo), AMD owners still watched HDR in the BT.709 color space. If you decide to write to them, be sure to let them know what official standards they violate.
__________________
R3 3200G / Vega8 / Samsung UE40NU7100
Win11Pro 21H2 / 4K RGB 59Hz / AMD last driver
MPC-HC 1.9.17 / madVR 0.92.17 / FSW / SM / 8bit
DMU is offline   Reply With Quote
Old 14th May 2020, 18:06   #2519  |  Link
clsid
*****
 
Join Date: Feb 2005
Posts: 5,647
Quote:
Originally Posted by clsid View Post
Try if it works with this LAV build:
vp9_dxva_test
Can anyone else test this as well? It was patched to allow ConfigBitstreamRaw=0 for VP9, so I was hoping it would work.

A good additional place to submit bug reports is in the driver feedback threads on Reddit. A few guys from AMD are active there.
clsid is offline   Reply With Quote
Old 14th May 2020, 18:08   #2520  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,926
sorry doesn't work for me too.
huhn is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.