How to fix: ffmpeg: Picture size 32768x16384 is invalid?
The general limiting rule is ((Width * 8) + 1024)*(Height + 128) &lt; INT_MAX. The rationale being, that all pixels of an image plane should be accessible using a signed integer index.

On a machine with 32-bit integers, INT MAX is 2147483647.

So, ((32768 * 8) + 1024)*(16384 + 128) = 4345430016 which is &gt; 2147483647.

Now, it's possible there is a bug with the image size check, in that the factor 8 applied to the width is prematurely applied in most cases and can be skipped. You can raise a ticket at trac.ffmpeg.org if you want to explore that possibility. Else, you'll need to use another tool (maybe Imagemagick).