Example to cut video from 5min to 8min:
ffmpeg -ss 00:05:00.000 -i "filename.mp4" -vcodec copy -acodec copy -to 00:08:00.000 "filename-output.mp4"
-ssstart time, always put in before -i so its a lot faster (seek to this time at begining).
-i "filename.mp4"source file path.
-vcodec copycopy video codec
-acodec copycopy audio codec
-to 00:08:00.000End time. You can also use
-toption, so you can pass duration instead of end time.
"filename-output.mp4"output file path.