Ubuntu – What tools could I use on Ubuntu 16.04 to cut mp4 files into several clips?

.mp4

I am trying to cut a long video into several small pieces. Any recommended tools can do the task?

Best Answer

I found ffmpeg could do the task. To install the ffmpeg sudo apt-get install ffmpeg To copy a specific short duration from the video file.

ffmpeg -i original.mp4 -ss 00:01:52 -c copy -t 00:00:10 output.mp4

  • -i:input file. The file name of the original video clip.
  • -ss:start timestamp. In my case I tried to copy the new video from the original video started after 1 minute and 52 seconds.
  • -t:indicating the duration of the new video clip, in my case, 10 seconds.

  • Not sure parameter -c for, maybe the action? If some1 knows, let me know plz.


Reference:
- Cut video by using ffmpeg
- ffmpeg seeking in subsection [cut small sections]