9951 explained code solutions for 126 technologies

ffmpegHow to set transparency for overlay image on video

ffmpeg -i in.mp4 -i in.png -filter_complex "[1]format=yuva444p,colorchannelmixer=aa=0.5[in2];[0][in2]overlay" 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


sets opacity to 50% for second stream (overlay image)


resulting video file