Showing posts with label LUT. Show all posts
Showing posts with label LUT. Show all posts

Tuesday, July 26, 2016

Fuji IS-Mini software for colour space conversion

For patch generation and LUT testing the Fuji IS-mini is hard to beat for sub-£1k. LightSpace will drive it for profiling monitors and since it has both HD/SDi and HDMI outputs it is very useful all the way to 1080 lines at 60P.

The software that comes with it is kinda utilitarian but can speak to multiple IS-minis over either USB or ethernet. So you can load LUTs to several units from a single computer and it will even listen to the commands from a Tangent Wave control panel and you have a very canny little grading system (all be with no memory!) - but for live colour correction it is used everywhere from HDR cameras feeding BT.1886 productions to folks who need to correct for unusual cameras in an otherwise standard OB environment.


Having said all that it isn't a patch (pardon!) on LightSpace but they have just released an unlocked beta that feature colour space conversion LUTs which might be of interest to general colour-tinkerers.

From Fuji's site;

The rapid adoption of 4K Rec2020 and the development of HDR has necessitated an increased need for colour space conversions, such as color gamut, various LOG curves and numerous other standards. As requests for products to handle this have increased, FUJIFILM has begun to develop a system for IS-mini users that will allow greater flexibility with colour spaces.

And the obligatory bullet points;
  • Convert the content of Rec709 to Rec2020. 
  • Convert the image data of SLog3 / SGamut shooting to HDR ST2084 / Rec2020. 
  • Convert Legal range to Full range 
  • Convert the image data of the various cameras to SLog3 / Rec2020. etc... 

Grab it here.

Thursday, February 11, 2016

Shooting & editing HDR via Avid using CLog gamma

We've got BVE2016 coming up and one of the things Root6 will be showing is an HDR workflow via Media Composer using Canon monitors.
HDR is still a bit of a crap-shoot as far as standardisation is concerned with the BBC/NHK system, Dolby Vision, Sony's SLog3 and Canon's camera-native CLog. The principle of using an alternate gamma so that you concentrate the bit-depth where you want the extra range is well established;


The hope is that all of these manufacturers will coalesce around ST.2084 which (amongst other things) defines how you handle the specular highlights; those very bright parts of the picture which give a real addition to the look of the pictures. These are typically defined to be >500 Cd/m2 which is MUCH brighter than broadcast white! The idea is that the last bit of dynamic range (10th bit - all values above 512) represent the highlights and everything up to 50% is akin to the usual video dynamic range. You calibrate the monitor such that 50% is set at 100Cd/m2 and just hope that the colourimetry of the highlights tracks RGB-wise!

So - Root6's own Dave Skeggs and I set off around Soho and London Bridge to capture some night time and daytime footage. We were using a Canon C300 mk.2 set to UHD (3840 x 2160) at 25P (no interlaced fields at UHD and no high framerates at that resolution unfortunately). We set the colour space to an optimistic Rec.2020 and gamma to Clog. In that mode the camera shoots 410mBit/s XAVC codec MXF files.
We've been using Media Composer v 8.5 on an HP Z840 workstation & the new Avid/BlackMagic DNXio video hardware; we had to update the firmware to get it to generate quad-link SDi. Although HDMI works it is nobbled down to eight-bit and so would not be suitable for this test. I would put a link to the video but none of the video sharing sites support HDR and neither does the screen of your tablet/laptop/TV! I took all the monitor photos with my Fuji bridge-camera in a very bright office; you'll have to take my word for it!

Notice the headlights of the taxi - you can see details inside the light!


exactly the same frame; notice the dark details in the trees against the night-sky.

 Of course on Media Composer's GUI display you get the CLog gamma rendered as if it was Rec.709 and so it looks very washed out and lacking in detail


You can have Avid flatten the gamma of source clips so that it looks OK on the GUI - that doesn't affect sequences that the clip mas been used in.

 
Quite a large range of alternate gamma and colour spaces

 It shows up in the bin-view which is useful

 
So now clicking the source window and setting the monitor to regular HD gamma (BT. 1886 fact fans) shows you what the same material shot on a "regular" camera would look like; very little detail in the blacks and none in the whites.
 
 Root6's own DOP; Dave "is that in focus?" Skeggs

I'd forgotten how limited a normal video-camera's dynamic range was. The Canon monitors top out the specular highlights at 400Cd/m2 which is somewhat less than a Sony BVM-X300 (1,000 Cd/m2!) but for €10k less than the Sony (and losing only a stop-and-a-half of specular highlights) the Canon 30" UHD/4k IPS panel represents superb value. I was a bit disappointed that the camera tops out at 29.97P at >2k resolution so I couldn't see how nice fluid video motion looked at high res; everything has a jerky film-look to it.
Steve Shaw at Light Illusion has a very good article exploring some of the fundamentals of HDR.

