Linux Fernetmenta's vdpau options

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
PatrickVogeli Offline
Fan
Posts: 532
Joined: Jul 2010
Reputation: 6
Location: Cambrils, Tarragona (Catalonia)
Question  Fernetmenta's vdpau options Post: #1
Hi there,

I'm using Openelec 2 beta 5, and it seems to include Fernetmenta's patches for vdpau. There are at least 2 options which are new to me:

Allow OpenGL VDPAU interopt RGB and interopt YUV

Does someone now what those options do? I'm using a sony TV which let you select colorspace and hdmi range (full or limited), does somebody know which options woukd be best? Any hints on why?

Thanks to all!
find quote
FernetMenta Online
Team-XBMC Member
Posts: 1,630
Joined: Jul 2010
Reputation: 34
Location: Munich
Post: #2
In principle those options make use of: ftp://download.nvidia.com/XFree86/vdpau/...nterop.txt

VDPAU can do decoding and YUV-RGB conversion. Interop RGB should always be selected. Deselecting it make the system fall back to a legacy work around for vdpau interoperation with OpenGL.
If you select inerop YUV, vdpau video video mixer is bypassed for progressive material. Means that YUV-RGB conversion is done by OpenGL instead of vdpau. This improves performance on less powerfull systems. Video options like vdpau noise reduction will disappear from the video settings.

Regardless of which options is selected set your TV to full range.
find quote
cowfodder Offline
Fan
Posts: 386
Joined: Jan 2010
Reputation: 2
Post: #3
(2012-08-05 12:05)FernetMenta Wrote:  Regardless of which options is selected set your TV to full range.

I respectfully disagree. The REC.709 colorspace (the standard for HD content) is limited range RGB with definitions for CMY and luminance values. Setting to full range, especially if on a non-calibrated display, will typically result in overly saturated primaries and incorrect secondaries. If the display is a plasma there is also an increased risk of burn-in damage, due to white defaulting to super-white, instead of normal white (255 instead of 235.) There is a common misconception that setting to a limited color space will limit the number of shades displayed. This is incorrect. Setting to limited will only tell the TV that it should be using the correct range, 15 for black and 235 for white, and includes the super-black and super white shades (0-14 and 236-255.)

Source: 5 years as an ISF certified TV calibrator.

[Image: watched-clearlogo.jpg]
find quote
FernetMenta Online
Team-XBMC Member
Posts: 1,630
Joined: Jul 2010
Reputation: 34
Location: Munich
Post: #4
XBMC checks for e.g REC.709 and does conversion to full range.

EDIT: For VDPAU this means you have to activate VDPAU Studio level
(This post was last modified: 2012-08-05 17:15 by FernetMenta.)
find quote
cowfodder Offline
Fan
Posts: 386
Joined: Jan 2010
Reputation: 2
Post: #5
(2012-08-05 17:13)FernetMenta Wrote:  XBMC checks for e.g REC.709 and does conversion to full range.

EDIT: For VDPAU this means you have to activate VDPAU Studio level

Finally, a good explanation of what the "Studio Level Color Conversion" does. I did not know that. Thank you.

[Image: watched-clearlogo.jpg]
find quote
sdsnyr94 Offline
Fan
Posts: 422
Joined: Aug 2009
Reputation: 1
Location: Greensboro, NC
Post: #6
(2012-08-05 17:13)FernetMenta Wrote:  XBMC checks for e.g REC.709 and does conversion to full range.

EDIT: For VDPAU this means you have to activate VDPAU Studio level

I believe, with all the work you have done/are doing regarding VDPAU, that you may be the best person to finally clear up this issue for me.

On a Plasma TV, which xorg.conf setting is best - "ColorSpace" "YCbCr444" with no VDPAU Studio Level,
or "ColorSpace" "RGB" set to "Full" with VDPAU Studio Level ?

My system is an ION1 connected HDMI to TV.....

I see a whole lot of conflicting information, both here and on Openelec's forum, regarding this issue.... so much so that I believe I read that Openelec went to YCbCR444 as their default a while back.

Also, thanks for the info on your new settings.. I had been looking around for what those affected also.
find quote
PatrickVogeli Offline
Fan
Posts: 532
Joined: Jul 2010
Reputation: 6
Location: Cambrils, Tarragona (Catalonia)
Post: #7
Yeah, now that we have both FernetMenta and cowfodder here, we may finally know which settings are the best!

Ok, in my ION system, it seems clear that I have to enable RGB interop AND studio level correction. What about colorspace? We let it at RGB as by default, correct?

In my TV, HDMI level should be set to full range, what about colorspace? I can set it to auto, itu.601 or itu.709, what should it be set to?

