patrick_cgn
2nd November 2006, 16:44
Hi all,
I have a lot of AVI Files with black frames before and after the content. Instead of trimming them by entering the frame numbers manually I'm trying to write a script which does this automaticaly (returning only non-black frames).
The detection of black frames itself is quite easy, ConditionalFilter(video, Subtitle(video, "BLACK!!!"), video, "AverageLuma()", "lessthan", "20") does it fine. But I want to remove them instead of only detecting them. So I've been trying for hours with FrameEvaluate() - without success :-(
Please help.
Best, Patrick
I have a lot of AVI Files with black frames before and after the content. Instead of trimming them by entering the frame numbers manually I'm trying to write a script which does this automaticaly (returning only non-black frames).
The detection of black frames itself is quite easy, ConditionalFilter(video, Subtitle(video, "BLACK!!!"), video, "AverageLuma()", "lessthan", "20") does it fine. But I want to remove them instead of only detecting them. So I've been trying for hours with FrameEvaluate() - without success :-(
Please help.
Best, Patrick