Convert a video from MOV to mp4:ffmpeg -i input.mov -qscale 0 output.mp4
Trim a video in seconds:ffmpeg -ss 00:01:00 -to 00:02:00 -i input.mp4 -c copy output.mp4
Options:
- -i: This specifies the input file. In that case, it is (input.mp4).
- -ss: Used with -i, this seeks in the input file (input.mp4) to position.
- 00:01:00: This is the time your trimmed video will start with. The timing format is: hh:mm:ss
- -to: This specifies duration from start (00:01:40) to end (00:02:12).
- 00:02:00: This is the time your trimmed video will end with.
- -c copy: This is an option to trim via stream copy. (NB: Very fast)