Log in

View Full Version : Colour Conversion using Sony Vegas, Debug Frameserver to CCE


Jonaldinho
2nd July 2012, 15:13
Hi, I normaly use this script to import an encoded avi to CCE SP 2.67:

LoadPlugin("O:\MeGUI\tools\avisynth_plugin\Convolution3DYV12.dll")
DirectShowSource("M:\Video.avi", audio=false).AssumeBFF()
ConvertToYV12(interlaced=true)
separatefields()
vid_e=selecteven()
vid_o=selectodd()
vid_e=convolution3d(vid_e,0,12,22,12,16,2.8,0)
vid_o=convolution3d(vid_o,0,12,22,12,16,2.8,0)
interleave(vid_e,vid_o)
weave()
ConvertToYUY2(interlaced=true)

I'm trying to import the Sony Vegas Pro 10 project into CCE without having to encode to an AVi first. When I use this script the colour or levels looks a bit wrong, a bit brighter, misty, paler etc.
I frameserve in RGB24 but i've tried in YUY2 as well, tried deleting the Convert to YV12 line in the script but I get the same problem.

Does anybody know how to import the Sony Vegas project to CCE 2.67 while retaining the same colour and levels? I have searched but couldn't find this is exact problem. Thanks

poisondeathray
2nd July 2012, 15:30
use pc matrix when you convert back to YV12; you're probably using "Studio RGB" levels in vegas, or use studio to computer RGB filter in vegas

ConvertToYV12(interlaced=true, matrix="PC.601")

Jonaldinho
2nd July 2012, 17:58
Thanks, i've already tried adding matrix="PC.601" but i couldn't see a difference, i'll try converting to computer levels in Vegas.

nhope
3rd July 2012, 01:05
Maybe you need matrix="PC.601" in the final line also.

ConvertToYUY2(interlaced=true, matrix="PC.601")

In CCE, make sure to pick "Advanced video setting..." and select Luminance 0-255. This is what I do in CCE Basic.

Jonaldinho
5th July 2012, 14:12
I've realised adding matrix="PC.601" did make a difference but the colours aren't the same as the original AVI, they're slightly different. Exactly the same when converting the levels in Vegas to computer levels. CCE wouldn't open the script adding:
ConvertToYUY2(interlaced=true, matrix="PC.601")
Encoding to DV then encoding the DV to MPEG2 results in the colours being the same so I know it's possible. I would just do that instead but there's a worse problem encoding to DV first, I get interlacing artifacts only when encoding to DV :/ I posted about it on creativecow's forum.
http://forums.creativecow.net/thread/24/940009

poisondeathray
5th July 2012, 14:22
One reason is avisynth's PC matrix isn't exactly the same thing as StudioRGB (it's close, but the numbers for the calculations are different)

StainlessS mentioned an old StudioRGB function by Trevlac at the end of the thread (but I havent' tried it)

http://forum.doom9.org/showthread.php?t=164981


Why didn't CCE open the script? Can vdub open the script ? What was the exact error message? Post your script