- Flag
-to HH:MM:SS.MILLISECONDSis for determining the end time of the video to be cut. - Flag
-iis input video as path. - The last path is output of video.
foo@bar: ffmpeg -to 00:15:00 -i ./media/file.mp4 ./media/newFile.mp4 - Flag
-ssis for determining the start time of the video to be cut. - It is algo possible convert the video format.
foo@bar: ffmpeg -ss 00:15:00 -i ./media/file.mkv ./media/newFile.mp4The arguments -c:v copy and -c:a copy is for duplicate video and audio track.
Increases speed a lot, but can be inaccurate.
foo@bar: ffmpeg -ss 00:15:00 -to 00:30:00 -i ./media/file.mp4 -c:v copy -c:a copy ./media/newFile.mp4