MergeRGB
From Avisynth wiki
Revision as of 10:58, 3 October 2017 by Raffriff42 (Talk | contribs)
MergeARGB(clip clipA, clip clipR, clip clipG, clip clipB)
MergeRGB(clip clipR, clip clipG, clip clipB [, string pixel_type ] )
Merge the alpha (transparency) and color channels from the source video clips into the output video clip.
- clip clipA =
- clip clipR =
- clip clipG =
- clip clipB =
- Provide the R, G and B data respectively to merge into the output clip. Input clips may be a mixture of all formats.
- string pixel_type = "RGB32"
- Specifies the output pixel format. Valid values are "RGB32", "RGB24".
- AVS+ also supports "RGB48", "RGB64"
The unused channels of the input clips are ignored. Audio, FrameRate and FrameCount are taken from the first clip.
Examples
# Blur the Green channel only. MPEG2Source("main.d2v") ConvertToRGB24() MergeRGB(Last, Blur(0.5), Last)
# Swap the red and blue channels; # load the alpha from a second source. vid1 = AviSource("main.avi") vid2 = AviSource("alpha.avi") MergeARGB( \ vid2, \ vid1.ShowBlue("YV12"), \ vid1, \ vid1.ShowRed("YV12") \ ) AudioDub(vid1)
Changelog
v2.56 | Initial release. |