Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th October 2012, 17:31   #1  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,738
Real-world support for full range and greater color depths

I am doing some playing around with 0-255 luma range and 10-bit encoding.

I was wondering how good real-world player support is for those modes. I know that there are certaninly good software players for those. But how about GPU accelerated playback? Or ASIC-based playing in living room and handheld devices?

I imagine 0-255 is more broadly supported, since it's part of the original profiles. I know there's been plenty of talk about 10-bit support in ASICs, but I'm not sure if those are in the wild yet, or if the devices's media software will support correct playback of those if provided with files in Hi10P. Let alone Hi422P or Hi444PP.

So, can anyone offer any tips for what players and devices are or are not known to work? I'd love to be able to see what kind of quality differences I can get outside of computer monitors.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 11th October 2012, 05:51   #2  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,986
I'm not aware of a single consumer grade hardware player.

There are plenty of hardware players for the pro market, but even those are few and far between in my experience. AVC-Intra is about the only common implementation I'm aware of...
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 11th October 2012, 15:48   #3  |  Link
vivan
/人 ◕ ‿‿ ◕ 人\
 
Join Date: May 2011
Location: Russia
Posts: 643
I could be wrong, but xvYCC looks like fullrange and AVCHD supports it (and there are a lot of players that support it)...
vivan is offline   Reply With Quote
Old 11th October 2012, 17:38   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,738
Quote:
Originally Posted by Blue_MiSfit View Post
I'm not aware of a single consumer grade hardware player.
You mean for the 10-bit and higher profiles?

I'd think that there should certainly players out there that can handle High Profile using a 0-255 luma range. Or is even that not broadly supported?


Quote:
Originally Posted by vivan View Post
I could be wrong, but xvYCC looks like fullrange and AVCHD supports it (and there are a lot of players that support it)...
Link?

I'm sure that plenty of things that can play AVCHD out over HDMI can use xvYCC, but I don't believe the AVCHD bitstream itself can be anything beyond 8-bit 4:2:0. So it'd have to use post-decode upsampling in the player itself.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 18th June 2013, 21:27   #5  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,738
--range full needed for xvYCC?

Quote:
Originally Posted by vivan View Post
I could be wrong, but xvYCC looks like fullrange and AVCHD supports it (and there are a lot of players that support it)...
Coming back to this some months later.

Are you saying that xvYCC would require --range pc and not --range tv?

My understanding of xvYCC is that it wouldn't have luma our of the 16-235 range. But does it need --range pc in order to allow the broader chroma range for xvYCC?

It seems like we'll need the xvYCC flag for playback to not get black levels wrong in this case.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 19th June 2013, 10:42   #6  |  Link
kabelbrand
Compression mode: Lousy
 
kabelbrand's Avatar
 
Join Date: Mar 2009
Location: Hamburg, Germany
Posts: 72
http://www.sony.net/SonyInfo/technol.../xvycc_01.html
Quote:
With 8-bit quantization of luminance and color-difference signals, definition formula are set and the color gamut is expanded by using values between 1 and 15 and between 241 and 254 as picture signals. Definitions over 8 bits are also used to support precise gradation.
My understanding is that besides using luma and chroma values outside of the TV range you would still set the encoder to TV range for compatibilty with non-xvYCC devices.
This is assuming the encoder does not clip the input levels to TV and encodes the full range. I think x264 handles it this way as long as input and output range are the same.
kabelbrand is offline   Reply With Quote
Old 19th June 2013, 16:57   #7  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,217
Although there are some GPU's that support vxvYCC colour, they need to be connected to a display device that also supports vxvYCC... And currently these are only manufactured by Sony
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
SeeMoreDigital is offline   Reply With Quote
Old 24th June 2013, 18:00   #8  |  Link
kabelbrand
Compression mode: Lousy
 
kabelbrand's Avatar
 
Join Date: Mar 2009
Location: Hamburg, Germany
Posts: 72
I had a quick look at the histogram of the "Mastered in 4K" Ghostbusters BD and levels seem to be within the regular video range!? This is not what I expected...
kabelbrand is offline   Reply With Quote
Old 11th October 2012, 19:02   #9  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,986
Right. I'm sure any hardware player could PLAY full range, but whether it would display it correctly is another story entirely

In any case, I have no experience in this matter whatsoever!
__________________
These are all my personal statements, not those of my employer :)
Blue_MiSfit is offline   Reply With Quote
Old 13th October 2012, 13:05   #10  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
Full range has no effect on the bitstream. The only difference is that with TV range, the "contrast" of the image is bad, and there's a flag that says whether this should be compensated for or not.
I can imagine some players just ignoring this flag and automatically compensating for it even if they shouldn't, so the blacks and whites will be crushed in the final displayed image, but it will be decoded correctly in any case.
ajp_anton is offline   Reply With Quote
Old 25th June 2013, 23:37   #11  |  Link
paradoxical
Guest
 
Posts: n/a
Quote:
Originally Posted by jq963152 View Post
But then it's not a Blu-ray Disc ?
Sure it is. Hence the Blu-Ray logo and Sony calling them "Mastered in 4K Blu-Ray titles".

SONY PICTURES HOME ENTERTAINMENT ANNOUNCES "MASTERED IN 4K" BLU-RAY TITLES TIMED WITH SONY 4K TVs

