[FFmpeg-user] question about displace filter

Paul B Mahol onemda at gmail.com
Sat Nov 18 20:37:41 EET 2017

On 11/18/17, Michael Koch <astroelectronic at t-online.de> wrote:
> In the documentation for the displace filter is written:
> "The second input specifies how much to displace pixels along the
> x-axis, ..."
> If I understand this right, a video input file is "misused" for storing
> the displacement (instead of brightness). Does that mean that only
> positive displacements are possible?

No, value stored in pixels is 0 - 255.

One just substract each possible value with 128 and now you have [-128, 127].

More information about the ffmpeg-user mailing list