{"id":917,"date":"2013-08-06T08:45:25","date_gmt":"2013-08-06T08:45:25","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=917"},"modified":"2024-11-29T10:47:47","modified_gmt":"2024-11-29T10:47:47","slug":"using-the-camera","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-hardware\/raspberry-pi-camera\/pre-bookworm-camera-use\/using-the-camera","title":{"rendered":"Using The Camera"},"content":{"rendered":"<h4>\n<span style=\"color: rgb(230, 137, 27); font-size: 16px;\">Documentation<\/span><br \/>\n<\/h4>\n<p>\n<a href=\"http:\/\/www.raspberrypi.org\/archives\/4483\" target=\"_blank\">Camera Board Documentation<\/a>\n<\/p>\n<h4>\nConnecting The Camera<br \/>\n<\/h4>\n<p>\nEnsure the Raspberry Pi board is not powered and connect the camera cable as shown:\n<\/p>\n<p>\n<a href=\"https:\/\/raspberry-projects.com\/pi\/wp-content\/uploads\/2013\/08\/camera-connection.png\"><img loading=\"lazy\" decoding=\"async\" alt=\"camera-connection\" class=\"alignnone size-full wp-image-1489\" height=\"236\" src=\"https:\/\/raspberry-projects.com\/pi\/wp-content\/uploads\/2013\/08\/camera-connection.png\" width=\"369\" srcset=\"https:\/\/raspberry-projects.com\/pi\/wp-content\/uploads\/2013\/08\/camera-connection.png 369w, https:\/\/raspberry-projects.com\/pi\/wp-content\/uploads\/2013\/08\/camera-connection-300x191.png 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/a>\n<\/p>\n<h4>\nSetup For Camera Use<br \/>\n<\/h4>\n<p>\nEnsure the operating system is up to date by using these two commands:\n<\/p>\n<pre>\r\n<code>\r\nsudo apt-get update\r\nsudo apt-get upgrade\r\n<\/code><\/pre>\n<p>\nThen run the config tool:\n<\/p>\n<pre>\r\n<code>\r\nsudo raspi-config\r\n<\/code><\/pre>\n<p>\nSelect the &#39;Enable Camera&#39; option and set it to Enabled.\n<\/p>\n<p>\nExit the config tool and after it reboots enter the following command to test the camera:\n<\/p>\n<pre>\r\n<code>\r\nraspistill -v -o\r\n<\/code><\/pre>\n<p>\nA preview of the camera should be shown for a few seconds.\n<\/p>\n<h4>\nTaking A Picture Using Raspistill<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nraspistill -v -o save_as_filename.jpg\r\n<\/code><\/pre>\n<p>\nBy default&nbsp;captures are done at the highest resolution supported&nbsp;by the sensor.\n<\/p>\n<h5>\nOptions<br \/>\n<\/h5>\n<p>\nShow all available Options\n<\/p>\n<pre>\r\n<code>\r\nraspistill --help\r\n<\/code><\/pre>\n<p>\nThe RaspiCam documentation has a full description of all the options.\n<\/p>\n<h4>\nRecording Video Using Raspivid<br \/>\n<\/h4>\n<p>\nThe default size for video recording is 1080p (1920&#215;1080)\u200b\n<\/p>\n<p>\nRecord a 5 second video clip example:\n<\/p>\n<pre>\r\n<code>\r\nraspivid -t 5000 -o save_as_filename.h264\r\n<\/code><\/pre>\n<h5>\nOptions<br \/>\n<\/h5>\n<p>\nShow all available Options\n<\/p>\n<pre>\r\n<code>\r\nraspivid --help\r\n<\/code><\/pre>\n<h4>\nRecording Audio With Your Videos<br \/>\n<\/h4>\n<p>\nWe&#39;ve not had need to do&nbsp;this yet &#8211; if anyone&#39;s found a good solution please comment below!\n<\/p>\n<p>\nPossible solutions:\n<\/p>\n<p>\n<a href=\"https:\/\/github.com\/iizukanao\/picam\">https:\/\/github.com\/iizukanao\/picam<\/a>\n<\/p>\n<h4>\nOther resources<br \/>\n<\/h4>\n<p>\n<a href=\"https:\/\/hmbd.wordpress.com\/2016\/08\/01\/raspberry-pi-video-and-audio-recording-and-streaming-guide\/\">https:\/\/hmbd.wordpress.com\/2016\/08\/01\/raspberry-pi-video-and-audio-recording-and-streaming-guide\/<\/a>\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Documentation Camera Board Documentation Connecting The Camera Ensure the Raspberry Pi board is not powered and connect the camera cable as shown: Setup For Camera Use Ensure the operating system is up to date by using these two commands: sudo apt-get update sudo apt-get upgrade Then run the config tool: sudo raspi-config Select the &#39;Enable [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[196],"tags":[],"class_list":["post-917","post","type-post","status-publish","format-standard","hentry","category-pre-bookworm-camera-use"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=917"}],"version-history":[{"count":15,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/917\/revisions"}],"predecessor-version":[{"id":2752,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/917\/revisions\/2752"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}