Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

If just need to crop Audio/Video from a longer track, what can I use? I tried OpenShot, but I find the export video slow, perhaps its compling all the "layers" into a new movie? Perhaps I just need a simple "crop" tool for audio/video will surfice?

share|improve this question
What sort of video formats are you dealing with? Are you looking for a GUI or a CLI solution? – fossfreedom Aug 6 '11 at 11:21
Formats will be probably mp4, flv, mp3. GUI or CLI will be fine. – Jiew Meng Aug 6 '11 at 13:06

18 Answers 18

up vote 66 down vote accepted

I was going to mention commands like ffmpeg or avconv (The new one) which can OBVIOUSLY split files into groups. For example:


ffmpeg -i input.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output1.avi
ffmpeg -i input.avi -vcodec copy -acodec copy -ss 00:30:00 -t 00:30:00 output2.avi  
ffmpeg -i input.avi -vcodec copy -acodec copy -ss 01:00:00 -t 00:30:00 output3.avi


ffmpeg -ss 0 -t 100 -i source.m4v -vcodec copy -acodec copy part1.m4v
ffmpeg -ss 100 -t 100 -i source.m4v -vcodec copy -acodec copy part2.m4v  
ffmpeg -ss 200 -t 100 -i source.m4v -vcodec copy -acodec copy part3.m4v  
ffmpeg -ss 300 -t 100 -i source.m4v -vcodec copy -acodec copy part4.m4v


avconv -i input.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 output1.avi
avconv -i input.avi -vcodec copy -acodec copy -ss 00:30:00 -t 00:30:00 output2.avi  
avconv -i input.avi -vcodec copy -acodec copy -ss 01:00:00 -t 00:30:00 output3.avi


avconv -ss 0 -i source.m4v -t 100 -vcodec copy -acodec copy part1.m4v
avconv -ss 100 -i source.m4v -t 100 -vcodec copy -acodec copy part2.m4v
avconv -ss 200 -i source.m4v -t 100 -vcodec copy -acodec copy part3.m4v  
avconv -ss 300 -i source.m4v -t 100 -vcodec copy -acodec copy part4.m4v

Or do some script like here:

share|improve this answer
Beware: According to the man page [ ] this results in unnatural, overlapping cuts. For instance, the second command starts at 00:30:00 but goes on for an hour; i.e., up to 01:30:00, so the third command, which starts at 01:00:00, will yield an overlapping cut. It may be the goal, but it wouldn't be very natural. – ezequiel-garzon Sep 24 '12 at 22:12
I can vouch for what ezequiel mentions. When doing the tests with ffmpeg or avconv the overlapping effect appears if using the times as mentioned above. I will update to a more accurate effect although I should mention that the first second will also overlap. I will fix both and add avconv to the group. Thanks ezequiel. – Luis Alvarado Sep 25 '12 at 3:00
Thanks! But these ppa versions are out-of-date. Are the versions in Precise 12.04 good? Or can someone suggest better ones? – nealmcb Oct 14 '13 at 14:47
Thanks for notifying me. When I get back home I'll post an updated link. – Luis Alvarado Oct 14 '13 at 15:03
Thanks! avconv is blazingly fast and clear and convenient for splitting out clips if you know what start/stop times you want. No need to figure out which OpenShot video format your source file corresponds to, which I still don't know for sure.... – nealmcb Oct 16 '13 at 23:16

kdenlive is (in my experience) the easiest software which will allow you to perform that task in a few steps and without problems. Even so, the OpenShot Video Editor project is also useful but it yet needs lots of hard work to get closer to the kdenlive.

Here are a screenshot of the kdenlive and openshot respectively:

enter image description here

enter image description here

Good luck!

