Log in

View Full Version : How to use Levels and Tweak on only one piece of splice?


rhinojunk
9th November 2005, 21:51
I have two interlaced (NTSC DV cam) avi files from a wedding. One as ceremony.avi and one as reception.avi. I'm happy with the color and brightness of ceremony.avi, but reception.avi is quite dark, so I want to adjust the gamma, saturation and hue only on that clip. Through some trial and error, I'm happy with the results of:

Levels(0, 1.5, 255, 0, 255)
Tweak(-7,1.5,0,1)

The problem is that I can't seem to get that adjustment to only happen to reception.avi when I splice. It either happens to both clips or neither. I've tried:

ceremony = AviSource("ceremony.avi", pixel_type="yuy2", fourCC="CDVC")
reception = AviSource("reception.avi", pixel_type="yuy2", fourCC="CDVC")

Levels(reception, 0, 1.5, 255, 0, 255)
Tweak(reception, -7,1.5,0,1)

UnalignedSplice(ceremony, reception)

I also tried creating seperate .avs files, one for ceremony (no corrections) and one for reception (with corrections), then loaded them into a master .avs file for splicing like so:

ceremony = AviSource("ceremony.avs")
reception = AviSource("reception.avs")
UnalignedSplice(ceremony, reception)

So, what basic principle am I missing? Thanks!

Guest
9th November 2005, 22:06
ceremony = AviSource("ceremony.avi", pixel_type="yuy2", fourCC="CDVC")
reception = AviSource("reception.avi", pixel_type="yuy2", fourCC="CDVC")

Levels(reception, 0, 1.5, 255, 0, 255)
Tweak(reception, -7,1.5,0,1)

UnalignedSplice(ceremony, reception) This is no good because the output of Levels is in the 'last' variable but the Tweak call takes 'reception'. And then the output of Tweak is in 'last' but your splice call takes 'reception'. Try this:

ceremony = AviSource("ceremony.avi", pixel_type="yuy2", fourCC="CDVC")
reception = AviSource("reception.avi", pixel_type="yuy2", fourCC="CDVC")

reception=Levels(reception, 0, 1.5, 255, 0, 255)
reception=Tweak(reception, -7,1.5,0,1)

UnalignedSplice(ceremony, reception) There are many ways; this is just one way.

rhinojunk
9th November 2005, 22:53
That was it, and I understand where I went wrong now. Thanks so much for the quick response!