9951 explained code solutions for 126 technologies

ffmpegHow to overlay image on video

ffmpeg -i in.mp4 -i in.png -filter_complex "[0:v][1:v] overlay=100:100" -pix_fmt yuv420p -c:a copy out.mp4ctrl + c
-i in.mp4

input video file

-i in.png

path to image to overlay over a video


applies specified video/audio complex filter


overlays one stream on top of another


X,Y coordinates to position image (from top left corner)

-pix_fmt yuv420p

use yuv420p pixel format

-c:a copy

copy audio without converting


resulting video file