Thursday, December 10, 2015

4k and UHD cabling and signal standards

I've had to dig into signal transport for 4k/UHD over the last week or so. Essentially I have a test-signal generator (SRI Visualizer TG100) running at a maximum raster of 4096x2160 at a maximum of 25 progressive frames/sec (and only 4:2:2 colour sampling; Y, Cr, Cb) with a 6G single-link output (so really 4 x 1.5G links) and HDMI 1.4 (so the same raster as the SDi). The monitors are the 24" and 30" Canon IPS 4k native monitors.
The Canon monitors will take quad-link HD/SDi and (in the case of the 24") HDMI. So, feeding the SRI single-link into a Blackmagic 4k multiplex (to produce quad-link) and then into the Canon produces four quads in the wrong colour-space!


 For an insight into what the multiplex is doing it's worth looking at the two standards for quad-link SDi. Put aside if it's 4 x 1.5G or 4 x 3G (that allows an increase to 50 or 60P OR 4:4:4 colour). But, in this case we're de-mux'ing a 6G to 4 x 1.5G signals. 

The original 4k-over-four-BNCs standard


The more recent standard; each link looks like an HD version

Clearly the converter is producing 2SI but the Canon expects SD quad-link. In fact the guys at Canon tell me they have a firmware update early in 2016 to address this. The other error is that the Canon has mistaken the 4:2:2 video as RGB - but it has at least got the raster correct.
So, what to do? Well, by throwing in another converter and taking the HDMI out of the SRI means the BM mux will get an older SD quad-link input;


This produced what we need; clearly HDMI has not concept of mutliplexed pixels and so we're now fully in SD quad-link;

tugging BNC no.4 shows the monitor is now in quad mode

The monitor gets it all right

The other thing that you have to pay attention to in "True 4k" displays (for the film snobs!) is that feeding 3840x2160 signal into a 4096x2160 monitor and letting the monitor scale-up to fill the line risks killing your resolution;
The aliasing should only the present in the top-most block, the other alias frequencies you can see here are due to my iPhone's camera!

Some very strange aliasing when a 3840-pixel line is mapped to 4096 pixels

As ever with display devices, pixel-pixel (native resolution) is always preferred

Thursday, October 29, 2015

UHD-TV test material; how I'm going to demo monitors

After all the monkeying around with the Canon monitors last week I decided I need a decent variety of clips to show off UHD displays to the best of their ability. For some reason customers are not satisfied with just seeing test signals?!
So - although I have the TG-100 for uncompressed 4k test signals (the Visualiser really shows all you need to know!) and I can show:
  • Resolution
  • Colour Space
  • Temporal performance
  • Dynamic Range
So, I went looking for some well shot UHD footage at the TV 4k raster of 3840x2160 (I know, all you DCI-snobs, "true" (sic) 4k is 4096x2160). The Harmonics site has some nice short uncompressed YUV-planar format videos; http://www.harmonicinc.com/resources/videos/4k-video-clip-center#4k-clip-center - But don't expect your laptop to be able to play these guys! At 12GBits-1 they are monsters and so for ease of use you may want to compress them down to a more manageable 500MBits-1 (or so) using GLYUVPlay which can be found at Henryk Richter's site. In video coding research, standalone implementation and testing of video codecs often involves the use of raw YUV streams. Since these streams can be parsed and generated by very simple means, raw YUV files are very common in video codec standardization and development. 

I have made the H.264 variants and you can find them on my Google Drive folder.

Thursday, October 22, 2015

Canon's 4k Native IPS television monitors

I had an excellent half day with Canon's UK imaging display guys to look at their DP-V series 4k native displays. To my shame I had assumed that they would be like the HP Dreamcolor or Eizo ColorEdge series monitors which are advertised as being suitable for film and TV work but as I've often said; "..an SDi BNC and a preset called Rec.709 does not a broadcast monitor make"!
In the case of those two manufacturers they assume that taking their print-prep graphics display and making it SDi capable is all that's needed; forget proper RGB linearity and a controlled white-point. In the case of the HP they still advertise it at 250Cd/m2 for white (four times what it should be - you can't grade with that) and every time I've had an Eizo to play with I've found the same. Even employing a LUT to tame something like that is a bad idea as having to take 250Cd/m2 down to a more sensible 80Cd/m2 means you've lost two stops (12dBs, two significant bits) of dynamic range; not what anyone wants.
So - native 4k displays using LED-backlit IPS-LCD and not OLED. Every display technology suffers issues and although I think the poor inherent RGB tracking of OLEDs is entirely addressable in a LUT (which is why I love the Boland BVB25 for colour-accurate TV work) OLEDs are noisy once you get very close to black thus limiting their dynamic range (fine for 10-bit TV work; but for 16-bit HDR film imagery, not so much - yet!). Canon has consequently chosen IPS-style LCDs (with a level-modulated LED backlight). The LED backlight is the same technology as that used in the Dolby PRM-4220 grading monitor which is how they achieve the high dynamic range with a possibility of >1000Cd/m2 for specular highlights in HDR 16-bit video. I got to see the originators of this technology, Brightside, back in 2005. 
So, proof of the pudding etc - I profiled the 24" edit suite variant and it was very close to the Rec.709 spec (the fact that I left LightSpace set for a 2.2 gamma whilst the monitor has a true BT.1886 gamma for HD rasters may be to blame). With 4k source material the results look great.

 I started at 2k to see how it did

 At 4k I can only manage 25 FPS at best!

