4

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.

slhck
  • 228,104
ohho
  • 3,034

1 Answers1

8

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
Glorfindel
  • 4,099
Lri
  • 41,444
  • 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 05:51
  • 1
    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 08: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 09:21