Shakespeare in Love

From luvBB
Jump to navigation Jump to search
LoadPlugin("D:\Encode\DG\x64 Binaries\DGDecodeNV.dll")
DGSource("D:\encode\shakespeare.dgi")
crop(2,128,-2,-130).FillMargins(0,1,0,0)
#########################################################################

ConditionalFilter(last, logo, "SceneType", ">", "1")
ConditionalFilter(last, main, "SceneType", "<", "2")
ConditionalFilter(last, main2, "SceneType", "<", "3")
ConditionalReader("D:\encode\Scenes.txt", "SceneType")

#########################################################################

function logo(clip c) {

safe = c.Crop(0, 12, 0, -12)
c.ConvertToYV24()
 
base1 = Crop(0, 12, 0, 0)
 
t1 = Crop(0, 0, 0, 1 - Height())
t2 = Crop(0, 1, 0, 2 - Height())
t3 = Crop(0, 2, 0, 3 - Height())
t4 = Crop(0, 3, 0, 4 - Height())
t5 = Crop(0, 4, 0, 5 - Height()).Tweak(cont=2.11)
t6 = Crop(0, 5, 0, 6 - Height()).Tweak(cont=1.01)
t7 = Crop(0, 6, 0, 7 - Height()).Tweak(cont=0.94)
t8 = Crop(0, 7, 0, 8 - Height()).Tweak(cont=1.06)
t9 = Crop(0, 8, 0, 9 - Height()).Tweak(cont=1.03)
t10 = Crop(0, 9, 0, 10 - Height()).Tweak(cont=0.99)
t11 = Crop(0, 10, 0, 11 - Height()).Tweak(cont=1.02)
t12 = Crop(0, 11, 0, 12 - Height()).Tweak(cont=1.03)
StackVertical(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, base1)
 
base2 = Crop(0, 0, 0, -12)
 
b1 = Crop(0, Height() - 1, 0, 0)
b2 = Crop(0, Height() - 2, 0, -1)
b3 = Crop(0, Height() - 3, 0, -2)
b4 = Crop(0, Height() - 4, 0, -3).Tweak(cont=1.83)
b5 = Crop(0, Height() - 5, 0, -4).Tweak(cont=1.03)
b6 = Crop(0, Height() - 6, 0, -5).Tweak(cont=0.97)
b7 = Crop(0, Height() - 7, 0, -6).Tweak(cont=1.03)
b8 = Crop(0, Height() - 8, 0, -7)
b9 = Crop(0, Height() - 9, 0, -8)
b10 = Crop(0, Height() - 10, 0, -9)
b11 = Crop(0, Height() - 11, 0, -10)
b12 = Crop(0, Height() - 12, 0, -11)
StackVertical(base2, b12, b11, b10, b9, b8, b7, b6, b5, b4, b3, b2, b1)
 
ConvertToYV12()
 
Overlay(last, safe, x=0, y=12)

return last
}

#########################################################################

function main(clip c) {

safe = c.Crop(0, 8, 0, -8)
c.ConvertToYV24()
 
base1 = Crop(0, 8, 0, 0)
 
t1 = Crop(0, 0, 0, 1 - Height()).Tweak(cont=1.06)
t2 = Crop(0, 1, 0, 2 - Height()).Tweak(cont=1.06)
t3 = Crop(0, 2, 0, 3 - Height()).Tweak(cont=0.92)
t4 = Crop(0, 3, 0, 4 - Height()).Tweak(cont=1.04)
t5 = Crop(0, 4, 0, 5 - Height()).Tweak(cont=0.97)
t6 = Crop(0, 5, 0, 6 - Height()).Tweak(cont=1.01)
t7 = Crop(0, 6, 0, 7 - Height()).Tweak(cont=0.98)
t8 = Crop(0, 7, 0, 8 - Height()).Tweak(cont=1.01)
StackVertical(t1, t2, t3, t4, t5, t6, t7, t8, base1)
 
base2 = Crop(0, 0, 0, -8)
 
b1 = Crop(0, Height() - 1, 0, 0).Tweak(cont=1.09)
b2 = Crop(0, Height() - 2, 0, -1).Tweak(cont=0.95)
b3 = Crop(0, Height() - 3, 0, -2).Tweak(cont=1.06)
b4 = Crop(0, Height() - 4, 0, -3).Tweak(cont=0.99)
b5 = Crop(0, Height() - 5, 0, -4).Tweak(cont=1.03)
b6 = Crop(0, Height() - 6, 0, -5).Tweak(cont=0.99)
b7 = Crop(0, Height() - 7, 0, -6).Tweak(cont=1)
b8 = Crop(0, Height() - 8, 0, -7).Tweak(cont=1)
StackVertical(base2, b8, b7, b6, b5, b4, b3, b2, b1)
 
ConvertToYV12()
 
Overlay(last, safe, x=0, y=8)

return last
}

#########################################################################

function main2(clip c) {

safe = c.Crop(0, 12, 0, -12)
c.ConvertToYV24()
 
base1 = Crop(0, 12, 0, 0)
 
t1 = Crop(0, 0, 0, 1 - Height()).Tweak(cont=1.2)
t2 = Crop(0, 1, 0, 2 - Height()).Tweak(cont=1.2)
t3 = Crop(0, 2, 0, 3 - Height()).Tweak(cont=1.07)
t4 = Crop(0, 3, 0, 4 - Height())
t5 = Crop(0, 4, 0, 5 - Height()).Tweak(cont=1.12)
t6 = Crop(0, 5, 0, 6 - Height()).Tweak(cont=1.01)
t7 = Crop(0, 6, 0, 7 - Height()).Tweak(cont=1.03)
t8 = Crop(0, 7, 0, 8 - Height())
t9 = Crop(0, 8, 0, 9 - Height())
t10 = Crop(0, 9, 0, 10 - Height())
t11 = Crop(0, 10, 0, 11 - Height())
t12 = Crop(0, 11, 0, 12 - Height())
StackVertical(t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, base1)
 
base2 = Crop(0, 0, 0, -12)
 
b1 = Crop(0, Height() - 1, 0, 0).Tweak(cont=1.45)
b2 = Crop(0, Height() - 2, 0, -1).Tweak(cont=1.07)
b3 = Crop(0, Height() - 3, 0, -2).Tweak(cont=0.95)
b4 = Crop(0, Height() - 4, 0, -3).Tweak(cont=1.05)
b5 = Crop(0, Height() - 5, 0, -4).Tweak(cont=0.98)
b6 = Crop(0, Height() - 6, 0, -5)
b7 = Crop(0, Height() - 7, 0, -6)
b8 = Crop(0, Height() - 8, 0, -7)
b9 = Crop(0, Height() - 9, 0, -8)
b10 = Crop(0, Height() - 10, 0, -9)
b11 = Crop(0, Height() - 11, 0, -10)
b12 = Crop(0, Height() - 12, 0, -11)
StackVertical(base2, b12, b11, b10, b9, b8, b7, b6, b5, b4, b3, b2, b1)
 
ConvertToYV12()
 
Overlay(last, safe, x=0, y=12)

return last
}

#########################################################################

Fixer(4,3,4,0)