I am currently using ffmpeg to split videos into 10
seconds segments. I have taken two approaches but neither seems to yield the desired results. Approach number one is using basic cutting with the -t and -ss options to get the segments. This gives close to accurate segments but it has some issues with the frames in the ending of some videos. The second option is using segment: great and fast but it gives segments of not equal duration. Any idea how to get segments of the same duration and no issues in the frames? In other words if I play them in a list it should play smoothly
General way
ffmpeg – i input.mp4 -ss <start> -t <duration> -vcodec copy -acodec copy output%03d.mp4
Using segment
ffmpeg -i input.mp4 -c copy -map 0 -segment_time 8 -f segment output%03d.mp4