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

Solution 1:

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]

Solution 2:

Kdenlive, a non-linear video editor.

Install with:

$ sudo apt install kdenlive

You can see others by running Ubuntu Software and typing video editor in the search area.