[FFmpeg-user] Unable to crop JPG to a size with odd (non-even) dimensions

Sam Logan shapableline at gmail.com
Sun Jul 16 09:11:34 EEST 2023

I am trying to precisely crop a JPG. The problem is that when I try to crop
to dimensions that are odd (non-even), FFmpeg is forcing the output to
instead be even. For example, if I try to crop to 585x1040...:

ffmpeg -i "Input.jpg" -vf crop=585:1040:0:0 "Output.jpg"

...then FFmpeg instead generates a 584x1040 image. How do I force my
desired cropping to 585x1040?

More information about the ffmpeg-user mailing list