MrPete
30th December 2014, 19:26
As I understand it, the RoboCrop filter assumes black borders (with optional ignored rows/columns on the edgets), and seeks "inward" to find the edge of the crop.
I'm dealing with captured film that's quite a bit more complicated. AFAIK this is totally normal... On a per-edge basis it could be any of:
1) Normal black border: black from edge to scene
2) Already no border: the good material goes right to the edge
3) Black border containing several variable lines of white (think right side of film where the lamp spills out along the edge of the film)
4) Misc-then-border-then-scene (think top or bottom of a film capture, where the previous/next frame is visible, then there's a black separator bar between frames)
5) Clear edge up to a narrow black frame around the scene
6) The hardest (?) to robo-find: left side of film which has both border and sprocket holes that are always clear/white
6a) #6 with black border
6b) #6 with clear edge to narrow black frame
7) Manual setting: top/bottom where there's actually no border at all... just two overlapping scenes.
An example (already somewhat cropped -- normally there would be more to the left/right):
http://www.ds.org/files/avisynth/blown%20highlights%20blue.jpg
This is case #2 on top, #3 on right, #4 on bottom, #6 on left.
My first puzzle: could a different and simple method find the crop edges more simply by starting in the middle of the frame and working OUTwards?
If not, how many of these scenarios could be automated? For now, I assume the user would predetermine which case applies to each edge... (maybe a negative number is the manual crop value for case #7?)
Seems like a potentially interesting but more difficult challenge to identify which is which. I'm not sure I want to try to get my head around that :)
I'm dealing with captured film that's quite a bit more complicated. AFAIK this is totally normal... On a per-edge basis it could be any of:
1) Normal black border: black from edge to scene
2) Already no border: the good material goes right to the edge
3) Black border containing several variable lines of white (think right side of film where the lamp spills out along the edge of the film)
4) Misc-then-border-then-scene (think top or bottom of a film capture, where the previous/next frame is visible, then there's a black separator bar between frames)
5) Clear edge up to a narrow black frame around the scene
6) The hardest (?) to robo-find: left side of film which has both border and sprocket holes that are always clear/white
6a) #6 with black border
6b) #6 with clear edge to narrow black frame
7) Manual setting: top/bottom where there's actually no border at all... just two overlapping scenes.
An example (already somewhat cropped -- normally there would be more to the left/right):
http://www.ds.org/files/avisynth/blown%20highlights%20blue.jpg
This is case #2 on top, #3 on right, #4 on bottom, #6 on left.
My first puzzle: could a different and simple method find the crop edges more simply by starting in the middle of the frame and working OUTwards?
If not, how many of these scenarios could be automated? For now, I assume the user would predetermine which case applies to each edge... (maybe a negative number is the manual crop value for case #7?)
Seems like a potentially interesting but more difficult challenge to identify which is which. I'm not sure I want to try to get my head around that :)