FORUMS: list search recent posts

clipping selected portions of a video

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Peter Robertson
clipping selected portions of a video
on Jun 5, 2012 at 7:08:48 pm

I am able to clip 20 seconds of a video after the first minute of the video using the following:

ffmpeg -ss 00:01:00.0 -t 00:00:20.0 -acodec copy -vcodec copy -i input.mov output.mov

Is there a way to do the same but say clip 10 seconds (of a 1 hour video) EVERY THREE MINUTES and out put to a new video?

Thanks.

Pedro

Pedro


Return to posts index

stephen dixon
Re: clipping selected portions of a video
on Jun 5, 2012 at 10:31:12 pm

You'll probably want to look at a shell script for that.

What environment are you in? In a bash shell (eg on a linux or OSX machine) you might want to use a "for" loop like:

for (( i=0; i<3600; i+=180 ))
do ffmpeg -ss $i -t 10 -acodec copy -vcodec copy -i input.mov output_$i.mov
done


That will make separate movies however. You would have to use ffmpeg to join them all together if you wanted one movie as per this page.


Return to posts index

Peter Robertson
Re: clipping selected portions of a video
on Jun 6, 2012 at 2:59:23 pm

Thanks!

That works like a charm. One more question. I'm trying to make my output files smaller--currently they are 1280 x 720 and I'd like to make them say 850 x 478. I don't understand where to set that variable?

Pedro

Pedro


Return to posts index


Peter Robertson
Re: clipping selected portions of a video
on Jun 6, 2012 at 4:08:49 pm

This one i figured out by using the scale filter i.e.

vf scale=800:450

Thanks.

Pedro

Pedro


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]