View Full Version : Taking a video apart

16th April 2013, 08:34 AM
I was wondering if anyone could recommend some software for slicing up videos into separate scenes.

Something that would automatically detect scene changes would be nice, as would command line operation.

Any suggestions?

16th April 2013, 09:53 AM
Doing scene changes would be difficult, I do not know of anything that can do that. Splicing media up is easy though, ffmpeg can do it. Have a look in the man pages ("man ffmpeg").

What you will probably need though is:

ffmpeg -i myMovie.ogg -c:v copy -c:a copy -ss 01:10:03 -t 120 myClip.ogg

The "-i" should be followed by the input file.

"-c:v copy" tells fmpeg to copy the video"
"-a:v copy" tells fmpeg to copy the audio"

"-ss" seaks to a position. You can put this before the -i flag but it is more accurate if placed after. Its format is either seconds or hh:mm:ss[.xxx]

"-t" is the length of time you want to keep of the video, again its format is either seconds or hh:mm:ss[.xxx]

make sure you give your output file (myClip.ogg) the same file extension as your input.

4th September 2013, 08:29 AM
I tried the ffmpeg approach, but if you cut a video and then splice it back together again you end up with large gaps.

I am aware that the ffmpeg team know of this problem, so hopefully they will have a fix sometime.

4th September 2013, 02:09 PM
Load up Kdenlive and go to town :)

I use it for almost all my video work.