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

Video Manipulation

To merge multiple avi files into one big avi file:

  $ avimerge -i a1.avi a2.avi a3.avi -o a.avi
I have found this to get the audio of the second file out of sync!

To split an avi file up into smaller chunks (a-0000, a-0001, etc):

  $ avisplit -i a.avi -s 700

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.

To adjust the synchronisation of the audio, where the video appears to lag behind the audio:

  $ avisync -i a.avi -o a-sync.avi -n -5


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.