lisztfr9
25th October 2012, 14:01
Hi,
I can't really see why the z = AverageLuma() line isn't working, since "last" argument is implicit, and such a syntax can also be fund here :
http://avisynth.org/mediawiki/Internal_functions/Runtime_functions
Examples:
threshold = 55
luma = AverageLuma()
Here is my code, it works with version(). The other source is simply the test video from VD, Pulldown TTF, deinterlaced.
video=AviSource("C:\Documents and Settings\main\Desktop\OBALDIA.vdr").ConvertToYV12()
/*
Version() ConvertToYV12() # Generate a test clip
video = last
*/
# Split the clip in 2 parts, displaying luma on each.
w = width(video)
h = height(video)
# z = AverageLuma()
A = video.crop(0, 0, -w/2, 0)
A = A.ScriptClip(" Subtitle(String(AverageLuma())) ")
B = video.crop(w/2, 0, 0, 0)
B = B.ScriptClip(" Subtitle(String(AverageLuma())) ")
A=A.AddBorders(0, 0, 4, 0, $FFFF00)
StackHorizontal(A, B)
FadeIn(20)
trim(1, 500)
TIA, L
I can't really see why the z = AverageLuma() line isn't working, since "last" argument is implicit, and such a syntax can also be fund here :
http://avisynth.org/mediawiki/Internal_functions/Runtime_functions
Examples:
threshold = 55
luma = AverageLuma()
Here is my code, it works with version(). The other source is simply the test video from VD, Pulldown TTF, deinterlaced.
video=AviSource("C:\Documents and Settings\main\Desktop\OBALDIA.vdr").ConvertToYV12()
/*
Version() ConvertToYV12() # Generate a test clip
video = last
*/
# Split the clip in 2 parts, displaying luma on each.
w = width(video)
h = height(video)
# z = AverageLuma()
A = video.crop(0, 0, -w/2, 0)
A = A.ScriptClip(" Subtitle(String(AverageLuma())) ")
B = video.crop(w/2, 0, 0, 0)
B = B.ScriptClip(" Subtitle(String(AverageLuma())) ")
A=A.AddBorders(0, 0, 4, 0, $FFFF00)
StackHorizontal(A, B)
FadeIn(20)
trim(1, 500)
TIA, L