View Full Version : colormatrix conversions


Jom
22nd April 2008, 11:08
Hi.

Im converting some avi's to dvd and am using the addborders() function to get the height up to 480.

If I playback the avs, the added borders are lighter than the rest of the black areas on the screen. I'm guessing that this is because the default color matrix is rec601 (or something else that sets the minimum luma=16)

If i
converttorgb()
converttoyv12(matrix="pc.601")

the borders are solid black.

However, colormatrix() cannot convert to pc.601 , i.e.
colormatrix(mode="rec601->pc.601")
(or so it seems) and I cannot converttoyv12(matrix="pc.601") without converttorgb() first

Does anyone know a way to set the minimum luma to 0 in a YV12 colorspace without converting to RGB 1st ?

colormatrix(mode="rec601->rec709",scaling=2) doesn't darken the added borders for some reason, though from the doc, it appears that this is what i should be doing.

Thanks

John

IanB
22nd April 2008, 22:40
You really should not be using PC levels if you are making a DVD that you want to be compatible in all players.

But you can build your own AddBorders by using StackVertical() and StackHorizontal() with an appropriate BlankClip() using the color_yuv option to directly spec the YUV colour values....
Border=BlankClip(Last, height=16, color_yuv=$008080) # PC.601 Black
StackVertical(Border, Last, Border)

Jom
23rd April 2008, 23:37
Awesome.

thanks Ian.

time to hack the FAVC avisynth plugins