Skip to main content
be specific of what the answer is about
Link

Concat overlapping videos with ffmpeg using python3

Source Link

Concat overlapping videos with ffmpeg

I have a number of videos that overlap in time that were downloaded from an online video stream:

0m00s  - 15m10s
14m50s - 30m20s
...

The first few seconds (usually around 20 seconds) of a video segment duplicate last few seconds of the previous segment.

I'd like to concat the video segments and form a single video file without duplicate parts. I can do it programmatically using ffmpeg libraries to find the cut points by minimizing error between a frame of the current segment and the last frame of the previous segment.

Is there a way to achieve this with an ffmpeg command?