mediacodec.dev

Resize or scale a video

Scaling changes every pixel, so the video must be re-encoded: there is no lossless resize. This command scales to a target width, computes an even height automatically, and re-encodes with x264 at a quality target. Audio passes through untouched.