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 17th June 2013, 23:50   #1  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,244
xvYCC in x264 or other encoders?

Say,

Is there support for encoding H.264 with xvYCC in x264 or other generally available H.264 encoders?

http://en.wikipedia.org/wiki/XvYCC

It may just be a matter of setting a metadata flag correctly, as long as the encoder doesn't clamp the chroma range or something.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 18th June 2013, 00:10   #2  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 713
There is some sort of undocumented SEI in AVCHD for setting xvYCC
kieranrk is offline   Reply With Quote
Old 18th June 2013, 02:45   #3  |  Link
drmpeg
Registered User
 
Join Date: Jan 2003
Location: Silicon Valley
Posts: 458
Quote:
Originally Posted by kieranrk View Post
There is some sort of undocumented SEI in AVCHD for setting xvYCC
Isn't it just a matter of setting transfer characteristics = 11 in the VUI?

Doesn't look like it's supported in the current version of x264.

Ron
__________________
HD MPEG-2 Test Patterns http://www.w6rz.net
drmpeg is offline   Reply With Quote
Old 18th June 2013, 10:50   #4  |  Link
kabelbrand
Compression mode: Lousy
 
kabelbrand's Avatar
 
Join Date: Mar 2009
Location: Hamburg, Germany
Posts: 73
Quote:
Originally Posted by drmpeg View Post
Doesn't look like it's supported in the current version of x264.
There was a patch adding BT.2020 to the Colour Primaries a few days ago.
One of the newly added Transfer Characteristics was IEC 61966-2-4:
http://mailman.videolan.org/pipermai...ne/010127.html
kabelbrand is offline   Reply With Quote
Old 19th June 2013, 19:23   #5  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,244
Quote:
Originally Posted by kabelbrand View Post
There was a patch adding BT.2020 to the Colour Primaries a few days ago.
One of the newly added Transfer Characteristics was IEC 61966-2-4:
http://mailman.videolan.org/pipermai...ne/010127.html
Nice! I hope it makes it into a release build soon.

Was Rec 2020 included too? A guy can dream ...

http://en.wikipedia.org/wiki/Rec._2020
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 19th June 2013, 19:37   #6  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,549
Yes, as kabelbrand said:
Quote:
Originally Posted by kabelbrand View Post
There was a patch adding BT.2020 to the Colour Primaries a few days ago.
--colormatrix now goes up to 10, --transfer up to 15 and --colorprim up to 9. (dev commit)
Each corresponding to the values in the updated H.264 spec.
sneaker_ger is offline   Reply With Quote
Old 19th June 2013, 20:28   #7  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,244
Quote:
Originally Posted by sneaker_ger View Post
Yes, as kabelbrand said:


--colormatrix now goes up to 10, --transfer up to 15 and --colorprim up to 9. (dev commit)
Each corresponding to the values in the updated H.264 spec.
So it is! But the 10-bit version without the expanded luma range, of course, which requires 12-bit.

I see xvYCC is in there as well: IEC 61966-2-4.

I look forward to doing some tests in the next few weeks!
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 19th June 2013, 21:44   #8  |  Link
drmpeg
Registered User
 
Join Date: Jan 2003
Location: Silicon Valley
Posts: 458
Quote:
Originally Posted by benwaggoner View Post
So it is! But the 10-bit version without the expanded luma range, of course, which requires 12-bit.
All the BT.2020 permutations have been included in the patch.

transfer characteristics = 14, "bt2020-10" /* 10-bit */
transfer characteristics = 15, "bt2020-12" /* 12-bit */

matrix coefficients = 9, "bt2020nc" /* non-constant luminance */
matrix coefficients = 10, "bt2020c" /* constant luminance */

Ron
__________________
HD MPEG-2 Test Patterns http://www.w6rz.net
drmpeg is offline   Reply With Quote
Old 19th June 2013, 21:49   #9  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,549
Quote:
Originally Posted by benwaggoner View Post
I look forward to doing some tests in the next few weeks!
So, what is there to test? It's just a flag, isn't it?
sneaker_ger is offline   Reply With Quote
Old 19th June 2013, 22:01   #10  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 3,244
Quote:
Originally Posted by sneaker_ger View Post
So, what is there to test? It's just a flag, isn't it?
End-to-end from source to encode to player to screen, making sure it does what it is supposed to do and I can see the expanded xvYCC gamut colors.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 19th June 2013, 22:14   #11  |  Link
jq963152
Registered User
 
Join Date: Apr 2012
Posts: 691
Quote:
Originally Posted by benwaggoner View Post
Quote:
Originally Posted by kabelbrand View Post
There was a patch adding BT.2020 to the Colour Primaries a few days ago.
Nice! I hope it makes it into a release build soon.

Was Rec 2020 included too? A guy can dream ...

http://en.wikipedia.org/wiki/Rec._2020

AFAIK, BT.2020 is the same as Rec. 2020, isn't it ?
jq963152 is offline   Reply With Quote
Old 21st June 2013, 15:49   #12  |  Link
Biggiesized
Registered User
 
Biggiesized's Avatar
 
Join Date: Apr 2007
Location: Pittsburgh, PA
Posts: 232
I never understood why xvYCC couldn't be shoe-horned into Blu-ray when the format was launched coincidentally with the spec.

I think Sony is doing something with xvYCC now, but it's particular to using a Sony Blu-ray player and Sony HDTV.
Biggiesized is offline   Reply With Quote
Reply

Tags
gamut, hdr, xvycc

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 04:59.


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