Start with a useful size and quality choice
A size target must share its available bits across the full duration, video, audio, and container overhead. Very small limits can require a lower resolution or a shorter clip; a clear warning is more useful than silently creating an unusable file.
