Edit video file using ffmpeg

ffmpeg -i file1.avi -vcodec copy -acodec copy -ss 00:10:00 -t 00:05:00 file2.avi where:
-i : input file
-ss : start time
-t : duration time
or
-vframes : count frame to record