Comment by izacus

3 days ago

> This doesn't always work because the computed value should be an even integer; if it's not, ffmpeg will raise an error and tell you why; then you can replace the -1 with the nearest even integer (I wonder why it can't do that by itself, but apparently, it can't).

It's not about integer, but some of the sizes need to be even. You can use `-vf scale=320:-2` to ensure that.