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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 11th September 2012, 19:08   #20141  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,399
What do you think about moving the mixer from MpaDecFilter to AudioSwitcher? And about removing the "custom channel mapping"?
v0lt is offline  
Old 11th September 2012, 20:22   #20142  |  Link
Mercury_22
Registered User
 
Join Date: Dec 2007
Posts: 1,132
Quote:
Originally Posted by v0lt View Post
What do you think about moving the mixer from MpaDecFilter to AudioSwitcher? And about removing the "custom channel mapping"?
Do not remove the "custom channel mapping"!!!!!!!!!!!!!!!!!
And yes "moving the mixer from MpaDecFilter to AudioSwitcher" seems a good idea

EDIT : Also it will be nice if you could add independent volume levels for each channel like in FFD
__________________
Windows 10 19042.508 x64, HD7790 Adrenalin 2020 Edition 20.9.1, HDMI Full RGB 4:4:4

Last edited by Mercury_22; 11th September 2012 at 20:26.
Mercury_22 is offline  
Old 11th September 2012, 20:25   #20143  |  Link
betaking
Fantasy Codecs writer
 
betaking's Avatar
 
Join Date: Nov 2007
Location: Yang Zhou,Jiang Su,China
Posts: 392
Quote:
Originally Posted by Mercury_22 View Post
Do not remove the "custom channel mapping"!!!!!!!!!!!!!!!!!
And yes "moving the mixer from MpaDecFilter to AudioSwitcher" seems a good idea
+1!I also agree with you!
betaking is offline  
Old 11th September 2012, 22:19   #20144  |  Link
jq963152
Registered User
 
Join Date: Apr 2012
Posts: 691
Hello,

with MPC-HC x64 1.6.3.5818, hardware acceleration apparently is not used on videos with resolutions beyond 1920x1080?

Why is that?

And is there any way to use hardware acceleration on videos with resolutions beyond 1920x1080?

Thanks in advance.
jq963152 is offline  
Old 12th September 2012, 03:25   #20145  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,399
Quote:
Originally Posted by jq963152 View Post
with MPC-HC x64 1.6.3.5818, hardware acceleration apparently is not used on videos with resolutions beyond 1920x1080?
Call type of your video card.
v0lt is offline  
Old 12th September 2012, 03:56   #20146  |  Link
JanWillem32
Registered User
 
JanWillem32's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,083
@jq963152: It's at the bottom of the page: https://github.com/mpc-hc/mpc-hc/blo...pegContext.cpp . There are restrictions to the size. If you see any case that needs to be corrected, please give us some documentation. We can then patch these items.
__________________
development folder, containing MPC-HC experimental tester builds, pixel shaders and more: http://www.mediafire.com/?xwsoo403c53hv
JanWillem32 is offline  
Old 12th September 2012, 13:44   #20147  |  Link
jq963152
Registered User
 
Join Date: Apr 2012
Posts: 691
Thanks for your replies.

Quote:
Originally Posted by v0lt View Post
Call type of your video card.
NVIDIA GeForce GT 520 (GF119)

Quote:
Originally Posted by JanWillem32 View Post
@jq963152: It's at the bottom of the page: https://github.com/mpc-hc/mpc-hc/blo...pegContext.cpp . There are restrictions to the size. If you see any case that needs to be corrected, please give us some documentation. We can then patch these items.
Well, not sure, not a programmer, but the text from your link apparently states the following (among other things):

Quote:
Originally Posted by https://github.com/mpc-hc/mpc-hc/blob/master/src/filters/transform/MPCVideoDec/FfmpegContext.cpp

https://github.com/mpc-hc/mpc-hc/blob/master/src/filters/transform/MPCVideoDec/FfmpegContext.cpp#L165

nVidia cards support level 5.1 since drivers v6.14.11.7800 for XP and drivers v7.15.11.7800 for Vista/7

https://github.com/mpc-hc/mpc-hc/blo...ntext.cpp#L188
HD4xxx, HD5xxx, and HD6xxx AMD/ATI cards support level 5.1 since drivers v8.14.1.6105 (Catalyst 10.4)
And at least according to Wikipedia:

http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels

AVC HP@L5.1 apparently would allow for much higher resolutions than 1920x1080, wouldn't it?

Also, in the LAV Filters thread apparently the following was posted:

Quote:
Originally Posted by nevcairiel View Post
Only Ivy Bridge does 4K decoding, if you're running it on your 2500k from your signature, no 4K for you.

