mediacodec.dev

Watermark a video

Overlaying an image means building a small filter graph: optionally reshape the logo (scale, fade its alpha), then composite it onto the video. The expressions below use the overlay filter’s own variables (W/H for the video, w/h for the logo), so the same command works at any resolution.