Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a tool for Mac OS X which supports cutting .AVI files, but doesn't re-compress them? Command-line tools are also welcome.

share|improve this question
up vote 4 down vote accepted

Install FFmpeg through Homebrew:

brew install ffmpeg

Then cut the video starting from the position specified with -ss for a duration specified with -t. copy ensures that video and audio are not re-encoded.

ffmpeg -i video.avi -c:v copy -c:a copy -ss 00:01:30 -t 0:0:20 output.avi
share|improve this answer
1  
The codec options belong after the input option, otherwise they mean, "treat this input as copy". FFmpeg more or less uses a pipeline syntax here. – slhck May 10 '12 at 5:51
    
Thanks @slhck. ffmpeg -i video.avi -vcodec copy -acodec copy -ss 00:40:35 -t 0:3:00 out.avi works great! – ohho May 10 '12 at 8:19
1  
After a video is cut, the player (mplayer) can no longer jump to specific a time position. How to fix? – ohho May 10 '12 at 9:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .