Adding video into the picture with ffmpeg? How to Adding video into the picture with ffmpeg?

example:
Use the overlay filter:



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