{"id":245,"date":"2018-04-25T01:53:24","date_gmt":"2018-04-24T16:53:24","guid":{"rendered":"http:\/\/www7390uo.sakura.ne.jp\/wordpress\/?p=245"},"modified":"2022-07-17T11:38:56","modified_gmt":"2022-07-17T02:38:56","slug":"raspbian%e3%81%abmotion%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%a6%e3%83%96%e3%83%a9%e3%82%a6%e3%82%b6%e3%81%8b%e3%82%89%e3%82%a6%e3%82%a7%e3%83%96%e3%82%ab%e3%83%a1%e3%83%a9%e3%81%ae%e6%98%a0","status":"publish","type":"post","link":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/245","title":{"rendered":"Raspbian\u306bmotion\u3092\u5c0e\u5165"},"content":{"rendered":"\n<p>Raspberry Pi 3 Model B<br>OS: Raspbian Stretch lite March 2018<br>Logicool HD Webcam C270<\/p>\n\n\n\n<p>Raspberry Pi 3 Model B\u306bHD Webcam C270\u3092\u63a5\u7d9a\u3059\u308c\u3070\u5ffd\u3061\u8a8d\u8b58\u3055\u308c\u308b\u3057\u3001uvcvideo\u30e2\u30b8\u30e5\u30fc\u30eb\u3082\u4f75\u305b\u3066\u30ed\u30fc\u30c9\u3055\u308c\u308b\u304b\u3089\u9762\u5012\u3068\u5411\u304b\u3044\u5408\u3046\u3053\u3068\u306a\u304f\u4f7f\u3048\u305d\u3046\u306a\u69d8\u5b50\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ lsusb\nBus 001 Device 004: ID 046d:0825 Logitech, Inc. Webcam C270\n\n$ lsmod | grep uvc\nuvcvideo               90112  0<\/pre>\n\n\n\n<p>motion\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u5925\u3057\u3044\u6570\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5c0e\u5165\u3055\u308c\u308b\u3002\u6b64\u308c\u306b\u52a0\u3048\u3066ffmpeg\u3082\u4f75\u305b\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u306e\u3067\u81ea\u524d\u3067\u30d3\u30eb\u30c9\u7528\u610f\u3057\u305fffmpeg\u304c\u3042\u308b\u306a\u3089\u3070\u4e0a\u66f8\u304d\u3055\u308c\u306c\u3088\u3046\u3061\u3087\u3063\u3068\u6ce8\u610f\u3092\u8981\u3059\u308b\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install motion<\/pre>\n\n\n\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3042\u308bstream_localhost\u304con\u306e\u307e\u307e\u3067\u3042\u308b\u3068localhost\u304b\u3089\u3057\u304b\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u69d8\u5b50\u3092\u89b3\u5bdf\u3067\u304d\u306a\u3044\u3002\u4ed6\u306e\u7aef\u672b\u304b\u3089\u78ba\u8a8d\u3057\u305f\u3044\u304b\u3089off\u306b\u5909\u66f4\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/etc\/motion\/motion.conf\n#stream_localhost on\nstream_localhost off<\/pre>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u3089motion\u3092\u8d77\u52d5\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo motion\n[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file \/etc\/motion\/motion.conf\n[0:motion] [NTC] [ALL] motion_startup: Motion 4.0 Started\n[0:motion] [NTC] [ALL] motion_startup: Logging to file (\/var\/log\/motion\/motion.log)<\/pre>\n\n\n\n<p>\u6b63\u5e38\u306b\u8d77\u52d5\u3057\u305f\u3089\u3001motion\u304c\u7a3c\u50cd\u3059\u308b\u30de\u30b7\u30f3\u306eIP\u30a2\u30c9\u30ec\u30b9\u306e8081\u756a\u30dd\u30fc\u30c8\u3078\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002\u3059\u308b\u3068\u3053\u3046\u3044\u3046\u5177\u5408\u3067\u3042\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"250\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion1.png\" alt=\"\" class=\"wp-image-247\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion1.png 330w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion1-300x227.png 300w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/a><figcaption>\u56f31. \u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a6\u30a7\u30d6\u30ab\u30e1\u30e9\u306e\u6620\u50cf\u3092\u78ba\u8a8d<\/figcaption><\/figure>\n<\/div>\n\n\n<p>\u306a\u304a\u3001\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30e2\u30fc\u30c9\u3068\u3044\u3046\u8a00\u8449\u306b\u60f9\u304b\u308c\u3066-s\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u3066\u8d77\u52d5\u3059\u308b\u3068\u51fa\u529b\u3055\u308c\u305f\u6620\u50cf\u306f\u3053\u3046\u3044\u3046\u6709\u69d8\u3067\u3042\u3063\u305f\u3002\u4f55\u304c\u306a\u3093\u3060\u304b\u4e00\u5bf8\u308f\u304b\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u307f\u308b\u3068\u5909\u5316\u306e\u3042\u3063\u305f\u753b\u7d20\u3092\u9ed2\u767d\u3084\u9752\u3067\u8868\u73fe\u3059\u308b\u3088\u3046\u306b\u8aad\u307f\u53d6\u308c\u308b\u3002\u52d5\u4f53\u691c\u77e5\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u969b\u306e\u30ce\u30a4\u30ba\u9664\u53bb\u3084\u95be\u5024\u306e\u6c7a\u5b9a\u3092\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u5f79\u7acb\u3064\u3088\u3046\u306a\u98a8\u60c5\u3067\u3042\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"334\" height=\"252\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion2.png\" alt=\"\" class=\"wp-image-248\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion2.png 334w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2018\/04\/motion2-300x226.png 300w\" sizes=\"auto, (max-width: 334px) 100vw, 334px\" \/><\/a><figcaption>\u56f32.\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u30e2\u30fc\u30c9\u3067\u8d77\u52d5\u3057\u305f\u969b\u306e\u6620\u50cf<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"link\">\u53c2\u8003:<\/h3>\n<ul>\n <li><a href=\"https:\/\/www.logicool.co.jp\/ja-jp\/product\/hd-webcam-c270\">HD Webcam C270<\/a><\/li>\n <li><a href=\"http:\/\/www.ideasonboard.org\/uvc\/\">Linux UVC driver and tools<\/a><\/li>\n <li><a href=\"https:\/\/motion-project.github.io\/index.html\">Motion<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi 3 Model BOS: Raspbian Stretch lite March 2018Logicool HD Webcam C270 Raspberry Pi 3 Model B\u306bHD Webcam C270\u3092\u63a5\u7d9a\u3059\u308c\u3070\u5ffd\u3061\u8a8d\u8b58\u3055\u308c\u308b\u3057\u3001uvcvideo\u30e2\u30b8\u30e5\u30fc\u30eb\u3082\u4f75\u305b\u3066\u30ed\u30fc\u30c9\u3055\u308c\u308b\u304b\u3089\u9762\u5012\u3068\u5411\u304b\u3044\u5408\u3046\u3053\u3068\u306a\u304f\u4f7f\u3048\u305d\u3046\u306a\u69d8\u5b50\u3067\u3042\u308b\u3002 $ lsusb Bus 001 D &#8230; <a title=\"Raspbian\u306bmotion\u3092\u5c0e\u5165\" class=\"read-more\" href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/245\" aria-label=\"Raspbian\u306bmotion\u3092\u5c0e\u5165 \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":246,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166],"tags":[173,165],"class_list":["post-245","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi","tag-motion","tag-165"],"views":6448,"_links":{"self":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":0,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media\/246"}],"wp:attachment":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}