I have uploaded to https://www5.zippyshare.com/v/Z7LXwrny/file.html a video that gives automatic crop some problems.
Dunno if the black is not really black or what.
[SOLVED] Automatic crop not working with this
Re: Automatic crop not working with this
It's not really black. And there is a green tinge along the left border, and a red one along the right, that would force you to manually crop even if I revised the threshold for black.
Re: Automatic crop not working with this
A bad digital conversion indeed.
Very nice eyes you have to see the green and red. I did not notice at first sight.
Re: Automatic crop not working with this
My eyes aren't so great. I had changed the threshold for testing and it removed the "black", but it made the tinges jump out at me. Then I zoomed in with my magnifier app.
Re: Automatic crop not working with this
Sure, why not.
Re: Automatic crop not working with this
Wouldn't manually adjusting the black threshold effectively be the same as using the manual adjustment for crop, only with all the trial and error required to get the proper result?
Re: Automatic crop not working with this
I suppose the argument would be that you can set a preferred threshold once, set and forget, whereas your approach would have to be done for every video. My choice of threshold was pretty arbitrary and Guest 2's file is not that far off. Another thing I could do is just raise the threshold for non-black. Still thinking about it...
Re: Automatic crop not working with this
I find that if I pick a frame with high contrast the threshold is accurate probably 95% of the time or better
Re: Automatic crop not working with this
Raised the non-black threshold to 24 from 16. This solves the issue in a simple way.