NVIDIA (via CUVID) only supports it with VP5 (VDPAU Feature Set D). AMD claims to support it with the 7xxx series, but in my tests, it just failed miserably.
Quote:
Originally Posted by Pat357 View Post
Try it with LAV CUDA or LAV CB, as in these modes IIRC, there are no blocks on any resolutions. (res > 1080p HD)
LAV Native DXVA might block some res. higher then 1920x1088 IIRC
And apparently when playing back 3840x2160 video here for example with a GT 520, hardware acceleration apparently is only shown as "active" in the LAV Video Configuration panel when it is set to LAV CUVID or LAV DXVA2 (copy-back).

But when setting it to LAV DXVA2 (native) or when using internal MPC-HC Video Decoder it apparently is falling back to software decoding.

Why are resolutions beyond 1920x1080 blocked with LAV DXVA2 (native) and internal MPC-HC Video Decoder (which is DXVA2 native as well, isn't it?)?

Last edited by jq963152; 12th September 2012 at 18:54.
jq963152 is offline  
Old 12th September 2012, 14:01   #20148  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,027
Its blocked with DXVA2 Native in LAV because auto-detection of 4k support is not working properly, and if it enabled it but doesnt support it, you get a black screen, which is no good.
Either i'll have to fix the auto-detection (might be tricky) or simply add a checkbox so people can turn on 4k DXVA if they think their Hardware can do it.

In any case, I've been rather busy with a lot of different things over the last few weeks, and not much got done.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline  
Old 12th September 2012, 14:06   #20149  |  Link
jq963152
Registered User
 
Join Date: Apr 2012
Posts: 691
Quote:
Originally Posted by nevcairiel View Post
Its blocked with DXVA2 Native in LAV because auto-detection of 4k support is not working properly, and if it enabled it but doesnt support it, you get a black screen, which is no good.
But with VP5 you would not get a black screen, or would you ?

Quote:
Originally Posted by nevcairiel View Post
Either i'll have to fix the auto-detection (might be tricky) or simply add a checkbox so people can turn on 4k DXVA if they think their Hardware can do it.
That would probably be appreciated .

Last edited by jq963152; 12th September 2012 at 14:12.
jq963152 is offline  
Old 13th September 2012, 13:36   #20150  |  Link
jq963152
Registered User
 
Join Date: Apr 2012
Posts: 691
Quote:
Originally Posted by JanWillem32 View Post
There are restrictions to the size. If you see any case that needs to be corrected, please give us some documentation. We can then patch these items.
No reply from you ?
jq963152 is offline  
Old 13th September 2012, 16:57   #20151  |  Link
JanWillem32
Registered User
 
JanWillem32's Avatar
 
Join Date: Oct 2010
Location: The Netherlands
Posts: 1,083
I recently patched some of the DXVA code, so I know what variables are stored and how these are used. You can take a look at the registry part that is read for this function by using regedit.exe . The keys for the various video adapters are listed in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video" . The correct adapter is selected by using the monitor handle. The device and driver identifier keys can be seen under the "0000" key.
Here comes the problem: only very few keys in there are standardized, the rest is driver-specific.
The three identifiers that are stored are the vendor ID, the hardware ID and the driver revision. The device and hardware ID is in plain text. For example, my video adapter is; "pci\ven_1002&dev_9460" . http://www.pcidatabase.com/search.ph..._search=Search
These three numbers are used to determine the capabilities of the device and driver, as you can see in the link I posted to the source code. These values are acquired by reading spec sheets and by trial and error testing. There are no ways to directly query these detailed things from the standard driver-linked interfaces in software.
So what we need is data on what manufacturer ID, what device ID or which series of IDs and which driver revisions have which specific capabilities.
__________________
development folder, containing MPC-HC experimental tester builds, pixel shaders and more: http://www.mediafire.com/?xwsoo403c53hv
JanWillem32 is offline  
Old 13th September 2012, 17:13   #20152  |  Link
jq963152
Registered User
 
Join Date: Apr 2012
Posts: 691
Could you possibly do something similar to what "nevcairiel" suggested for LAV Filters:

Quote:
Originally Posted by nevcairiel View Post
or simply add a checkbox so people can turn on 4k DXVA if they think their Hardware can do it.
?

At least as long as auto-detection is not working properly?

Suggestion:

In MPC-HC x64 1.6.3.5818, if you go to:

Quote:
Filters ---> MPC-HC Video Decoder ---> DXVA Settings ---> DXVA (H.264) Compatibility check
apparently you can choose between:

Quote:
Full check, Skip level check, Skip ref frame check, Skip all checks
So how about adding something like "Skip width and height check" or "Skip resolution check" or "Skip framesize check" or something like that ?

Last edited by jq963152; 13th September 2012 at 17:18.
jq963152 is offline  
Old 13th September 2012, 19:20   #20153  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,399
jq963152
Quote:
NVIDIA GeForce GT 520 (GF119)
Nvidia cards can not decode 4k in DXVA mode. Tested on GTX 680.

Nvidia cards are limited:
width <= 2032 && height <= 2032 && width*height <= 8190*16*16

Nvidia officially declares support for the width and height of 2048 pixels and 8192 macroblock for H264, but this is not true.

Quote:
So how about adding something like "Skip width and height check" or "Skip resolution check" or "Skip framesize check" or something like that ?
Why? Will you look at the a black square?
There were cases in the fall of BSOD.

Last edited by v0lt; 13th September 2012 at 19:25.
v0lt is offline  
Old 13th September 2012, 19:33   #20154  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,578
Quote:
Originally Posted by v0lt View Post
Nvidia officially declares support for the width and height of 2048 pixels and 8192 macroblock for H264, but this is not true.
Does it work in cuvid mode? Do they really say it should work with DXVA, or they say that this is theoretical limit of the engine? Cause this is different things... Maybe its dxva-specific limitation, which you can expect from such old technology. Also noone cares much about dxva these days

Last edited by Keiyakusha; 13th September 2012 at 19:35.
Keiyakusha is offline  
Old 13th September 2012, 20:43   #20155  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,399
Quote:
Originally Posted by Keiyakusha View Post
Does it work in cuvid mode?
MPCVideoDec does not support cuvid mode.
v0lt is offline  
Old 13th September 2012, 20:50   #20156  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,578
Quote:
Originally Posted by v0lt View Post
MPCVideoDec does not support cuvid mode.
I know. But you better check it too before saying that nvidia's hardware doesn't supports what it claims. Does they realy say it should work with DXVA, or they say the hardware is capable of decoding 2048 pixels and 8192 macroblock? You didn't answered.

Last edited by Keiyakusha; 13th September 2012 at 20:53.
Keiyakusha is offline  
Old 13th September 2012, 21:09   #20157  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,399
Quote:
Originally Posted by Keiyakusha View Post
I know. But you better check it too before saying that nvidia's hardware doesn't supports what it claims
Nvidia says about DXVA. I and a few people checked DXVA. For our decoder such check is sufficient.

...
I specifically checked in CUVID (LAV Video Decoder 0.51.3). It does not support for the width and height of 2048 pixels and 8192 macroblocks. Nvidia is lying.
v0lt is offline  
Old 13th September 2012, 21:22   #20158  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,578
Quote:
Originally Posted by v0lt View Post
I specifically checked in CUVID (LAV Video Decoder 0.51.3). It does not support for the width and height of 2048 pixels and 8192 macroblocks. Nvidia is lying.
At this moment LAV won't allow you to do it even if it will work. <-- edit: judging from the post below this maybe not very true
But if they say DXVA should work, that's too bad =(
On other forums people claim nvidia really decodes what it says, but not in DXVA

Last edited by Keiyakusha; 13th September 2012 at 22:21.
Keiyakusha is offline  
Old 13th September 2012, 22:16   #20159  |  Link
jq963152
Registered User
 
Join Date: Apr 2012
Posts: 691
Quote:
Originally Posted by v0lt View Post
Nvidia cards can not decode 4k in DXVA mode.
But what about what Wikipedia says for example:

Quote:
Originally Posted by en.wikipedia.org/wiki/Nvidia_PureVideo#The_Fifth_Generation_PureVideo_HD

http://en.wikipedia.org/wiki/Nvidia_PureVideo#The_Fifth_Generation_PureVideo_HD


[...]

The Fifth Generation PureVideo HD

The fifth generation of PureVideo HD, introduced with the Geforce GT 520 and also included in the Nvidia GeForce 600(Kepler) series GPUs has significantly improved performance when decoding H.264, VC-1 and MPEG-2 codecs [8]. It is also capable of decoding 4K resolution videos at 3840 x 2160 pixels, (doubling the 1080p high-definition television standard in both the vertical and horizontal dimensions), also known as Quad Full High Definition (QFHD). Also MVC (Multiview Video Coding) H.264 decoding support for Blu-ray 3D and other Full HD 3D at 1080p.[9]

[...]
Quote:
Originally Posted by en.wikipedia.org/wiki/Nvidia_PureVideo#Feature_Set_D

http://en.wikipedia.org/wiki/Nvidia_...#Feature_Set_D

[...]

Feature Set D

Introduced 4K resolution / QFHD video decoding at up to 3840 x 2160 pixels

[...]
?



Quote:
Originally Posted by v0lt View Post
Tested on GTX 680.
How did you test that if it is currently blocked in MPC-HC?

Quote:
Originally Posted by v0lt View Post
Nvidia cards are limited:
width <= 2032 && height <= 2032 && width*height <= 8190*16*16

Nvidia officially declares support for the width and height of 2048 pixels and 8192 macroblock for H264, but this is not true.
Is this:

http://us.download.nvidia.com/XFree8...limits-decoder

your source for what you just posted?

Quote:
Originally Posted by Keiyakusha View Post
Does it work in cuvid mode?
From the LAV Filters thread:

Quote:
Originally Posted by jq963152 View Post
Quote:
Originally Posted by Pat357 View Post
Try it with LAV CUDA or LAV CB, as in these modes IIRC, there are no blocks on any resolutions. (res > 1080p HD)
LAV Native DXVA might block some res. higher then 1920x1088 IIRC
Just tried using LAV CUVID and LAV DXVA2 (copy-back) on the 2560x1440p video and apparently it does work (both apparently are shown as being "active" in the LV Video Configuration panel) .

Quote:
Originally Posted by nevcairiel View Post
Only Ivy Bridge does 4K decoding, if you're running it on your 2500k from your signature, no 4K for you.

NVIDIA (via CUVID) only supports it with VP5 (VDPAU Feature Set D). AMD claims to support it with the 7xxx series, but in my tests, it just failed miserably.
Also tried 3840x2160p testclip with LAV CUVID and LAV DXVA2 (copy-back). Apparently both are shown as being "active" in the LAV Video Configuration panel when playing back. But it appears to be very laggy with LAV DXVA2 (copy-back). With LAV CUVID it appears to be much better, although, unfortunately, not necessarily perfect either.


Quote:
Originally Posted by v0lt View Post
I specifically checked in CUVID (LAV Video Decoder 0.51.3). It does not support for the width and height of 2048 pixels and 8192 macroblocks. Nvidia is lying.
See above.

Using GT 520 (GF119) here with LAV Filters 0.51.3, both, LAV CUVID and LAV DXVA2 (copy-back) apparently are shown as being "active" in the LAV Video Configuration panel when playing back 3840x2160p testclip and even when playing back 4096x2304 testclip. But, as mentioned in the quote above, it appears to be very laggy with LAV DXVA2 (copy-back). With LAV CUVID it appears to be much better, although, unfortunately, not necessarily perfect either.

So why do you write it would not work?

Or has it something to do with 8192 macroblocks?

Last edited by jq963152; 14th September 2012 at 09:47.
jq963152 is offline  
Old 13th September 2012, 22:39   #20160  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,027
Quote:
Originally Posted by v0lt View Post
I specifically checked in CUVID (LAV Video Decoder 0.51.3). It does not support for the width and height of 2048 pixels and 8192 macroblocks. Nvidia is lying.
4K decoding works with CUVID on my 680.
I'll look into DXVA soon, there were some driver bugs that caused it to fail in earlier versions, but maybe those are fixed now.

Quote:
Originally Posted by jq963152 View Post
But, as mentioned in the quote above, it appears to be very laggy with LAV DXVA2 (copy-back). With LAV CUVID it appears to be much better, although, unfortunately, not necessarily perfect either.
Thats because the 520 does not have enough memory bandwidth for "copy back" modes like CUVID or DXVA2-CB, its to be expected, the card is too weak.
Although the decoder chip isn't really all that fast on 4K content either, it can do 24p just fine, but above 30fps it'll start to lag.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 13th September 2012 at 22:42.
nevcairiel is offline  
Closed Thread

Tags
dxva, h264, home cinema, media player classic, mpc-hc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:38.


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