ffmpeg -i myfile.mp4 -codec copy -ss 00:00:10 -t 00:00:20.30 output.mp4
where the arguments are representing:
-i myfile.mp4 – input file path (full or relative)-ss 00:00:10 – start time-to 00:00:24.30 – end time
Instead of -to argument, you can specify -t argument, which will represent the duration, instead of end time.