Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

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.