Last edited by paradoxical; 25th June 2013 at 23:41.
  Reply With Quote
Old 25th June 2013, 23:42   #12  |  Link
paradoxical
Guest
 
Posts: n/a
Quote:
Originally Posted by jq963152 View Post
If the official Blu-ray Disc specifications do not allow xvYCC encoded video, then how can a disc containing xvYCC encoded video be a Blu-ray Disc?
It doesn't disallow it.
  Reply With Quote
Old 25th June 2013, 23:50   #13  |  Link
paradoxical
Guest
 
Posts: n/a
Quote:
Originally Posted by jq963152 View Post
So xvYCC encoded video is guaranteed to be fully backwards-compatible with all Blu-ray Disc players?
Yes the discs are compatible with all players you just get regular gamut if it doesn't support xvYCC.
  Reply With Quote
Old 26th June 2013, 20:29   #14  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,738
Quote:
Originally Posted by paradoxical View Post
Yes the discs are compatible with all players you just get regular gamut if it doesn't support xvYCC.
So how does it work then? The extended primaries get truncated or something? Or is it some kind of an enhancement layer? Multiple encodes?

I suppose it's time to transcend whatever latent remnants of HD DVD bitterness I have and pay more attention to Blu-ray .
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 26th June 2013, 20:31   #15  |  Link
paradoxical
Guest
 
Posts: n/a
Quote:
Originally Posted by benwaggoner View Post
So how does it work then? The extended primaries get truncated or something? Or is it some kind of an enhancement layer? Multiple encodes?
I don't think anyone has analyzed a stream yet to know exactly. I assume it's some form of custom signaling or metadata that their players can read and is ignored by others. There's no way it can be multiple encodes when the other point of these discs are to increase the average bitrate.
  Reply With Quote
Old 26th June 2013, 20:33   #16  |  Link
paradoxical
Guest
 
Posts: n/a
To add from here:

Quote:
Other Blu-rays have been sourced from a 4K master, so what’s the big deal with these? A few things. First, the video bitrate has been upped considerably to ensure a solid, artifact-free picture: The new, Mastered in 4K Spider-Man maintains a steady 35 Mbps, as compared with the high-20 Mbps bitrate typical with other discs, including the 2012 Spider-Man Blu-ray. (Unfortunately, the increased video data rate means there’s no space for extra stuff like features and commentary tracks.) Second, Mastered in 4K discs incorporate something Sony calls Expanded Color, which otherwise goes by the name x.v.Color or xvYCC. To briefly sum up, discs with x.v.Color incorporate data describing colors outside the standard Rec.709 HDTV color space. When a Mastered in 4K disc is played on an x.v.Color-compatible BD player (according to Sony, only its own player line plus the PlayStation 3 can reliably be called compatible) and displayed on a TV capable of x.v.Color reproduction — Sony’s new W900A series HDTVs (look for my review in the June/July/August issue of Sound&Vision) and XBR-X900A Series 4K Ultra HD TVs, for example — you get the option to view this expanded range. And displaying it shouldn't involve any shift in the TV’s color points — the disc simply instructs the TV to “retrieve” those extra colors without distorting the set’s overall color balance.
There's not a whole lot of specifics though from what I've seen.
  Reply With Quote
Old 26th June 2013, 21:43   #17  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,738
Quote:
Originally Posted by paradoxical View Post
To add from There's not a whole lot of specifics though from what I've seen.
There really aren't.

The only obvious way I see for them to do what they're doing would be to have a stock Rec. 709 encode and then some kind of enhancement later that added the (relatively small delta) of xvYCC data. Since it's mostly in chroma, that wouldn't be that many samples and they can be quantized quite coarsely. Perhaps using something like Scalable Video coding. I'd think the PS3 would likely have the horsepower to do something like this.

I am now very intrigued by this!

Also, other than Sony BD players, are there any known devices capable of xvYCC playout? It seems support is way more common in TV than it is in any way to play back the content. Can decoders internal to the TVs do the right thing with xvYCC bitstream?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 26th June 2013, 23:00   #18  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
From what I understand Sony use the 1-15 and 241-254 chroma values to represent higher saturation colours. When you do the normal YUV->RGB translation you can end up with normalised colour values less then 0.0 or greater than 1.0, normal decoders clamp these values, advanced decoders map these values into a wider gamut colour space. The luma range is still 16-235.
IanB is offline   Reply With Quote
Old 26th June 2013, 23:14   #19  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,738
Quote:
Originally Posted by IanB View Post
From what I understand Sony use the 1-15 and 241-254 chroma values to represent higher saturation colours. When you do the normal YUV->RGB translation you can end up with normalised colour values less then 0.0 or greater than 1.0, normal decoders clamp these values, advanced decoders map these values into a wider gamut colour space. The luma range is still 16-235.
That makes sense. But if chroma is getting clamped at those values, I worry we'll see posterization of chroma levels when the extended colors get clamped. A gradient of "very red" could turn into a flat area of just red without any detail. If there is some texture in the luma channel that might mask things, but still. It seems like it would be hard to make a "best of both worlds" encode like this.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 27th June 2013, 01:25   #20  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
The out of gamut high saturation colours considered here would have been clamped in normal processing anyway, either by the source camera and/or the display device. The system just gives the opportunity to not clamp the very saturated colours when a high gamut source and display are available.
IanB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:33.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.