View Single Post
Old February 4th, 2015, 02:56 PM   #4
speedcom
Senior Member
 
speedcom's Avatar
 
Join Date: Sep 2008
Posts: 240
Thanks: 1,726
Thanked 4,422 Times in 226 Posts
speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+speedcom 10000+
Default howto make clips with ffmpeg

To complete this tutorial, let me introduce a command-line tool, available on windows, Mac (ppc & intel), linux & unix (all distro) : ffmpeg

example 1 (suppose you are in the good directory)
to make a 5' clip "myClip.mp4" from the movie "myMovie.mp4" start at 00:10:00
Fastest processing (encode nothing, only cut)
Code:
ffmpeg -vcodec copy -acodec copy -ss 00:10:00 -t 00:15:00 -i myMovie.mp4 myClip.mp4
or more accuracy (1/1000 sec) :
Code:
ffmpeg -vcodec copy -acodec copy -ss 00:10:00[.137] -t 00:15:00[.725] -i myMovie.mp4 myClip.mp4
example 2: (suppose you are in the good directory, but also a nerd who loves open source tools/sofwares/way of life)
Code:
ffmpeg -ss 00:10:00 -t 00:14:00 -i myMovie.wmv -vcodec libtheora -b 1500k -s 640x480 -acodec libvorbis -ab 160k myClip.mkv
myClip is now re encoded with theora video codec, with a new 1500k bitrate, new dimension 640x480, the audio stream is now vorbis ABR 160k, and container is Matroska

you can choose both audio or video codecs or container you want (with limitations due to your OS or selected codecs), you can crop, change ratio, you can add filters, you can join videos, extract/rebuild /remove audio, subtitles, grab video stream etc... ffmpeg is powerful !

links : Documentation and Download

But If you are more comfortable with graphical interface, I second Ruffah's choice for common editing with Avidemux

cheers
speedcom is offline   Reply With Quote
The Following 11 Users Say Thank You to speedcom For This Useful Post: