vinujan
30th April 2010, 21:21
i'm trying to apply different strengths to a range of frames, i've got grey borders on the left and right side of the picture.
By using tweak(cont=), i've made them unnoticeable but there are certain frames where i have to change the strength of tweak(cont=)
script
a=ffmpegsource2("c:\tbd.mkv")
global r_tweak_cont = 2.2
global l_tweak_cont = 2.0
c1=crop(a,1918,0,0,0).tweak(cont=r_tweak_cont).conditionalreader("c:\right_cont.txt","r_tweak_cont").converttorgb24().crop(1,0,0,0)
e1=overlay(a,c1,x=1919)
g1=crop(e1,0,0,2,0).tweak(cont=l_tweak_cont).conditionalreader("c:\left_cont.txt","l_tweak_cont").converttorgb24().crop(0,0,1,0)
overlay(e1,g1)
Spline36Resize(1280,720)
right_cont.txt
type float
default 2.2
r 5141 5278 2.0
r 18205 18248 2.8
left_cont.txt
type float
default 2.0
r 18205 18248 2.6
the script only returns a clip using global r_tweak_cont and l_tweak_cont values, and not conditionalreader values.
can anyone help? i think i'm using conditionalreader incorrectly
:thanks:
By using tweak(cont=), i've made them unnoticeable but there are certain frames where i have to change the strength of tweak(cont=)
script
a=ffmpegsource2("c:\tbd.mkv")
global r_tweak_cont = 2.2
global l_tweak_cont = 2.0
c1=crop(a,1918,0,0,0).tweak(cont=r_tweak_cont).conditionalreader("c:\right_cont.txt","r_tweak_cont").converttorgb24().crop(1,0,0,0)
e1=overlay(a,c1,x=1919)
g1=crop(e1,0,0,2,0).tweak(cont=l_tweak_cont).conditionalreader("c:\left_cont.txt","l_tweak_cont").converttorgb24().crop(0,0,1,0)
overlay(e1,g1)
Spline36Resize(1280,720)
right_cont.txt
type float
default 2.2
r 5141 5278 2.0
r 18205 18248 2.8
left_cont.txt
type float
default 2.0
r 18205 18248 2.6
the script only returns a clip using global r_tweak_cont and l_tweak_cont values, and not conditionalreader values.
can anyone help? i think i'm using conditionalreader incorrectly
:thanks: