Works for landscape and vertical video. Output sizes are rounded to even numbers, as most codecs require.
Don't know your video's resolution? Drop it into the video checker.