Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to have the resulting video as small as possible. So it should only record when I type or move mouse. When I'm idle, it should not record.

share|improve this question

You could 1) decompose to frames, 2) delete identical frames (or too similar) 3) recompose to movie.


  1. Try ffmpeg -i yourvideo.avi frame%06d.png
  2. I'd use imagemagick in a perl script
  3. either ffmpeg or mencoder
share|improve this answer
Thank you for decomposition of the problem. So your solution assume that I will record avi video of everything. How big will be the video in about 2 hours? Do you know how timeconsuming are the individual steps? Isn't there some automatic tool that will watch for signals sent from keyboard and mouse and if one of them is not idle saves the frame? I don't need sound, the sequence of images is sufficient. – xralf Apr 23 '11 at 11:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.