Linux Fernetmenta's vdpau options

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
john.cord Online
Fan
Posts: 393
Joined: Jan 2007
Reputation: 5
Location: Vienna
Post: #11
VDPAU Studio Level ist not what it should be. I tried some test patterns and on my calibrated Plasma it gives me a incorrect image. Without it everything should be normal on a display that can process full RGB like every Panasonic Plasma or Samsung LCD TV...
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,614
Joined: Jul 2010
Reputation: 34
Location: Munich
Post: #12
YUV to RGB conversion has to be done anyhow. Dependent on your setting it happens in different places:

1)
Software decoding (render method != software): done by OpenGL shaders

2
Software rendering: done by a function before rendering

3)
different hw accelerators

For 1) and 2) we have convertion matrices in order to handle the differeent color spaces.

If you don't select vdau studio level conversion, you'll get a standard conversion built into vdpau. Since vdpau does not know about the color space it can't apply the proper conversion matrix.
VDPAU studio level conversion provides a way for advanced applications like XBMC to influence the conversion.

If you observe incorrect colors when vdpau studio level is active, means that the matrices provided to the API are wrong or the colorspace of the input material is not detected right.

As I sayed erlier: Currently colorspace is detected by the dimensions of the inputmaterial SD is assuemed when width < 1000, hd when width > 1000.
With the re-write of vdpau I have also corrected conversion matrices which I think are wrong in current mainline version. This code has not been merged yet.
find quote
john.cord Online
Fan
Posts: 393
Joined: Jan 2007
Reputation: 5
Location: Vienna
Post: #13
Ok. So this means that at the moment the studio level option is broken due to incorrect matrices?

For me the black with studio level on is to bright and without it is perfect... material is AVCHD709 in .mp4 Format (1080p).
find quote
PatrickVogeli Offline
Fan
Posts: 530
Joined: Jul 2010
Reputation: 6
Location: Cambrils, Tarragona (Catalonia)
Post: #14
I have exactly the same feeling! With studio enabled I must set my brightness to very low levels, which wouldn't that bad, but then videos.which don't use aVDPAU are too dark and the dark greys get lost because of incorrect brightness!

I really don't know what we are supposed to do.. I don't quite understand that technical talk
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,614
Joined: Jul 2010
Reputation: 34
Location: Munich
Post: #15
Sorry for confusion. I had a look into the code: vdpau studio level conversion is wrong. Without this option conversion for bt 601 and 709 is done correctly. I think we should remove this option.
find quote
john.cord Online
Fan
Posts: 393
Joined: Jan 2007
Reputation: 5
Location: Vienna
Post: #16
Ok, thats the same result that i got. Good to know! Now its time to get your VDPAU optimizations in the next stable XBMC version.
find quote
PatrickVogeli Offline
Fan
Posts: 530
Joined: Jul 2010
Reputation: 6
Location: Cambrils, Tarragona (Catalonia)
Post: #17
Wow! Now that was a find, wasn't it?

Glad you got sorted it out, keep us up to date! You are doing a great work in getting nvidia+linux better Smile
find quote
lrusak Offline
Fan
Posts: 384
Joined: Sep 2011
Reputation: 3
Location: Canada
Post: #18
Any updates here?

"PPC is too slow, your CPU has no balls to handle HD content." ~ davilla

[Image: watched-clearlogo.jpg]
find quote
john.cord Online
Fan
Posts: 393
Joined: Jan 2007
Reputation: 5
Location: Vienna
Post: #19
Updates of what?
find quote
Hack_kid Offline
Fan
Posts: 567
Joined: Jan 2007
Reputation: 2
Post: #20
set this in xorg.conf

ColorRange "Limited"

problem solved this is what FernetMenta told me to do this is RGB but with the limited mode 16 black 235 white but still RGB i have this setting and everything i watch has the right black levels. trust me a stuggled for a long time with this issue as my tv is hooked up thorugh a AVR so i have to keep my video settings on my tv to also match my directv receiver which puts on out in yuv so my TV has to stay on the limited mode (known as hdmi Low) without this setting my xbmc would have crushed blacks and really bright wihtes unless i switched to HDMI normal which effectivly changes the tv to look for full range rgb which worked but then when i switched inputs it was a nightmare so i used the YcpBr444 setting which WORKED but limited gives a beter picture IMO probably because of what fernet said about coverting back in forth. so in conclusing MY question is? should i have interop YUV on or just RGB (sorry for typeos damn new keyboard)
find quote