I have ffmpeg installed in my linux box. I am using it to split files into equivalent segments. So far I have test two approaches: 1. Create a bash script that grabs the file duration
ffprobe and then performs a math equation to get the file split in equal segments 2. Do it directly from ffmpeg using
segment_time. The first method is consistent for the most part(1 or 2 secs off in some segments) in splitting segments into equivalent sizes but there is some frame loss in the segments and is very slow. The second method by far is the quickest in splitting the video file since I am directly running ffmpeg without having to do an external duration calculation. How could I get strict equivalent segment sizes with ffmpeg?
ffmpeg -i input.mp4 -c copy -map 0 -segment_time 10 -f segment output%03d.mp4