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. |
|
|
Thread Tools | Search this Thread | Display Modes |
13th August 2013, 15:25 | #1 | Link |
Registered User
Join Date: Aug 2010
Location: Paris
Posts: 52
|
Different values for color primaries, transfer, and matrix coefficients ?
Hi,
According to http://mewiki.project357.com, here is the meaning of some x264 parameters :
As far as I understand, a "color matrix" is a set of coefficients used to convert YUV color values to RGB (e.g. to display video on screen), and vice versa. Different sets of coefficients have been standardized ; most of the time SD video uses BT.601 / BT 470 B,G coefficients, while HD video uses BT.709. But, on some H.264 streams, these parameters can have differents values. Example from one of my Canon DSLR's MOV files : Code:
Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.601 Last edited by ganymede; 13th August 2013 at 15:30. |
13th August 2013, 16:59 | #2 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,900
|
I don't know the answer but if there's a reason for it I'd be interested to fins out.
Handbrake/Vidcoder does a similar thing when re-encoding DVD video. It sets the Colour Primaries and Matrix Coefficients to BT.601 and the Transfer Characteristics to BT.709. I asked about it in the Vidcoder thread but didn't get a response. |
14th August 2013, 01:37 | #3 | Link | ||
Retried Guesser
Join Date: Jun 2012
Posts: 1,373
|
BT.601 and BT.709 compatibility benchmark
Quote:
Color coefficients and Colormatrix usage summary Quote:
EDIT (to answer your question) I think the settings get mismatched when the encoder fails to explicitly set all three parameters, leaving those not set to either their previous or default values. Last edited by raffriff42; 14th August 2013 at 02:48. |
||
14th August 2013, 10:15 | #4 | Link | ||
Registered User
Join Date: Apr 2010
Location: Sain-Petersburg, Russia
Posts: 139
|
Quote:
Recommendations BT.601 and BT.709 use same definition for transfer characteristics, h.262 and h.264 don't have different coding for it, they both define only BT.709. Also this coding is more than similar to sRGB definition. So, BT.709 for transfer characteristics is absolutely correct. Recommendation BT.601 defines 2 possibilities for color primaries. One (for PAL) is similar to Recommendation ITU-R BT.470-2 System B, G. Another one (NTSC) is similar to SMPTE 240M (1987). Strictly said they are not compatible with sRGB, that is computer can't correctly show these colors. So in digital world old color primaries are not being widely used. As standards h.262 and h.264 allow separate coding for color matrix and color primaries it's ok to mix values from different origins. So, setting color primaries to BT.709 is valid, even though it might be incorrect for some weird sources captured in original BT.601 color primaries (but it's the responsibility of capturer to set color primaries correctly in this case). Quote:
For computer processing/presentation it will end up in sRGB in fact instead of BT.709 RGB. Strictly said they are different, but difference was judged to be non-significant during sRGB development. |
||
16th August 2013, 00:46 | #5 | Link | |
Registered User
Join Date: Aug 2010
Location: Paris
Posts: 52
|
@raffriff42 and Warperus : thank you for your very informative answers.
Quote:
As practical consequences, when editing this kind of footage, am I safe to assume that :
|
|
16th August 2013, 02:31 | #6 | Link |
Retried Guesser
Join Date: Jun 2012
Posts: 1,373
|
>I'm under the impression that colors were more "right" on my calibrated monitor when displayed as a BT.601
There you go, this confirms to me that "Matrix coefficients: BT.601" is valid, and the other flags are not *as* significant. Why 601 and not 709 in HD? To indulge in wild speculation, Canon may may chosen to keep Rec.601 for historical reasons, to be compatible with their own and existing 3rd party decoders. |
Tags |
color, matrix, primaries, transfer |
Thread Tools | Search this Thread |
Display Modes | |
|
|