Log in

View Full Version : 709 With 601 Matrix in Vegas


~Maidvelia❤~
22nd April 2018, 04:14
With Chrome's inclusion of color-correct rendering by default as of version 62, it seems like all videos in the browser (both YouTube and mp4 files themselves) are using the 709 color space.

This is making videos for Standard Definition games (such as ones on Wii) have slightly incorrect colors.

Here's how the colors look in Chrome:
https://lh3.googleusercontent.com/proxy/t8Pvkgx-DRAILekljG3rrLrRsWkQwY1untBbkrdPQIaNMfo7yxG880lGtwHkRyJZbsU=w5000-h5000

The correct colors should look like this:
https://lh3.googleusercontent.com/proxy/ENzIPriUKEkAvVlrBb8t_IbSfzXkzZEGKrfEo5VKNoZIvJIWqbww8JjcEkozH5kqjvo=w5000-h5000

This is proven by Dolphin Emulator:
https://i.imgur.com/3paKhm7.png

So since that is the case, I figured I'd make the colors even more "off" so that when the color-correct rendering by Chrome happens, I get the lighter greens and darker reds look that the game is supposed to have.

I would use the color space conversion shown in the bottom right quadrant of this picture:
http://www.w6rz.net/barsmatrix.jpg

The result would be something like this as the colors (I got this from OBS since I can mess with color spaces in there):
https://i.imgur.com/v3gP5ux.png

I'm assuming that Chrome would then take the overly messed up color scheme and convert it back to this using 709 in the HTML5 player:
https://lh3.googleusercontent.com/proxy/ENzIPriUKEkAvVlrBb8t_IbSfzXkzZEGKrfEo5VKNoZIvJIWqbww8JjcEkozH5kqjvo=w5000-h5000

Now my question is, how do I make this possible in Vegas? Whenever I mess around with x264 settings it results in me getting the bottom left quadrant (601 with 709 matrix) or the top quadrants (709 with 709/601 with 601) in the bars picture. I want to know how to get 709 with 601 matrix in Vegas since I do not want to use OBS to record SD games, I would rather use the included software with my capture device. I also want to stop using Chrome 61 just to see my videos correctly, and finally update to the latest version.

Any help is appreciated, thank you for reading.

poisondeathray
23rd April 2018, 16:54
There used to be a free LUT plugin and some 601<=>709 cube LUT's you could apply. But I think the plugin is a few $ now
https://www.vegascreativesoftware.info/us/forum/color-space-conversion--104869/
https://vision-color.com/products/lutplugin/

Or, on the export side, you could either use debugmode frameserver, or export a lossless intermediate and then use avisynth or vapoursynth to control the conversion

Or, on the import side, use avfs (avisynth virtual frameserver) to import into vegas. But there is significant overhead with this method (slow)


~Maidvelia❤~
25th April 2018, 02:58
I downloaded the 601vs709luts zip. My version of Vegas seems to have a LUT Filter FX plugin already, I guess it's included by default in 15.

Thank you so much for this information!

poisondeathray
25th April 2018, 03:32
Yes that's it


Now my question is, how do I make this possible in Vegas? Whenever I mess around with x264 settings it results in me getting the bottom left quadrant (601 with 709 matrix) or the top quadrants (709 with 709/601 with 601) in the bars picture. I want to know how to get 709 with 601 matrix in Vegas


