1 |
On Sun, 2008-03-23 at 12:22 -0700, Grant wrote: |
2 |
> I have some video clips I'd like to trim the beginning and end from. |
3 |
> Is there a simple tool that will do this? I'm emerging lives but I |
4 |
> think it's overkill for this. |
5 |
> |
6 |
> - Grant |
7 |
|
8 |
You could use mencoder (part of mplayer): |
9 |
|
10 |
mencoder -ss 1:10 -endpos 1:10:00 -oac copy ovc copy -of avi -o\ |
11 |
truncated.avi original.avi |
12 |
|
13 |
Explanation: |
14 |
-ss 1:10 skip the first 1 minute and 10 seconds |
15 |
-endpos 1:10:00 finish at file position 1 hour and 10 minutes (so the |
16 |
truncated video would be 1:08:50 long) |
17 |
-oac copy do not transcode the audio |
18 |
-ovc copy do not transcode the video |
19 |
-of avi write everything into an avi-container |
20 |
-o truncated.avi output file |
21 |
|
22 |
Warning: This simple example doesn't handle additional streams like a |
23 |
second audio or subtitles. Please refer to mencoder's man-page for |
24 |
additional options, or ask here ;) |
25 |
|
26 |
Hope this helps |