{"id":157,"date":"2020-11-01T15:02:20","date_gmt":"2020-11-01T15:02:20","guid":{"rendered":"https:\/\/www.zebadger.com\/wp\/?p=157"},"modified":"2021-05-02T12:43:47","modified_gmt":"2021-05-02T12:43:47","slug":"using-a-apeman-c450-dash-cam-as-a-security-camera-using-docker","status":"publish","type":"post","link":"https:\/\/www.zebadger.com\/wp\/?p=157","title":{"rendered":"Using an APEMAN  C450 Dash Cam as a security camera with ZoneMinder using Docker"},"content":{"rendered":"<p>Just plug the APEMAN C450 dash camera into your Linux server via USB and select &#8220;PC Camera&#8221; using the buttons on the side.<\/p>\n<p>Confirm it works with this command:<br \/>\n<code>ffmpeg -f video4linux2 -s 640x480 -i \/dev\/video0 -ss 0:0:2 -frames 1 \/tmp\/out.jpg<\/code><\/p>\n<p>Then download this docker-compose config file<br \/>\n<a href=\"https:\/\/github.com\/dlandon\/zoneminder\/blob\/master\/docker-compose.yaml\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/github.com\/dlandon\/zoneminder\/blob\/master\/docker-compose.yaml<\/a><\/p>\n<p>Add the video device to the docker-compose.yaml file:<br \/>\n<code>devices:<br \/>\n- \/dev\/video0:\/dev\/video0<\/code><\/p>\n<p>Install\/start your docker container:<br \/>\n<code>docker-compose up -d<\/code><\/p>\n<p>Then visit the freshly installed system on whatever your IP address that you have configured:<br \/>\n<code>https:\/\/192.168.0.25:8443\/zm\/<\/code><\/p>\n<p>To add the dash camera as a monitor :<br \/>\nGeneral Tab:<br \/>\n<code>  Source Type = Local<\/code><br \/>\nSource Tab:<br \/>\n<code>  Source Path = \/dev\/video0<br \/>\n1280 x 720<\/code><\/p>\n<p>Note that, when I first set this up recording, I was getting a corrupt\/ green frame of video at the beginning of the recording.\u00a0 Whatever was causing this made it trigger an event constantly.\u00a0 To fix this, I went into the settings for \/dev\/video0, buffer tab and changed Alarm frame count from 1 to 3<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just plug the APEMAN C450 dash camera into your Linux server via USB and select &#8220;PC Camera&#8221; using the buttons on the side. Confirm it works with this command: ffmpeg -f video4linux2 -s 640&#215;480 -i \/dev\/video0 -ss 0:0:2 -frames 1 \/tmp\/out.jpg Then download this docker-compose config file https:\/\/github.com\/dlandon\/zoneminder\/blob\/master\/docker-compose.yaml Add the video device to the docker-compose.yaml [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[],"class_list":["post-157","post","type-post","status-publish","format-standard","hentry","category-docker"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=157"}],"version-history":[{"count":5,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/157\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/157\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zebadger.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}