Kodi Community Forum
Colorspace conversion (pc<>tv) 0-255 => 16-235 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: Colorspace conversion (pc<>tv) 0-255 => 16-235 (/showthread.php?tid=63026)

Pages: 1 2


Colorspace conversion (pc<>tv) 0-255 => 16-235 - athloni - 2009-12-01

Since more and more people use XBMC for Linux or Windows on a TV. This feature is nessecary.

By default VDPAU uses PC RGB levels (0-255 range), this is good for your typical PC monitors, but TV's are usually calibrated for different levels (black at 16 and white at 235). Using PC levels with a TV expecting studio levels result in poor black and white levels (crushed).

This could be fixed by changing the contrast and brightness default value, but obviously this isn't ideal.

Another issue is that HD videos uses a different colorspace than SD (ITU BT.709 vs ITU BT.601). VDPAU by default uses BT601, so all colours with HD videos are actually wrong ; they would be shifted, slightly under or over saturated. This is particularly noticeable with skin tones.

So ideally, you would want to use BT601 colorspace for SD videos and BT709 for HD videos.


- ashlar - 2009-12-01

athloni Wrote:Since more and more people use XBMC for Linux or Windows on a TV. This feature is nessecary.

Is it possible to make a setting for 0-255 -> 16-235 colorspace conversion in xbmc?
Isn't that handled by drivers usually? I know it's a function present in MPC-HC and other players... just never figured out why. Huh


- donabi - 2009-12-01

i thought, that the "correct to studio colour" (or something like this) in videosettings does exactly that.

i don't use it on plasma-tv.


- elupus - 2009-12-01

if somebody searches, i've posted the exact brightness/contrast setting to achive that. (don't remember right now) it will only affect video playback thou, but that is the most important.


- athloni - 2009-12-01

elupus Wrote:if somebody searches, i've posted the exact brightness/contrast setting to achive that. (don't remember right now) it will only affect video playback thou, but that is the most important.

I Know, But I would like to use these settings for the UI and foto's as well.
I think XBMC realy needs this option for critical users.


- athloni - 2009-12-01

athloni Wrote:I Know, But I would like to use these settings for the UI and foto's as well.
I think XBMC realy needs this option for critical users.

More info: http://www.audioholics.com/tweaks/calibrate-your-system/hdmi-black-levels-xvycc-rgb

ticket: http://trac.xbmc.org/ticket/5019


- athloni - 2009-12-03

The video shaders in fact already have support for rendering inside 16-235 however there is no interface or option to actually enable it. Definitely worth adding IMHO.


- mason - 2009-12-03

+1


- bleze - 2009-12-03

enabling this for vdpau makes my image much much brighter. black turns rather light grey


- athloni - 2009-12-04

bleze Wrote:enabling this for vdpau makes my image much much brighter. black turns rather light grey

How did you enable it?

I found this on antother forum. Will this make it possible to add it to the XBMC Live version?

Quote:VDPAU by default use PC levels for RGB (0-255), most TV use studio levels (16-235).

Feeding PC levels to a TV expecting sRGB will result in crushed blacks and whites.

I've added a patch to change the color levels to match your TV, as well as adding HDTV colorspace.

Few choices:
* Update to trunk >= SVN#22431
* Install that patch http://svn.mythtv.org/trac/ticket/7307
* Use my trunk daily repository, it has it compiled in (http://www.avenard.org/media)
* Wait for mythbuntu weekly build to update trunk (though my understanding is that they move to 0.22-fixes branch)

To use it, edit the video playback profile and add the following line for the "Custom Filters" entry:
studio,colorspace=0



- athloni - 2009-12-07

elupus Wrote:if somebody searches, i've posted the exact brightness/contrast setting to achive that. (don't remember right now) it will only affect video playback thou, but that is the most important.

You mean these settings as a workaround?
Quote:For video playback you can actually accomplish it with brightness and contrast controls.

Brightness: 56.27 ~= 56
Contrast: 42.94 ~= 43

That should give you rgb values in the range 16-235, and with no removal of blacker than black



- athloni - 2009-12-24

Colorspace option is needed in the User interface settings!

Who is smart enough to code it for the upcomming versions of XBMC?


- athloni - 2009-12-28

Any updates for this issue?


- kortina - 2009-12-29

I have just found this thread, I agree with the proposed changes.

I run XBMCLive on a 46" Plasma, I think that my set is fairly well calibrated.

After installing Camelot (XBMCLive), I find that I can harly see the alternate menu options on the home screen. This makes the interface a little less intuative than PM3.HD as new users to my lounge room may not see the extra menu items.

I believe that adjusting the settings proposed here would fix this issue.

BTW - 9.11 on my Win7 PC on a 19" Wide LCD looks perfect with the menu items

PS - Thanks again to all those who have coded on 9.11, It is turning into a VERY slick product. I just cant wait for the PVR stuff!


- athloni - 2009-12-29

kortina Wrote:I have just found this thread, I agree with the proposed changes.

I believe that adjusting the settings proposed here would fix this issue.

Adjusting settings only fixes video, not the user interface.