Overlay image on top of the video

I am looking to play a video with an overlay image. Though with the help of ffmpeg I was able to make a new video with the overlay image.

Reference here.

But is there any other way without converting the video before playing it, and playing the video separately and overlaying the image on top of it.

1

1 Answer

You can use mpv. This example will overlay video.mp4 as the background and image.png as the foreground. image.png will be placed in the lower right with a 10px padding.

mpv --lavfi-complex="[vid1][vid2]overlay=W-w-10:H-h-10[vo]" video.mp4 --external-file=image.png

See the overlay filter and mpv documentation for more info.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like