Cut media files using ffmpeg
$ ffmpeg -i infile -codec copy -ss hh:mm:ss -t hh:mm:ss outfile
-ss position- Seek to given time
position
-t duration- Restrict the video to the
duration
It's important to place -ss and -t after the input.
$ ffmpeg -i infile -codec copy -ss hh:mm:ss -t hh:mm:ss outfile
-ss positionposition-t durationdurationIt's important to place -ss and -t after the input.