Trim video with duration
ffmpeg -i input.mp4 -ss 00:00:30 -t 00:00:30 -c:v copy -c:a copy output.mp4
Trim video to a specific time
ffmpeg -i input.mp4 -ss 00:00:30 -to 00:01:00 -c:v copy -c:a copy output.mp4
Bonus: Good re-encoding settings
ffmpeg -i input.mp4 -vcodec libx265 -crf 28 output.mp4