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 know how to use the -h option, I just don't see any commands to start video capture with file incrementation unless I press the video capture button.

What is the command line to start video capture guvcview using filename incrementation.

The option -n, --video=FILENAME Video File name (capture from start) will start video capture, however, the filename is overwritten unless the gui capture button is used.

share|improve this question

In order to run guvcview capture from command line you need to send a SIGUSR1 signal to the running application. First start it:

guvcview --no_display -n capture_file.avi

Then from a second shell window type the following:

killall -s USR1 guvcview

This will start a video capture and save the file in the current directory. You need to combine these 2 lines into a shell script if you want to run it automatically. Information from guvcview output:

SIGUSR1: Video stop/start capture
SIGUSR2: Image capture
SIGINT (ctrl+c): Exit
share|improve this answer
It works as a script, however, I would also like to have filename incrementation so that I don't have to manually change the filename each time myself. Thanks. – mchid May 23 '14 at 11:11
Then you can update the script to check using a for loop if the files exists and increment the new file name with 1 to bypass overwriting the existing files. – cioby23 May 23 '14 at 11:32
really, you don't have to send a SIGUSR1 signal; to start video capture (see guvcview -h | grep "capture from start" ) guvcview -n capture_file.avi does the same thing – mchid Jun 15 '14 at 21:52

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.