Zooming in on the frequency grating shows aliasing, but only on the camera pics, I couldn't photograph it with my 10Mpix camera without catching aliases in the camera's OTF.

Getting closer gets a bit better, but to the eye the resolution is astounding
 
The Sarnoff ladies at true-4K
 


I profiled the display at 17-points so 5,000 measurements take around two hours with the Klein
 
Looks pretty good for greyscale performance, and I suspect if I set LightSpace's gamma correctly it would be better

The coloured dots are rec.709 and the big cube is the gamut of the display; it covers the colour space nicely.

 

 

Wednesday, July 22, 2015

Typical edit suite monitor calibration; some traps for young players

I spent the morning in a very typical Soho edit room with a JVC DT-V24-series LED-backlit LCD as the "front of house" monitor and an LG LED-backlit LCD as the client display.
It's quite easy to get the JVC looking right - BBC style 6504k for Rec.709; I've waffled on about this a lot in the past, but I had some new encounters (due in some small part to the new version of ChromaSurf; the software I use with the Klein K10A probe).
  • The Klien is a fast photometer, able to make a reading in around a second; this has huge implications for LUT building and it's why when using LightSpaceCMS you can profile a 17-point LUT in less than two hours. Older probes that can take ten seconds when coupled with something like SpectraCAL (which does not have a proper colour-engine, it essentially halves the difference every time is sees a bad colour match) might have your waiting more than a day for the same LUT profile. Being such a fast probe means that in the current release of their software you can do a 32-sample read of very low (i.e. noisey) blacks and get a reasonable figure. 
  • Just because you can read down at sub 1Cd/m2 doesn't mean you should! With LCDs when you get to sub 5% black you actually see more of the colour of the backlight leaking around those little thin-film transistor pixels. This is why I tend to calibrate black level ("Bias" in Sony-speak) around 15% to make sure I'm getting a real read from the pixels.
  • Even if a domestic display claims to have a Rec.709 mode don't believe the hype; this is the abuse I had to land on the display to get this one to match the JVC and for the Klein to be happy.

Monday, March 23, 2015

Poor RGB separation in Plasma TVs and poor Barco broadcast monitors!

I spent a day over the weekend at a customer's facility; they are a large production house with a decent number of edit, grade and audio rooms. An old industry pal has recently become the tech manager there and he's trying to get them up to standard. So - I've been in calibrating monitors and he also asked me to give him an assessment of how easily he could LUT their plasmas to get them to Rec.709.
The first observation is how bad Barco broadcast displays have become! I was very used to them in the eighties at the BBC but the RHDM-2301 is a sorry excuse for a TV monitor.  The marketing material say; 
The RHDM-2301P is the perfect reference monitor for Directors of Photography (DoP) on set during film acquisition, as well as for dailies processing. The Grade-1 color accuracy and stability means that two RHDM-2310P monitors will show identical pictures even on two distant sets.
Which might be the case, but the problem is that they only give you access to adjust the white-point of the monitor (which on these two were both wrong AND different; one was a tad blue, the other a tad red) - the menu tells you what the CIE 1931 color space chromaticity coordinates of D65 are, namely x=0.3127, y=0.3290 but the monitor is not kicking out that colour - it was a bit blue in the white; around x=0.3045 and y=0.3315! This is why monitors tell you what RGB values they are driving and you measure and make the display correct using the x,y,Y values off you photometer or spectralradiometer. For them to tell you what the white point is in terms of x & y and them be wrong is monstrous! They do allow you to tweak the x & y but only in the whites; the monitor is also incorrect in the blacks; greyscale tracking is wrong!
It's also kinda pointless for them to tell you the values of the primaries as well! They can't be adjusted.
So - rant about Barcos over, here are some test results for the cheaper Panasonic 32" plasmas they also had;

