5

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
5

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.)

  • Thank you for your reply. Can you please explain how do I get the ffmpeg? – Irene Naziri Apr 15 '18 at 16:17
  • You need to run sudo apt-get install ffmpeg command – Eranda Peiris Apr 15 '18 at 16:18
2

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

  • happy to assist. – ptetteh227 Apr 15 '18 at 19:27
0

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

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.