Home
RecentChanges

Search:

» AviSynth is a powerful video FrameServer for Win32.

AviSynth Links:
»Download
»Learn to script
»FAQ
»Manual
»Discussion fora
»Project page
»External filters
»FeedBack

» You can add pages to this website immediately. No login required.
Edit this document

» AboutAviSynth

 

Avisynth 
Logo

Swap

( Diese Seite in flag-germany.gif Deutsch )

SwapUV(clip clip)

UToY(clip clip)

VToY(clip clip)

YToUV(clip clipU, clip clipV [, clip 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 the decoders. 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.

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. 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.

Example:

#Blurs the U chroma channel

video = Colorbars(512, 512).ConvertToYV12

u_chroma = UToY(video).blur(1.5)

YtoUV(u_chroma, video.VToY)

MergeLuma(video)

SourceForge Logo

 


Edit this document | View document history
Document last modified Thu, 21 Aug 2003 17:47:51