Log in

View Full Version : AviSynth colorspace with Sony Vegas Frameserving and MeGUI, YouTube


HulkHoganRules
21st August 2012, 06:43
This post goes over many different topics so placing it was hard. Feel free to move it.

Basically after much deliberation I finally settled on using framserving from Sony Vegas 10 to encoding with x264 and AAC using MeGUI. The final target is YouTube and even though this obviously butchers the video I would still like to supply the correct settings and at least learn something.

I have some 480p content from my Wii I captured in AmarecTV using Huffyuv with YUY2 colorspace.

I have imported and edited the clips in Sony Vegas.

If I'm just doing this alone from Vegas and framserving I have no real issue (480p encoding) but I know that YouTube allows more bitrate to a video when uploading 720p so I have decided to resize the 480p to 720p. This is the main problem.

From what I understand originally my 480p video is BT.601 and when I output a HD file it changes to BT.709. When playing back the resized file from MeGUI you can compare that the colors are all wrong (I took screenshots). This is where things confuse me. In my AviSynth script the only thing I can get working that shows the same colors as my 480p source when encoded at 720p is this function below.

ColorMatrix(interlaced=false, opt=0, mode="Rec.601->Rec.709")

I also forgot to say I am resizing with Spline36.

What I don't get is why making the output 709 gives me the same colorspace as my 480p? Originally I thought the line should be,

ColorMatrix(interlaced=false, opt=0, mode="Rec.709->Rec.601")

but that has color issues just like if I never used ColorMatrix. I know that I never got this problem with x264vfw as that has a "Keep input colorspace" option but can't find one in MeGUI.

I guess the main question for me is, should I even worry about this? Will YouTube even take that colorspace into consideration or should my whole script just include AVISource and then ConvertToYV12() as MeGUI keeps insisting on including that?