Here you are my test using your script - what is wrong?return ColourLikeFBF(bd,dvd)
function ColourLikeFBF(clip c1, clip c2)
{ # Color-matches c1 to c2, frame by frame.
# Assumes c1 and c2 are the same length and are
# both compatible with ColourLike.
global c1 = c1
global c2 = c2
return c1.ScriptClip("""
ca = c1.Trim(current_frame, -1)
cb = c2.Trim(current_frame, -1)
ca.WriteHistogram("hist1.txt", 1)
cb.WriteHistogram("hist2.txt", 1)
ca.ColourLike("hist1.txt", "hist2.txt")
""")
}
Watching frame by frame, I got the following errors messages appearing at the top of the screen, one frame every when colourlike doesn't work and display the original BD colors:Evaluate: System exception - Access Violation
([ScriptClip], line 4)
or
Evaluate: System exception - Access Violation
([ScriptClip], line 4)
the histogram files are not written, too. Can you help me, please?