cut part of video ffmpeg

#-ss option to specify a start timestamp, and the -t option to specify the encoding duration.
# The timestamps need to be in HH:MM:SS.xxx format or in seconds (s.msec).
ffmpeg -ss 00:00:30.0 -i input.wmv -c copy -t 00:00:10.0 output.wmv
ffmpeg -ss 30 -i input.wmv -c copy -t 10 output.wmv

Here is what the above code is Doing:
1. The -ss option tells ffmpeg to start encoding at 30 seconds into the input file.
2. The -t option tells ffmpeg to encode for 10 seconds.
3. The -i option tells ffmpeg to use input.wmv as the input file.
4. The -c copy option tells ffmpeg to use the same codecs for the output file as the input file.
5. The output.wmv option tells ffmpeg to use output.wmv as the output file.

You can also use the -ss option to specify a start timestamp, and the -t option to specify the encoding duration.
The timestamps need to be in HH:MM:SS.xxx format or in seconds (s.msec).

ffmpeg -ss 00:00:30.0 -i input.wmv -c copy -t 00:00:10.0 output.wmv
ffmpeg -ss 30 -i input.wmv -c copy -t 10 output.wmv