'FFMEG option scale=-1 and scale=-2

I tried to convert a video and resize it with scale=-1:720, but got the error "width not divisible by 2". And I solved it with: scale=-2:720. What are the differences between

scale=-1:720

and

scale=-2:720


Solution 1:[1]

If you think about -1 and -2 like about -n then this sets the specified dimension (width, height) to be a multiple of n.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lex