I have two videos.
- Tutorial
- Person in the circle moving hands
i want to put second video on top of the first one, ideally in the corner.
I have two videos.
i want to put second video on top of the first one, ideally in the corner.
Copyright © 2021 Jogjafile Inc.
To overlay a video on top of another video using
fluent-ffmpeg
, you need to useffmpeg
'soverlay
filter.First, install
fluent-ffmpeg
:If you don't have
ffmpeg
andffprobe
installed on your machine, make sure you do, or you can set their paths usingfluent-ffmpeg
.Use the following code to overlay the second video (person_in_circle.mp4) on top of the first video (tutorial.mp4):
Ensure the overlay video is smaller in dimension than the main video if you want it to be fully visible. If it's larger, you might need to resize it first using
ffmpeg
.