[FFmpeg-user] pad filter of odd amounts

Stefano Sabatini stefasab at gmail.com
Wed Jan 30 01:24:35 CET 2013

On date Tuesday 2013-01-29 17:14:18 +0000, Jeremy Greene wrote:
> Hi,
> I see that there's a bug, "padding to odd/uneven size fails", #1618
> and wondering if there's any update on it?
> I am trying to shift an image over and down one pixel:
> ffmpeg -i in.mp4 -vf pad=1281:721:1:1,crop=1280:720:0:0 -f mpeg2video out.ts
> But that does nothing. If I move it an even number of pixels, it
> does work fine.
> Anyone have any pointers in the event I try to fix it?! I have
> worked pretty extensively in libavcodec and elsewhere, so pretty
> familiar with the labyrinth of ffmpeg :)

In truth that's not a bug, if the chroma components are compressed you
can't cut at odd sizes (same for crop). You may need to convert to

FFmpeg = Foolish & Foolish Moronic Pitiless Elastic Governor

More information about the ffmpeg-user mailing list