{"id":305,"date":"2020-10-04T11:43:49","date_gmt":"2020-10-04T09:43:49","guid":{"rendered":"https:\/\/rizzus.tech\/?p=305"},"modified":"2020-10-04T11:44:08","modified_gmt":"2020-10-04T09:44:08","slug":"raspberry-webcam-server","status":"publish","type":"post","link":"https:\/\/rizzus.tech\/?p=305","title":{"rendered":"RaspBerry WebCam Server"},"content":{"rendered":"<p>sudo apt install autoconf automake build-essential pkgconf libtool git libzip-dev libjpeg-dev gettext libmicrohttpd-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev default-libmysqlclient-dev libpq-dev libsqlite3-dev libwebp-dev<\/p>\n<p>sudo wget https:\/\/github.com\/Motion-Project\/motion\/releases\/download\/release-4.3.1\/pi_buster_motion_4.3.1-1_armhf.deb<\/p>\n<p>sudo dpkg -i pi_buster_motion_4.3.1-1_armhf.deb<\/p>\n<p>sudo nano \/etc\/motion\/motion.conf<\/p>\n<blockquote><p>Find the following lines and update them to the following.<\/p>\n<ul class=\"pi_list_style\">\n<li>daemon on<\/li>\n<li>stream_localhost off<\/li>\n<\/ul>\n<p><strong>Note:<\/strong>\u00a0Change the following two lines from on to off if you\u2019re having issues with the stream freezing whenever motion occurs.<\/p>\n<ul class=\"pi_list_style\">\n<li>picture_output off<\/li>\n<li>movie_output off<\/li>\n<\/ul>\n<p><strong>Optional (Don\u2019t include the text after the #)<\/strong><\/p>\n<ul class=\"pi_list_style\">\n<li>stream_maxrate 100\u00a0<strong>#\u00a0<\/strong>This change will allow for real-time streaming but requires more bandwidth &amp; resources. Needs to be added to the config file,\u00a0<strong>default is 1<\/strong><\/li>\n<li>framerate 100\u00a0<strong>#\u00a0<\/strong>Changing this option will allow for 100 frames to be captured per second allowing for smoother video,\u00a0<strong>default is 50<\/strong><\/li>\n<li>width 640\u00a0<strong>#<\/strong>This line changes the width of the image displayed,\u00a0<strong>default is 640<\/strong><\/li>\n<li>height 480\u00a0<strong>#<\/strong>This option changes the height of the image displayed,\u00a0<strong>default is 480<\/strong><\/li>\n<\/ul>\n<p>Altering these options can drastically affect the performance. You may need to tinker to get the best results.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>sudo nano \/etc\/default\/motion<\/p>\n<blockquote><p>start_motion_daemon=yes<\/p><\/blockquote>\n<p>sudo service motion start<\/p>\n<p>connect to http:\/\/RASPBERRY_IP:8081<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo apt install autoconf automake build-essential pkgconf libtool git libzip-dev libjpeg-dev gettext libmicrohttpd-dev libavformat-dev libavcodec-dev&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/rizzus.tech\/?p=305\">Read the post<span class=\"screen-reader-text\">RaspBerry WebCam Server<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":307,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi","excerpt","zoom","full-without-featured","even","excerpt-0"],"_links":{"self":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305"}],"version-history":[{"count":1,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions\/306"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=\/wp\/v2\/media\/307"}],"wp:attachment":[{"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rizzus.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}