TweakTown
Tech content trusted by users in North America and around the world
6,247 Reviews & Articles | 40,732 News Posts
TRENDING NOW: Rockstar rumored to announce Grand Theft Auto: San Andreas 2 soon

Raspberry Pi Camera Module Review and Tutorial Guide - Working with the camera

Raspberry Pi Camera Module Review and Tutorial Guide
Our own in-house Maker digs into the new Raspberry Pi Camera Module and tells us all about it and how to use it.
| Guides | Posted: Jul 22, 2013 9:13 pm

Working with the camera

 

Now that the Raspberry Pi is finished rebooting, you can login and we can begin taking some video and snapshots using basic commands. Later in this article I will show you how to string together some of these commands to create a time-lapse photography setup that is quite energy efficient and should provide 12 hours of use.

 

TweakTown image content/5/6/5617_11_raspberry_pi_camera_module_review_and_tutorial_guide.jpg

 

Below is a list of the terminal commands that control the basic functionality of the Camera Module.

 

raspivid Camera App v1.1

 

Display camera output to display, and optionally saves an H264 capture at requested bitrate.

 

Usage: raspivid [options]

 

Image parameter commands

 

  • -?, --help : This help information
  • -w, --width : Set image width . Default 1920
  • -h, --height : Set image height . Default 1080
  • -b, --bitrate : Set bitrate. Use bits per second (e.g. 10MBits/s would be -b 10000000)
  • -o, --output : Output filename (to write to stdout, use '-o -')
  • -v, --verbose : Output verbose information during run
  • -t, --timeout : Time (in ms) to capture for. If not specified, set to 5s. Zero to disable
  • -d, --demo : Run a demo mode (cycle through range of camera options, no capture)
  • -fps, --framerate : Specify the frames per second to record
  • -e, --penc : Display preview image *after* encoding (shows compression artifacts)
  • -g, --intra : Specify the intra refresh period (key frame rate/GoP size)
  •  

    Preview parameter commands

     

  • -p, --preview : Preview window settings
  • -f, --fullscreen : Fullscreen preview mode
  • -op, --opacity : Preview window opacity (0-255)
  • -n, --nopreview : Do not display a preview window
  •  

    Image parameter commands

     

  • -sh, --sharpness : Set image sharpness (-100 to 100)
  • -co, --contrast : Set image contrast (-100 to 100)
  • -br, --brightness : Set image brightness (0 to 100)
  • -sa, --saturation : Set image saturation (-100 to 100)
  • -ISO, --ISO : Set capture ISO
  • -vs, --vstab : Turn on video stablisation
  • -ev, --ev : Set EV compensation
  • -ex, --exposure : Set exposure mode (see Notes)
  • -awb, --awb : Set AWB mode (see Notes)
  • -ifx, --imxfx : Set image effect (see Notes)
  • -cfx, --colfx : Set colour effect (U:V)
  • -mm, --metering : Set metering mode (see Notes)
  • -rot, --rotation : Set image rotation (0-359)
  • -hf, --hflip : Set horizontal flip
  • -vf, --vflip : Set vertical flip

 

Notes

 

Exposure mode options: off,auto,night,nightpreview,backlight,spotlight,sports,snow,beach,verylong,fixedfps,antishake,fireworks

 

AWB mode options: off,auto,sun,cloud,shade,tungsten,fluorescent,incandescent,flash,horizon

 

Image Effect mode options: none,negative,solarise,sketch,denoise,emboss,oilpaint,hatch,gpen,pastel,watercolour,film,blur,saturation,colourswap,washedout,posterise,colourpoint,colourbalance,cartoon

 

Metering Mode options: average,spot,backlit,matrix

Related Tags

Further Reading: Read and find more Guides content at our Guides reviews, guides and articles index page.

Do you get our RSS feed? Get It!

Got an opinion on this content? Post a comment below!

Latest News Posts

View More News Posts

Forum Activity

View More Forum Posts

Press Releases

View More Press Releases