4

I want to split up a video into 2 equal parts.

The problem is that video could be any duration. E.g. 3 seconds, 3.5 seconds or more.

I could only find a solution to split up a video if you know exact duration.

Is it possible to achieve the same result for a video with variable duration?

With FFmpeg on Windows.

1 Answers1

1

You can split up video files by this command :

ffmpeg -i largefile.mp4 -t 00:50:00 -c copy smallfile1.mp4 -ss 00:50:00 -c copy smallfile2.mp4

Find the current duration of the file with this:

ffmpeg -i inputfile 2>&1 | grep Duration | cut -d ' ' -f 4 | sed s/,//

Now calculate the half of it and put the value in previous code.

I can Create a script in bash But you are using windows. however, you can use a bash script if you are using Windows 10.