share|improve this answer
Kdenlive is my favourite. All other linux editors crashed when using MOV files from my Kodak Zi8 camera. Easy to use and very powerful. – Ramon Suarez Jun 16 '12 at 6:52
Not sure what's going on with my edit. Looks fine in editing mode but here its messed up. – Insperatus Sep 5 '12 at 20:59
Sorry, I can't understand. Do you mind giving further details? If you think necessary please open a question about your issues. Thank you! – Geppettvs D'Constanzo Sep 5 '12 at 21:17
Sorry about the OT intrusion and thanks for your cordiality, I'll take it where appropriate. Good day! – Insperatus Sep 6 '12 at 23:32
The easiest software Kdenlive asks a hell of irrelevant questions before even starting a project. But when about to do something, it spawns avconv and whenever it fails, Kdenlive won't offer help tp rectify situation and even doesn't report with which exactly parameters it ran avconv. Definitely a non-choice for one willing simply to trim a video file. – Incnis Mrsi Aug 22 at 11:07

With new version from ubuntu avconv

avconv -i srcFileName -c:a copy -c:v copy -ss 00:03:40 -t 00:01:12 targetFileName
  • First argument time is from time
  • Second argument is duration (not end time) duration may be either in seconds or in "hh:mm:ss[.xxx]" form.
share|improve this answer
Thanks, an expert. Damn me not to read third-rated answer in the thread before doing anything. Without this examples Ī̲’d fail to turn off video recoding (“-vn” failed to produce this effect, for some reason) and would also have other problems. By the way, does “-c:s copy” make the same thing for subtitles? – Incnis Mrsi Aug 22 at 11:24
Also, since my experience, when cutting out only the last part (i.e. when beginning of the new video coincides with beginning of the original video) “-ss 0” is potentially problematical and should be omitted. Ī̲ had a program (namely, Bombono DVD) crashed trying to read a file made with “-ss 0” substituted in place of the original file. – Incnis Mrsi Aug 22 at 12:01

I like kdenlive for finishing up as well or clipping out small chunks...but if he wants to split a LARGE lecture into smaller pieces he could try:

ffmpeg -i input.mpg -ss 00:00:10 -t 00:00:30 out1.mpg -ss 00:00:35 -t 00:00:30 out2.mpg

discussion of the command is here:

share|improve this answer
you can use winff (GUI for ffmpeg) also – jahid65 Aug 6 '11 at 17:36

OpenShot Video Editor looks promising. Have you checked it?. Checkout the features:

To install it just open a terminal and run the following commands:

sudo add-apt-repository ppa:jonoomph/openshot-edge
sudo apt-get update
sudo apt-get install openshot openshot-doc

Just give a try. alt text

share|improve this answer
If he is using maverick it is in the repository – Sabacon Nov 11 '10 at 6:26
Openshot FTW! :) – OpenNingia Nov 11 '10 at 14:16

My preference for easy video clipping has always been avidemux Install avidemux

Just set the video and audio encoding to Copy and choose the container format you want, within reason.

share|improve this answer

I use Kdenlive, but I wouldn't be surprised if you could even slice video this way in PiTiVi:

  1. Create a new project with your full lecture.
  2. Set your start and end points for the first "manageable chunk" in the clip monitor.
  3. Drag from the video in the clip monitor down to your timeline. It will be just the chunk you chose.
  4. Set new start and end points in the clip monitor and repeat as needed.
share|improve this answer
I've looked around, and I can't find any way to divide a long clip into multiple shorter clips that I can easily manage. There is no "clip monitor"; PiTiVi is very simple (and I mean that in a good way!) Obviously, I could just cut up the video and reorganize the unnamed chunks in the timeline, but I'd like to know if there's a better way. – Evan Kroske Nov 11 '10 at 6:05

For cutting, merging, scaling etc one can use … Blender (yes, this 3D editor, but it has also video editing part). You need workout some 20-min tutorial to survive the interface, but then it appears to be unexpectedly pleasant to use.

share|improve this answer

Try Avidemux Install avidemux

sudo apt-get install avidemux

or LiVES Install lives

