SwapUV
(clip)UToY
(clip)VToY
(clip)
YToUV (clipU, clipV [, clipY])
These four filters are available starting from v2.5.
SwapUV
swaps chroma channels (U and V) of a clip. Sometimes the colors are distorted (faces blue instead of red, etc) when loading a DivX or MJPEG clip in AviSynth v2.5, due to a bug in DivX (5.00-5.02). You can use this filter to correct it.
UToY
copies chroma U plane to Y plane, the resulting image is now half as big. All color (chroma) information is removed, so the image is now greyscale.
Likewise VToY
copies chroma V plane to Y plane, the resulting image is now half as big. All color (chroma) information is removed, so the image is now greyscale.
YToUV
puts the luma channels of the two clips as U and V channels. Image is now twice as big, and luma is 50% grey. Use MergeLuma
, if you want to add luma values.
Starting from v2.51 there is an optional argument clipY which puts the luma channel of this clip as the Y channel.
Starting from v2.53 they also work in YUY2.
# Blurs the U chroma channel video = Colorbars(512, 512).ConvertToYV12 u_chroma = UToY(video).blur(1.5) YtoUV(u_chroma, video.VToY) MergeLuma(video)
$Date: 2006/12/15 19:29:25 $