Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Crop a Video

Here we crop the input video from the beginning to 11.6 seconds in:

$ ffmpeg -i input.mp4 -ss 00:00:00 -t 00:00:11.6 -async 1 cut.mp4

To extract a particular section of the avi file (starting at 7 minutes and 20 seconds into the video and stopping at 8 minutes and 20 seconds):

$ avisplit -i a.avi -t 0:7:20.0-0:8:20.0

To extract a particular section of a video and convert it to a sequence of png files (screenshots):

$ avisplit -i a.avi -t 0:9:14.0-0:9:16.0
$ mplayer -vo png a.avi-0000
This generates about 100 png files. An alternative is to use the Take Screenshot option under Edit in totem.

Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.