{"id":42385,"date":"2021-06-08T09:00:15","date_gmt":"2021-06-08T07:00:15","guid":{"rendered":"https:\/\/botland.com.pl\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/"},"modified":"2021-06-08T09:00:15","modified_gmt":"2021-06-08T07:00:15","slug":"taking-photos-and-videos-by-using-the-raspberry-pi","status":"publish","type":"post","link":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/","title":{"rendered":"Taking photos and videos by using the Raspberry Pi"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Reading time:<\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">min.<\/span><\/span><p><b>Raspberry Pi is a versatile computer that can do a lot. Apart from the functionality of a typical desktop computer for office tasks and browsing the Internet, it can also be used as an advanced external hardware driver. One of the optional elements of additional equipment for the Raspberry Pi is a miniature HD camera module. Dedicated Raspberry Pi camera modules allow you to take photos and record videos in very good quality. Thanks to this you can build a macro-photography bus as well as an image monitoring system for security purposes. In this article we describe how to connect and operate the Raspberry Pi camera.<\/b><\/p>\n<h2>How to connect camera module to Raspberry Pi?<\/h2>\n<p>Before unpacking the RPi camera, make sure you get your hands free of any static electricity by touching a metal tap, heater, or other object that is properly grounded. When unpacking the camera module, it can be easily damaged due to the sensitivity of onboard electronics to electrostatic discharge (ESD). After unpacking the camera module from the box and anti-static bag, release the CSI connector plastic latches. The CSI connector is placed on a Raspberry Pi board. The multi-cable tape from the camera module should be inserted into the CSI connector with the blue cover oriented towards the Ethernet connector (except for the Pi 4B model, the CSI connector is placed between the micro HDMI socket and the 3.5mm audio jack socket). After inserting multi-wire ribbon into the CSI connector, make sure that ribbon pins are evenly inserted into the connector, fix the ribbon and press the CSI connector latches on both sides. The camera is now ready for use.<\/p>\n<h2>How to use the camera with Raspberry Pi?<\/h2>\n<p>Before we start using webcam, we need to check if Raspberry Pi software is up-to-date and that all the necessary drivers are installed. Don&#8217;t forget about the Internet connection. Open the console and type the command:<\/p>\n<pre data-line=\"><code>\n\t\t\t\t\t\n\t\t\t\t<\/code><\/pre>\n<p>Press Enter. When the answer is displayed, type:<\/p>\n<pre data-line=\"><code>\n\t\t\t\t\t\n\t\t\t\t<\/code><\/pre>\n<p>Confirm it with Enter. Open the OS configuration options, then &#8220;Interfaces&#8221; tab, then click &#8220;Enabled&#8221; next to &#8220;Camera&#8221;. Now you have to reboot your Raspberry Pi. Open the command console again and after entering the &#8220;raspistill&#8221; command a list of options and parameters that we can customize for taking photos will be displayed, eg image dimensions &amp; quality. Likewise, when you want to list the commands and parameters for movie recording, type the command \u201craspivid\u201d.<\/p>\n<p>The default image resolution for video recording is 1920 x 1080.<\/p>\n<p>To take a photo, enter \u201craspistill -o name.jpg\u201d in the command console, where \u201cname\u201d is the file name of the photo. Set the camera&#8217;s physical position, press Enter and it&#8217;s done. Each time you take a picture, you must enter a new file name each time. However, if you want to record a movie, enter &#8220;raspivid -o name.h264 -t 10000&#8221;, where &#8220;name&#8221; is the file name of the video, h264 is a supported video codec and 10000 is an example duration time of video which is measured in milliseconds &#8211; in this case it&#8217;s a 10000ms which is equal to 10s, but you can set it on a different value, depending on your needs. By default, photos and videos are saved to the root folder on the Raspberry Pi OS. To open the photo preview, click on the photo thumbnail. However, to play movies, you need to type \u201comxplayer name.h264&#8221; in the commands console (where \u201cname\u201d is a file name of the video) and press Enter. Enjoy your video!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the greatest Raspberry Pi features is the ability to capture image, both in form of photos and videos. See how do it easily.<\/p>\n","protected":false},"author":6,"featured_media":42386,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[343,341],"tags":[],"class_list":["post-42385","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-en","category-tips"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Taking photos and videos by using the Raspberry Pi - Botland<\/title>\n<meta name=\"description\" content=\"One of the greatest Raspberry Pi features is the ability to capture image, both in form of photos and videos. See how do it easily.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Taking photos and videos by using the Raspberry Pi - Botland\" \/>\n<meta property=\"og:description\" content=\"One of the greatest Raspberry Pi features is the ability to capture image, both in form of photos and videos. See how do it easily.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/\" \/>\n<meta property=\"og:site_name\" content=\"Botland\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/Botland\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-08T07:00:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/11-kamery-rpi.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1510\" \/>\n\t<meta property=\"og:image:height\" content=\"1510\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Maciej Chmiel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Maciej Chmiel\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/\"},\"author\":{\"name\":\"Maciej Chmiel\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/7dc2a9884b42767fa40ffc62d97e81a4\"},\"headline\":\"Taking photos and videos by using the Raspberry Pi\",\"datePublished\":\"2021-06-08T07:00:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/\"},\"wordCount\":590,\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/11-kamery-rpi.jpg\",\"articleSection\":[\"Raspberry Pi\",\"Tips\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/\",\"name\":\"Taking photos and videos by using the Raspberry Pi - Botland\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/11-kamery-rpi.jpg\",\"datePublished\":\"2021-06-08T07:00:15+00:00\",\"description\":\"One of the greatest Raspberry Pi features is the ability to capture image, both in form of photos and videos. See how do it easily.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/11-kamery-rpi.jpg\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/07\\\/11-kamery-rpi.jpg\",\"width\":1510,\"height\":1510},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/taking-photos-and-videos-by-using-the-raspberry-pi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\\\/\\\/botland.store\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Taking photos and videos by using the Raspberry Pi\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"name\":\"Botland\",\"description\":\"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland\",\"publisher\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#organization\",\"name\":\"Botland\",\"url\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo_kolor_WP_2-1.png\",\"width\":250,\"height\":57,\"caption\":\"Botland\"},\"image\":{\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/Botland\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/botland.com.pl\\\/blog\\\/#\\\/schema\\\/person\\\/7dc2a9884b42767fa40ffc62d97e81a4\",\"name\":\"Maciej Chmiel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"contentUrl\":\"https:\\\/\\\/botland.store\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/logo_kolor_WP_3-1-150x150.png\",\"caption\":\"Maciej Chmiel\"},\"description\":\"Specjalista od Arduino i szeroko rozumianej elektroniki. Cz\u0142owiek-orkiestra, dy\u017curny od wszystkiego - nie ma dla niego rzeczy niemo\u017cliwych, a czas ich realizacji jest zwykle prawie natychmiastowy. Po pracy mi\u0142o\u015bnik kresk\u00f3wek z Pepe Panem Dziobakiem. Jego bezcenne memy wspomagaj\u0105 dzia\u0142 kreatywny.\",\"url\":\"https:\\\/\\\/botland.store\\\/blog\\\/author\\\/maciek\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Taking photos and videos by using the Raspberry Pi - Botland","description":"One of the greatest Raspberry Pi features is the ability to capture image, both in form of photos and videos. See how do it easily.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/","og_locale":"en_US","og_type":"article","og_title":"Taking photos and videos by using the Raspberry Pi - Botland","og_description":"One of the greatest Raspberry Pi features is the ability to capture image, both in form of photos and videos. See how do it easily.","og_url":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/","og_site_name":"Botland","article_publisher":"https:\/\/facebook.com\/Botland\/","article_published_time":"2021-06-08T07:00:15+00:00","og_image":[{"width":1510,"height":1510,"url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/11-kamery-rpi.jpg","type":"image\/jpeg"}],"author":"Maciej Chmiel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Maciej Chmiel","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/#article","isPartOf":{"@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/"},"author":{"name":"Maciej Chmiel","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/7dc2a9884b42767fa40ffc62d97e81a4"},"headline":"Taking photos and videos by using the Raspberry Pi","datePublished":"2021-06-08T07:00:15+00:00","mainEntityOfPage":{"@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/"},"wordCount":590,"publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"image":{"@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/11-kamery-rpi.jpg","articleSection":["Raspberry Pi","Tips"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/","url":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/","name":"Taking photos and videos by using the Raspberry Pi - Botland","isPartOf":{"@id":"https:\/\/botland.com.pl\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/#primaryimage"},"image":{"@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/11-kamery-rpi.jpg","datePublished":"2021-06-08T07:00:15+00:00","description":"One of the greatest Raspberry Pi features is the ability to capture image, both in form of photos and videos. See how do it easily.","breadcrumb":{"@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/#primaryimage","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/11-kamery-rpi.jpg","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2022\/07\/11-kamery-rpi.jpg","width":1510,"height":1510},{"@type":"BreadcrumbList","@id":"https:\/\/botland.store\/blog\/taking-photos-and-videos-by-using-the-raspberry-pi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/botland.store\/blog\/"},{"@type":"ListItem","position":2,"name":"Taking photos and videos by using the Raspberry Pi"}]},{"@type":"WebSite","@id":"https:\/\/botland.com.pl\/blog\/#website","url":"https:\/\/botland.com.pl\/blog\/","name":"Botland","description":"Blog Raspberry Pi, Arduino, elektronika i robotyka - Botland","publisher":{"@id":"https:\/\/botland.com.pl\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/botland.com.pl\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/botland.com.pl\/blog\/#organization","name":"Botland","url":"https:\/\/botland.com.pl\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2018\/04\/logo_kolor_WP_2-1.png","width":250,"height":57,"caption":"Botland"},"image":{"@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/Botland\/"]},{"@type":"Person","@id":"https:\/\/botland.com.pl\/blog\/#\/schema\/person\/7dc2a9884b42767fa40ffc62d97e81a4","name":"Maciej Chmiel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","url":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","contentUrl":"https:\/\/botland.store\/blog\/wp-content\/uploads\/2019\/03\/logo_kolor_WP_3-1-150x150.png","caption":"Maciej Chmiel"},"description":"Specjalista od Arduino i szeroko rozumianej elektroniki. Cz\u0142owiek-orkiestra, dy\u017curny od wszystkiego - nie ma dla niego rzeczy niemo\u017cliwych, a czas ich realizacji jest zwykle prawie natychmiastowy. Po pracy mi\u0142o\u015bnik kresk\u00f3wek z Pepe Panem Dziobakiem. Jego bezcenne memy wspomagaj\u0105 dzia\u0142 kreatywny.","url":"https:\/\/botland.store\/blog\/author\/maciek\/"}]}},"_links":{"self":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/comments?post=42385"}],"version-history":[{"count":0,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/posts\/42385\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media\/42386"}],"wp:attachment":[{"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/media?parent=42385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/categories?post=42385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/botland.store\/blog\/wp-json\/wp\/v2\/tags?post=42385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}