[FFmpeg-user] cropdetect and the round parameter

Moritz Barsnick barsnick at gmx.net
Fri Apr 10 21:53:30 CEST 2015

On Fri, Apr 10, 2015 at 14:42:05 -0500, Matt Zagrabelny wrote:
> Empirical data suggests the latter.

So does the algorithm. My quick experiments confirm this.

In the filter's source, this algorithm applies to both width and

        shrink_by = w % s->round;
        w -= shrink_by;
        x += (shrink_by/2 + 1) & ~1;

So, yes, w(idth) and in another section h(eight) get reduced or


P.S.: I ran across a different "bug" though, albeit a complete corner

More information about the ffmpeg-user mailing list