FFmpeg 5.0.3
Since* 4.2
#

Shift R/G/B/A pixels horizontally and/or vertically.

The filter accepts the following options:

rh

Set amount to shift red horizontally.

rv

Set amount to shift red vertically.

gh

Set amount to shift green horizontally.

gv

Set amount to shift green vertically.

bh

Set amount to shift blue horizontally.

bv

Set amount to shift blue vertically.

ah

Set amount to shift alpha horizontally.

av

Set amount to shift alpha vertically.

edge

Set edge mode, can be smear, default, or warp.

#

Commands

This filter supports the all above options as commands.