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.
-ssand-tooptions (in the twoffmpeginvocations: extract the first half, extract the second one) . You can even use the number of frames...for example you can count it withffmpeg -i input.mkv -map 0:v:0 -c copy -f null -then withgrepandawkselect the output...divide by 2 etc etc... – Hastur Apr 15 '19 at 22:06-f segment -segment_timethen the time... you have only to extract it in advance. OS depending... – Hastur Apr 15 '19 at 22:15ffmpegcommands to do this, or is this a two-in-one question and do you expect the answer to also include batch scripting? (I know the commands, but not the batch.) – llogan Apr 16 '19 at 17:32