I would like to trim a video I have in mp4 format and I can't seem to find the right tool to do this. My laptop has Ubuntu 16.04 LTS.

  • What do you mean by "trim"? Remove some scenes (e.g. the first 30 seconds), or cut the view area (e.g. remove the top 50 pixels of the whole movie)? – Byte Commander Apr 15 '18 at 16:01
  • I have a video of a movie and I want to make another video with only a small part of the first video. I don't know which tool to use – Irene Naziri Apr 15 '18 at 16:15
  • "small part of the first video" is still ambiguous IMHO. It could be a small time sequence, or a small screen area. – Byte Commander Apr 15 '18 at 16:59

You need to install ffmpeg.

To install the ffmpeg sudo apt-get install ffmpeg to copy specific short durationg from the video file.

Sample :-

ffmpeg -i original.mp4 -ss 00:03:20 -c copy -t 00:00:30 output.mp4

-i -->Input file. The file name of the original video clip.

-ss -->Copy the new video from the original video started after 3 minute and 20 seconds.

-t -->Duration of the new video clip,(ex:- 30 seconds.)

| improve this answer | |
  • Thank you for your reply. Can you please explain how do I get the ffmpeg? – Irene Naziri Apr 15 '18 at 16:17
  • 1
    You need to run sudo apt-get install ffmpeg command – Eranda Peiris Apr 15 '18 at 16:18
  • This is great for other Ubuntu versions as well and it's beneficial that you can do it from command line – Csaba Toth Mar 5 at 17:35

Vidcutter is a simple tool that can trim your videos. Install with

sudo add-apt-repository ppa:ozmartian/apps
sudo apt update
sudo apt install vidcutter

Lauch vidcutter and select a file with the open button:

enter image description here

use the vertical bar to scroll to the first part to add to the video and click

start split. Drag the bar to where you want the video to end and click end clip. Then use the save button to join your videos. There is no loss in quality in the process

| improve this answer | |
  • happy to assist. – ptetteh227 Apr 15 '18 at 19:27

You can use my app dmMediaConverter for this. It has an option to trim the file without reencoding it, so, it is very fast and lossless. enter image description here

| improve this answer | |

Avidemux is one of open-source GUI application doesn't need to install via PPA. Quite easy to comprehend, self-explained. To install avidemux

sudo apt-get update
sudo apt-get install avidemux2.6-qt

avidemux sample

To remove it

sudo apt-get remove --autoremove avidemux2.6-qt
| improve this answer | |

You could checkout my project called VideoCut.

It has a very fast muxer (you can cut without recoding). Its design has been kept simple and was inspired by DVB-Cut.

It supports mp4, AVCH ,avi, webm and supports TS transportstreams

Main Screen

and can be downloaded from github.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.