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 have a laptop with an integrated camera and I want to write a script that will record a 10 minute video when the clock reaches a certain time. What apps/commands can I use to achieve this?

share|improve this question
I am not sure about recording from command line, but you can use crontab to schedule it if you find a command to record. – DaboRoss Jun 12 '13 at 18:21
up vote 3 down vote accepted

streamer will record from the command line.

sudo apt-get install streamer

This command will start and record for 10 seconds. You could start it with cron or with scheduled tasks from the repo:

  streamer -q -c /dev/video0 -f rgb24 -r 3 -t 00:00:10 -o /home/marc/outfile.avi

man streamer will tell you all you need to know.

share|improve this answer
how to record the sound as well ? – Dee Jun 24 '13 at 17:48
I'm in Montana, many hundreds of miles from home, and without time to fully test out my answer to you. Install sox from the command line, then type man sox for the manual. Should have everything you need. – Marc Jun 25 '13 at 23:21

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.