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

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

Copyright © 1995-2006 [email protected]
Contribue and access the PDF Version