I am trying to split a video into several consecutive clips using ffmpeg's -ss and -t options. I need to not lose or repeat frames between clips (i.e. clip 2 needs to start exactly where clip 1 ended). Since my videos are at 30 frames per second and ffmpeg's options only allow one to specify time to the second, how can I get around this? If it's not possible with ffmpeg, can somebody suggest other software (for windows and linux) that can do this? I will need to run a batch job, though, since I need to split lots of files, so software that is gui-only won't work.
Below is my ffmpeg code:
FOR %%X IN (*.avi) DO (ffmpeg -i "%%X" -vcodec mjpeg -qscale 1 -an -ss 00:00:10 -t 00:00:30 "%%X1.avi" -ss 00:0040 -t 00:00:30 "%%X2.avi")
Thanks everybody! (This is my first post . . .)