Log in

View Full Version : Combining chroma and luma from 2 different video streams


alexh110
3rd July 2010, 00:27
Hi all!

I have a couple of video streams, and would like to extract the chroma from one stream and combine it with the luma from the other stream.
I wondered whether this is possible with AviSynth (or Virtual Dub)?

At the moment both streams are in the form of 24-bit RGB bmp sequences with 576p resolution.
So I guess I need to convert them to YUV, then combine the Y from one sequence with the U and V from the other.

Any help would be much appreciated.

Gavino
3rd July 2010, 00:33
Yes, convert to YUV (YUY2 or YV12), then use MergeChroma() or MergeLuma().
http://avisynth.org/mediawiki/Merge

Use ImageSource (http://avisynth.org/mediawiki/ImageSource)() to convert the bmp sequences to clips.

alexh110
3rd July 2010, 02:16
Thanks that worked perfectly!