user2976: I have an mp4 using h264 that i'm using in the background of a website. It has to blend in with the background image. I've already created ogv and webm videos for firefox and chrome and these work fine but the mp4 for safari doesn't blend properly. The only difference i see in the files is that the ogv, webm and original mov are all in sRGB color space, but the mp4 is in SDTV NTSC Y'CbCr. I've tried lots of different exporters but the mp4 is always in this colorspace. How do i get the mp4 in sRGB colorspace?
adam

user2836: h.264 always uses Y'CbCr as the color space.  Y'CbCr should be able to match the space pretty closely, but you might have to use a 4:4:4 instead of the simplified 4:2:2.  4:2:2, which is most commonly used, lacks a lot of the color resolution and might be why you are seeing the differences.
I can't guarantee it will allow a perfect match, but it should get you much closer.

user26140: mp4 in sRGB colorspace can be of at least 4 types, first it is possible to have RGB (RGB identity matrix) tagged as sRGB transfer and primaries (BT.709 primaries are used in sRGB, so you MUST tag the file as that). That can be full range and limited range. Second is YCbCr, you can use BT.709 or BT.601 matrix. One should use BT.601 matrix for sRGB as it is how it is specified in the IEC standard, even though BT.709 matrix is better than BT.601 for BT.709 primaries as BT.709 matrix is derived from BT.709 primaries. As for range full range is what should be used, even though video is everywhere limited range, so...

user3295: You are currently probably using the Rec. 601 color space for SD video. Encode your source footage in the Rec. 709 color space.  It's the color space specified for HDTV and comes sRGB quite close.
If you need higher color accuracy you can use the Rec. 2020 color space which exceeds the sRGB color space by far. Though compatibility may not be given everywhere with this color space.

2976: <p>I have an mp4 using h264 that i'm using in the background of a website. It has to blend in with the background image. I've already created ogv and webm videos for firefox and chrome and these work fine but the mp4 for safari doesn't blend properly. The only difference i see in the files is that the ogv, webm and original mov are all in sRGB color space, but the mp4 is in SDTV NTSC Y'CbCr. I've tried lots of different exporters but the mp4 is always in this colorspace. How do i get the mp4 in sRGB colorspace?</p>

<p>adam</p>
 2836: <p>h.264 always uses Y'CbCr as the color space.  Y'CbCr should be able to match the space pretty closely, but you might have to use a 4:4:4 instead of the simplified 4:2:2.  4:2:2, which is most commonly used, lacks a lot of the color resolution and might be why you are seeing the differences.</p>

<p>I can't guarantee it will allow a perfect match, but it should get you much closer.</p>
 26140: <p>mp4 in sRGB colorspace can be of at least 4 types, first it is possible to have RGB (RGB identity matrix) tagged as sRGB transfer and primaries (BT.709 primaries are used in sRGB, so you MUST tag the file as that). That can be full range and limited range. Second is YCbCr, you can use BT.709 or BT.601 matrix. One should use BT.601 matrix for sRGB as it is how it is specified in the IEC standard, even though BT.709 matrix is better than BT.601 for BT.709 primaries as BT.709 matrix is derived from BT.709 primaries. As for range full range is what should be used, even though video is everywhere limited range, so...</p>
 3295: <p>You are currently probably using the <a href="http://en.wikipedia.org/wiki/CCIR_601" rel="nofollow noreferrer">Rec. 601</a> color space for SD video. Encode your source footage in the <a href="http://en.wikipedia.org/wiki/Rec._709" rel="nofollow noreferrer">Rec. 709</a> color space.  It's the color space specified for HDTV and comes sRGB quite close.
If you need higher color accuracy you can use the <a href="http://en.wikipedia.org/wiki/Rec._2020" rel="nofollow noreferrer">Rec. 2020</a> color space which exceeds the sRGB color space by far. Though compatibility may not be given everywhere with this color space.</p>
