|
|
#13 | |
|
Registered User
Join Date: Feb 2009
Posts: 138
|
It should be possible to support this from VDPAU by using custom color space conversion (CSC) matrices. See the VdpVideoMixer documentation. It shouldn't be that hard.
Maybe you can file a bug report with XBMC? |
|
|
|
|
|
|
#14 | |
|
Registered User
Join Date: Aug 2009
Posts: 2
|
That would then only work for video rendering through VDPAU. Viewing photos or other formats would not benefit from it. That's why option C in post 7 would be the best solution as you really want to output everything in video levels when the HDTV expects that.
|
|
|
|
|
|
|
#15 |
|
Registered User
Join Date: Feb 2009
Posts: 138
|
Of course, I'm aware of that. However, doing it the way I suggested will work *now* and without any help or updates from NVidia. And if I remember correctly video playback is most relevant here.
|
|
|
|
|
|
#16 | |
|
Registered User
Join Date: Dec 2008
Posts: 19
|
I started having real problems with the PC levels. My receiver upconverts analog sources to video level RGB. My Blu-ray player gives best image quality with video RGB. I would like to use video RGB for my HD DVD player too.
To have everything connected to my receiver and only one HDMI going from receiver to monitor I had to start patching. Attached is a patch for MPlayer's VDPAU video output. I've added a parameter "studio" to switch to video level output. PC levels are used by default. There was no support for BT.709, so HD colors were always a bit wrong. I've added simple auto detection based on video resolution and parameter "colorspace" to choose manually. The improvement is easy to see in skin tones. Image eq controls do not work with studio levels. I was concerned about getting the colors right, so I left the eq out of the conversion matrix. Anyone more knowledgeable - feel free to put them back in. The code should be easy to add to OpenGL output too, as I borrowed the CSC matrix building code from there and just modified it to support different colorspaces and levels. Now I just need something like this for MythTV too.. |
|
|
|
|
|
|
#17 |
|
FFmpeg developer
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
|
If you are interested in getting the patch into MPlayer svn:
* All patches go to mplayer-dev-eng. A few restrictions apply to this mailing-list (no top-posting, line length). * We don't like forward declarations: Please move update_csc_matrix() up. * From a quick look, colour spaces and studio are independent: So please send one patch first, then a second one after the first was applied. * Changing default behaviour often is a reason for extra discussion. So I would suggest to make VDP_COLOR_STANDARD_ITUR_BT_601 the default, this may be changed in a subsequent patch. Carl Eugen |
|
|
|
|
|
#18 | |
|
Registered User
Join Date: Dec 2008
Posts: 19
|
Thank you for your advice. I think getting this into svn would be a good thing.
I'll update the patch and post it with some questions when I have a moment. I'd like to add something similar to vo_gl too and I think the eq should probably be fixed. |
|
|
|
|
|
|
#19 | |
|
FFmpeg developer
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
|
Quote:
Thank you for your efforts, they are very welcome, Carl Eugen |
|
|
|
|
|
|
#20 |
|
Registered User
Join Date: Dec 2008
Posts: 19
|
The first patch got thoroughly improved by review on the list, but hasn't yet been accepted into svn.
I've implemented similar functionality for vo_gl too, but it's quite hacky still. It is however possible to get bt.709 and studio level RGB out from it too. I'll attach a patch here in case anybody is interested. Use something like "-vo gl:yuv=2:colorspace=0:studio" for proper colors and studio levels. Here's a sample of the difference using the right color space makes: ![]() |
|
|
|
|
|
#21 |
|
MythTV developer
Join Date: Mar 2006
Posts: 413
|
LauriM, using your code as basis, I added those features to MythTV as well.
You mentioned http://avisynth.org/mediawiki/Color_conversions However, the value for the various colour coefficient that you are using aren't the same. Any particular reasons for this ? |
|
|
|
|
|
#22 | ||
|
Registered User
Join Date: Dec 2008
Posts: 19
|
Quote:
Quote:
|
||
|
|
|
|
|
#23 | |
|
MythTV developer
Join Date: Mar 2006
Posts: 413
|
Quote:
![]() Edit: thinking about it, if someone goes on the trouble to set proper studio level, it's not too play with changing the eq. settings |
|
|
|
|
|
|
#24 | ||
|
Registered User
Join Date: Dec 2008
Posts: 19
|
Quote:
Quote:
I wasn't sure if the vo_gl eq code is ok with studio levels, so I didn't put it in the vo_vdpau. I don't think their eq really matches what monitor settings usually do. I'll see if I have time to work on the patches still. The custom matrix stuff would need some work to use common code with vo_gl and it looks like quite a mess - it doesn't even use its own common code everywhere. ![]() |
||
|
|
|
![]() |
| Thread Tools | |
|
|