How to Adding video into the picture with ffmpeg?

example:enter image description here

1 Answer 1


Use the overlay filter:

enter image description here

ffmpeg -loop 1 -i image.jpg -i overlay.mp4 -filter_complex \
"overlay=main_w-overlay_w:main_h-overlay_h:shortest=1" output.mp4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.