fray
6th January 2006, 15:25
Hi,
I've got this problem to solve
I've got a directory full of frames I fixed manually in JPG format.
And I read them all into a clip using
fixframeclip = ImageSource("<path>\fix%05d.jpg", 0, 26703, 25)
Now fixframeclip has all corrected frames and many black ones.
All black frames seem to have an AverageLuma() of 16.
Fixing would work like this:
ConditionalFilter(finalclip, original, fixframeclip , "AverageLuma()", "equals", "16")
But this is very slow. Is there a faster way to identify black frames that
also works with very dark frames in fixframeclip?
I've got this problem to solve
I've got a directory full of frames I fixed manually in JPG format.
And I read them all into a clip using
fixframeclip = ImageSource("<path>\fix%05d.jpg", 0, 26703, 25)
Now fixframeclip has all corrected frames and many black ones.
All black frames seem to have an AverageLuma() of 16.
Fixing would work like this:
ConditionalFilter(finalclip, original, fixframeclip , "AverageLuma()", "equals", "16")
But this is very slow. Is there a faster way to identify black frames that
also works with very dark frames in fixframeclip?