I want to output a video using two videos as input, where these two videos fade (or dissolve) into each other in a smooth and repetitive manner, every second or so. I'm assuming a combination of ffmpeg
with melt
, mkvmerge
, or another similar tool might produce the effect I'm after. Basically, I want to use ffmpeg
to cut up video A according to a specific interval, discarding every second cut up (automatically). Likewise for video B, but in this case inverting the process to retain the discarded parts. I wish to then interweave these parts.
The file names should be correctly formatted so that I can then concatenate the result using a wild card command argument or batch processing list, as per one of the aforementioned tools. The transition effect (e.g. a "lapse dissolve") isn't absolutely necessary, but it would be great if there were a filter to achieve that too. Lastly, it would also be great if this process could be done with little to no re-encoding, to preserve the video quality.
I've read through this thread and the Melt Framework documentation, in addition to the ffmpeg manual.
Best Answer
Assuming both videos have the same resolution and sample aspect ratio, you can use the blend filter in ffmpeg.
A couple of examples,
Straight cuts.
Output:
Each input's video/audio for 2 seconds with a 0.5 second transition.
Output: