M
M
Michael Compass2021-01-14 04:45:08
fmpeg
Michael Compass, 2021-01-14 04:45:08

How to use ffmpeg to cut each video file in the middle and swap these 2 parts?

In the C:\test folder there are several video files (more than 10 pieces),

All files of different formats:
- mkv
- avi
- mp4

All files are of arbitrary length.

How to use ffmpeg to cut each video file in the middle into 2 parts and rearrange these 2 parts, and then save the resulting video file in the same format as the original file.
And do the same for each file in the C:\test folder ?

Moreover, the accuracy of where the cut will be is not important, the main thing is that it should be approximately in the middle, you can frame by frame, you can do whatever you like, the main thing is that it was approximately in the middle, plus or minus 1-2 minutes and the main thing is to quickly get the result of "cutting-rearranging-gluing" .

I tried using camtasia to cut and "re-render" the handles approximately in the middle, but the "rendor" takes a long time, and this is critical since it needs to be done for a large number of video files.

Here I want to understand how to do this using ffmpeg, it seems like it should do it faster.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question