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.
Asked
Active
Viewed 3,035 times
1 Answers
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,089
- 8
- 24
- 37
Lri
- 40,894
- 7
- 119
- 157
-
1The 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
-
1Thanks @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
-
1After 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