And last, but not least, until now, I always disabled studio level correction because it was impossible to me to set the tv propertly. I use some basic Test disc found at AVSforum, with which you can adjust your tv to see some black/grey flashing bars on black background (brightness) and some white/grey ones on white background (to adjust contrast). But, if I remember fine, when I use that I always see all the black/grey bars, even with ridiculous amount of brightness, and with white it's even worse. And, of course, there's the problem with non vdpau material: setting the system for vdpau material with those corrections, will make non-vdpau material too dark and you loose lots of details.

Any ideas?

Thanks for your help! That could make it to the definitve thread of how to properly set up the nvida systems with modern TVs!
(This post was last modified: 2012-08-06 12:03 by PatrickVogeli.)
find quote
cowfodder Offline
Fan
Posts: 386
Joined: Jan 2010
Reputation: 2
Post: #8
(2012-08-06 04:12)sdsnyr94 Wrote:  
(2012-08-05 17:13)FernetMenta Wrote:  XBMC checks for e.g REC.709 and does conversion to full range.

EDIT: For VDPAU this means you have to activate VDPAU Studio level

I believe, with all the work you have done/are doing regarding VDPAU, that you may be the best person to finally clear up this issue for me.

On a Plasma TV, which xorg.conf setting is best - "ColorSpace" "YCbCr444" with no VDPAU Studio Level,
or "ColorSpace" "RGB" set to "Full" with VDPAU Studio Level ?

My system is an ION1 connected HDMI to TV.....

I see a whole lot of conflicting information, both here and on Openelec's forum, regarding this issue.... so much so that I believe I read that Openelec went to YCbCR444 as their default a while back.

Also, thanks for the info on your new settings.. I had been looking around for what those affected also.

It seems to me, with the info from FernetMenta, that YCC444 and no VDPAU Studio correction and Full RGB with Studio correction would give roughly the same results for HD material. Since most SD isn't touched by VDPAU (I think) it might be off.

(2012-08-06 12:02)PatrickVogeli Wrote:  Yeah, now that we have both FernetMenta and cowfodder here, we may finally know which settings are the best!

Ok, in my ION system, it seems clear that I have to enable RGB interop AND studio level correction. What about colorspace? We let it at RGB as by default, correct?

In my TV, HDMI level should be set to full range, what about colorspace? I can set it to auto, itu.601 or itu.709, what should it be set to?

And last, but not least, until now, I always disabled studio level correction because it was impossible to me to set the tv propertly. I use some basic Test disc found at AVSforum, with which you can adjust your tv to see some black/grey flashing bars on black background (brightness) and some white/grey ones on white background (to adjust contrast). But, if I remember fine, when I use that I always see all the black/grey bars, even with ridiculous amount of brightness, and with white it's even worse. And, of course, there's the problem with non vdpau material: setting the system for vdpau material with those corrections, will make non-vdpau material too dark and you loose lots of details.

Any ideas?

Thanks for your help! That could make it to the definitve thread of how to properly set up the nvida systems with modern TVs!

Well, the TV setting depends largely on what you're watching. itu.601 is the NTSC standard, itu.709 is ATSC HD standard. As far as the issue you've had with test discs, maybe try setting xorg to YCC444 and disabling VDPAU correction. I've still not had the chance to do a definitive test on all the various combinations, and since my entire collection is in formats that are handled by VDPAU I've just gone with the studio corrected settings. Again, I'll have to see if I can find the time to test all the combinations.

[Image: watched-clearlogo.jpg]
find quote
FernetMenta Online
Team-XBMC Member
Posts: 1,630
Joined: Jul 2010
Reputation: 34
Location: Munich
Post: #9
XMBC output is RGB full range for GUI and video. Setting gfx to YUV makes no sense. You just convert back and forth. Currently vdapu stuio level determines color space by size of video. I will change this to obsering tags provided by ffmpeg in case we can trust them.
find quote
PatrickVogeli Offline
Fan
Posts: 532
Joined: Jul 2010
Reputation: 6
Location: Cambrils, Tarragona (Catalonia)
Post: #10
Definitely yes, enabling studio level means for vdpau material means I need different settings (brightness and contrast) for vdpau enabled material and non vdpau one, which is quite of inconvenient.

FernetMenta, any help on that one? Why is that way?

PD: I think I got it... VDPAU studio level converts the blu ray material to full range rgb while standard def non vdpau is output as is.. correct? If that's so... why don't we disable any vdpau color processing and adjust the display that way? That is, to itu 709 and limited hdmi black levels, which should be the same for nearly all video material. Sure the xbmc interface woukd be displayed differently (crushed blacks, grey whites maybe?), but at least all videos woukd share the same tv settings and should look fine, wouldn't they?
(This post was last modified: 2012-08-07 22:17 by PatrickVogeli.)
find quote
Post Reply