sudo apt-get install lives

more here.

share|improve this answer
Avidemux freezed several times for my under Ubuntu 13.10, even with a x4 CPU. – Lucio Mar 1 '14 at 19:01

In PiTiVi 0.13.5 (Ubuntu 10.10) I was able to simply select a clip and go to Timeline > Split (or just press "S").

share|improve this answer

Pitivi too complex? Well... I suggest you learn how to use the mouse then lol

Anyway, I always use Kdenlive. Just import the video, drag it onto the timeline, click on the spot where you want to split it, right-click it, and choose cut. Then remove the part you don't need.

share|improve this answer
Thanks for the helpful suggestion, but for what I need they are too complex. Note that I didn't say too difficult to use, just unnecessarily bloated for my purposes. I ended up using openshot – jfoucher Aug 22 '11 at 23:06
@jfoucher: you should accept Geppettvs's answer then ;) – Takkat Aug 23 '11 at 7:31

For quickly cutting I have used MythTV. I recorded some show, let it automatically search for the commercial breaks and fine-tuned the found markers. After this I started the Myth archiving function and burned all to DVD, without the commercials.

I have to admit, it worked gread from about 2006 or such. Somewhere in 2008 or 2009 some update ruined it all, my markers where somehow shifted.

Right now, I'm in the progress of re-installing this myth stuff, just to see if I can get the trimmer/editor and archiver working.

share|improve this answer

I'm using ffmpeg CLI interface for that. It's very easy and fast:

  • to cut video:

    ffmpeg -i InputFile -vcodec copy -acodec copy -ss 00:00:00 -t 00:01:32 OutPutFile
  • to cut audio:

    ffmpeg -i InputFile  -vn -acodec copy -ss 00:00:00 -t 00:01:32 OutPutFile

In both of these -ss is the start point, while -t is the duration of the piece.

You can calculate duration e.g. using LibreOffice Calc or python's dateutil package.

share|improve this answer

VERY VERY quick tool: mp3splt I use the CLI version to cut MP3s with Ubuntu 13.04 and it works perfect. Of course there is also a GUI version, but I didn't try it.

This is not exactly what you want, because it cuts only audio.

share|improve this answer

I've struggled with this same issue, having a large video file that I want to cut and save as separate scenes. After trying to do this in the usual suspects all listed by others here I ended up using Kino. You will have to import the file as Kino needs it in dv format (whatever that is) and you can then specify start and end point for each clip on the Edit tab, then export each clip individually on the Export tab. Works great and is fast, the slowest part is the initial import of the video file. You can even add effects like titles to each clip. I found that it is hard to find the exact spot to cut the scene in Kino and when I play the vid in the built in player there is no sound (there is when exported) and it plays too fast so I play the video in avidemux, find the time or frame number where I want to cut it, then use this info in Kino. I do find it crashes a fair bit (I use Ubuntu 15.04 Kino v1.3.4) but it will recover where you were upon restart.

share|improve this answer

If you want a GUI application you can use dmMediaConverter, a ffmpeg frontend, which has a split function, without reencoding, fast. Just add the split points and press Run. Also, it can do a lot of other stuff. Split function example

share|improve this answer

There is also WinFF that is avconv graphic interface. It works great. I installed it from Ubuntu Software Center.

Here is the screenshot: WinFF

share|improve this answer

I am running into the same trouble. I have searched and tried to install this sort of ubuntu software for many times, but unable to install any of them! Perhaps my repository is broken?

It always says this depends that, this depends A but B is going to be installed

Yesterday I just found that I can do it online, With a youtube account:) If you are in a hurry, and do not have enough time to try which ubuntu software works for you, then do it online.

Go to youtube account, upload your video, then select Video Manager, there is a Enhancement option, at the bottom right corner there lies Trim option

Watch this 1 minute tutorial if you still can not find it

Screen Capture of the Trim menu

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Florian Diesch Nov 7 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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