You said you were able to get the top quadrants. You do whatever you did to get the top right. (That's the "correct" version for 709 converted to RGB with a 709 matrix.) Then you apply the "Rec709ToRec601" lut. I don't have your version, but I'm assuming you adjust the strength slider. Zero probably means no effect.

But that's within vegas. To export out of vegas, you would have to export a RGB format to have it look identical as what you "see" in the vegas preview. If you export a YUV format, vegas is going to do some type of RGB=>YUV conversion. It might use 709, it might use 601. It might use something else. This is one of the reasons people use something like avisynth to control these types of conversions

poisondeathray
25th April 2018, 03:59
With Chrome's inclusion of color-correct rendering by default as of version 62, it seems like all videos in the browser (both YouTube and mp4 files themselves) are using the 709 color space.


This is a youtube issue. Everything is getting 709 treatment in their HTML5 player. Firefox and Chrome

But locally the MP4 files playback correctly in browser . I verified with testcharts/bars , both SD, HD, 601 and 709



So if you wanted to "trick" youtube into correct SD playback colors, you would need just 709 for SD

But the color will be incorrect if person downloads video, or if youtube fixes it

Another workaround method would be to upscale the video and use 709. Both HD and SD will look correct, and if they download the actual HD video it will be correct

raffriff42
25th April 2018, 04:31
I stumbled upon a solution - some custom Channel Blend presets (link) (https://www.vegascreativesoftware.info/us/forum/color-space-conversion--104869/?page=1)

https://www.dropbox.com/s/cw9w3hhkywfrzkk/Vegas%20ChannelBlend-00.png?raw=1
(some color bars)

https://www.dropbox.com/s/1quvzh9bejq3dzf/Vegas%20ChannelBlend-01_709-601.png?raw=1
(BT.709->BT.601: green+ red-)

https://www.dropbox.com/s/3l95g7w6718ny4w/Vegas%20ChannelBlend-02_601-709.png?raw=1
(BT.601->BT.709: red+ green-)

I can't figure out how to export the presets to file(s) (I'm very new to Vegas), so you'll have to enter them by hand. Here are the numbers from (link) (https://www.vegascreativesoftware.info/us/forum/color-space-conversion--104869/?page=1) for convenient copying and pasting: Red Prince wrote on 12/14/2016, 4:48 AM
my latest 709->601 LUT:
0.9135, 0.0785804, 0.00791956
-0.105163, 1.17244, -0.0672766
0.00959559, 0.0323044, 0.9581

Red Prince wrote on 12/14/2016, 10:07 AM
And here is my 601->709 matrix:
1.0865, -0.072433, -0.014067
0.0966428, 0.844833, 0.0585243
-0.0141401, -0.0277599, 1.0419

~Maidvelia❤~
25th April 2018, 05:36
I stumbled upon a solution - some custom Channel Blend presets (link) (https://www.vegascreativesoftware.info/us/forum/color-space-conversion--104869/?page=1)

https://www.dropbox.com/s/cw9w3hhkywfrzkk/Vegas%20ChannelBlend-00.png?raw=1
(some color bars)

https://www.dropbox.com/s/1quvzh9bejq3dzf/Vegas%20ChannelBlend-01_709-601.png?raw=1
(BT.709->BT.601: green+ red-)

https://www.dropbox.com/s/3l95g7w6718ny4w/Vegas%20ChannelBlend-02_601-709.png?raw=1
(BT.601->BT.709: red+ green-)

I can't figure out how to export the presets to file(s) (I'm very new to Vegas), so you'll have to enter them by hand. Here are the numbers from (link) (https://www.vegascreativesoftware.info/us/forum/color-space-conversion--104869/?page=1) for convenient copying and pasting: Red Prince wrote on 12/14/2016, 4:48 AM
my latest 709->601 LUT:
0.9135, 0.0785804, 0.00791956
-0.105163, 1.17244, -0.0672766
0.00959559, 0.0323044, 0.9581

Red Prince wrote on 12/14/2016, 10:07 AM
And here is my 601->709 matrix:
1.0865, -0.072433, -0.014067
0.0966428, 0.844833, 0.0585243
-0.0141401, -0.0277599, 1.0419


Tried your suggestion using those exact values with channel blend and got exactly the result I'm looking for.

Also for the thread @poisondeathray linked (happens to be the same one you linked), the final version of the 601 and 709 LUTs ZIP had some .mtx files with those values so I can have those on-hand for safekeeping.

Can't show results, the test video is still processing but it's safe to say this is solved. Thank you all so much for the help!

doctorkhv
15th January 2022, 09:13
Is it possible to solve this problem in DaVinci Resolve 17?