Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.