[FFmpeg-devel] [PATCH] lavfi: add bbox filter

Michael Niedermayer michaelni at gmx.at
Tue Mar 13 17:32:35 CET 2012

On Tue, Mar 13, 2012 at 10:19:56AM +0100, Nicolas George wrote:
> Le duodi 22 ventôse, an CCXX, Stefano Sabatini a écrit :
> > Uhm... extend the ffprobe writers API?
> Actually, I do not know.
> > Indeed. Now I could drop support to chroma bbox detection or I could
> > extend the calculate_bounding_box() function to keep two values
> > (min_val and max_val), or check if the value is != null_value (I
> > adopted this variant).
> I am not sure, but I believe testing only luminance is the best course for
> now: after all, very dark is very dark, even if it is very dark saturated
> red.

I think the best would be to choose a good model for black and one
for actual content and then choose the box so as to maximize some
mathcing score of the models. But this is something for after
commiting the filter IMHO


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120313/5a7b9252/attachment.asc>

More information about the ffmpeg-devel mailing list