Using LightSpace I profiled the display. You can see the gamut of the TV is bigger than Rec.709. The other worry is how bad the RGB separation is. However; after taking a 17-point profile (around 5000 colours) the software reports better than 100% compliance. Good news!

















This is the resulting LUT cube and you can see 709 is entirely contained. There are no tightly packed points anywhere indicating a LUT will make things better.

























So, loading the cube into our ISmini LUT box and re-running;




Monday, February 16, 2015

The Engineer's Bench podcast - "TV Colour 3 - using LUTs for calibration"

Hugh and Phil go over the practice of using a 3D LUT (look up table) to get OLEDs & LCD televisions closer to the Rec.709 gamut.



Find it on iTunes, vanilla RSS, YouTube or the show notes website.

Friday, February 6, 2015

Using a monitor LUT to try and tame domestic TVs for grading rooms

The venerable old Rec.709 colour space was first proposed in 1990 for HD Television and we still work to it today and the assumption is that pro/broadcast monitors will faithfully translate the Y, Cr, Cb data that comes down a video cable to the R, G, B pixels on the display surface.

For a Sony BVM-series monitor merely doing the following will ensure correct 709 operation;
  1. Set the overall black level using PLUGE so that dark areas of the picture are faithfully reproduced.
  2. Set the peak-white of the monitor to around 80Cd/m2
  3. Check the colour of the white point so that it sits as near to 6504 kelvins as possible
  4. Check the 10% grey point for the same colour; track up to peak white and ensure the colour temperature remains constant
  5. Check the saturation by putting the monitor into blue-check mode and match the blue coming through the luminance path to the blue coming via the Cb channel.
  6. Go back and do it all again as the controls interact somewhat.
However - along with the £18k BVM monitor at the front of the grading suite you also expect a high-end domestic TV for the producer and director to look at and of course they don't want to see any differences! So; here are a couple of monitors we profiled today;



Panasonic TX-50AS500B LED-backlit LCD TV















LG 55EC930V-ZA OLED TV


I used the following to profile these two televisions;
Looking at the results would suggest that both displays are almost bang on; in fairness I did try and get them as close as possible using their built in colour-tweaks. The other things to pay attention to is to disable all the dynamic modes; TVs increasingly try and tweak themselves based on picture content or even ambient light and although those things may be great for watching a movie it's hopeless for TV post-production usage. 
It's not just the overall gamut that affects the look of pictures, you have to pay attention to the gamma of the profiles. This is not the same as the 2.2 / 2.4 gamma used between cameras and monitors, rather the relationship between low and high levels for the RGB channels and ideally it should be linear.

LG OLED - although it seems more linear overall it has a strange separation in the blacks.











Panasonic colour gammas - not ideal!  Funny non-linearity in the blacks and poor colour tracking in the mid-tones.









So, once the displays are profiled (it takes around an hour and a half to read the 4900 points that make up a 17-point LUT) you can examine the resulting "cubes" that can be downloaded into the LUT (the Fuji in our case) to make the TV look as close to Rec.709 as possible.

The LG-OLED cube shows that the monitor is capable of displaying almost the entire colour-space but there is a bit of a lump missing from the yellow and the magenta ends. This doesn't mean that those colours aren't available, only that the LUT is having to do the work in transposing the colours in those parts of the gamut with the attendant loss of dynamic range.
Interstingly; that was the first thing the colourist noticed on real pictures "...the magenta in the blacks looks a bit off".





The Panasonic's derived monitor LUT shows a different story; clearly the dynamic range of an LCD is much more modest than the OLED.


To turn the profiles into LUTs you have to use the "convert colour space" in LightSpace. Selection of Peak Luma, or the alternative Peak Chroma, defines the parameters the LUT is generated with - Peak Luma maintains the peak Luminance of white, while Peak Chroma will drop the Luminance if required to prevent colour channel clipping, if the peak Y value of a colour channel is greater than that of whites.

Once converted you can export the LUT in a variety of formats for use in other manufacturer's converters. One nice touch is that if you "select all" LightSpace will write out a folder of LUTs in every format it supports; takes around a minute and means you can hand a USB stick to the customer without any worry of incompatability. 
So - once loaded into the Fuji both TVs were now a darn sight closer to the look of the Sony BVM monitors. The problem is that you're in a dimly lit room with the golden eyes of a highly-paid colourist and it's remarkably difficult to get them to be happy if there are ANY discernible differences. The one chap I was talking to today did finish the conversation with "...still, if you could get a £2k TV to look exactly like an £18k monitor we would never buy £18k monitors!"

Once final point - the client had bought an AJA LUT to use - loading the derived LUT into the AJA looked no different from the Fuji from a colour point of view but it did show banding in the Cr channel - like it is only an 8-bit LUT; I need to chase the further.