{"id":27579,"date":"2025-09-26T16:48:29","date_gmt":"2025-09-26T07:48:29","guid":{"rendered":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=27579"},"modified":"2025-09-26T16:48:29","modified_gmt":"2025-09-26T07:48:29","slug":"atom-cam-2%e3%81%aertsp%e3%82%92raspi3%e3%81%a7%e8%a6%8b%e3%82%8b-update-2025-09-26","status":"publish","type":"post","link":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=27579","title":{"rendered":"ATOM Cam 2\u306eRTSP\u3092RasPi3\u3067\u898b\u308b update (2025\/09\/26)"},"content":{"rendered":"\n<p>&#12381;&#12398;&#24460;&#12418;ATOM Tech&#31038;&#12398;ATOM Cam2&#12364;&#20986;&#21147;&#12377;&#12427;Real Time Streaming Protocol (RTSP)&#12434;Raspberry Pi 3 Model B (RPi3)&#12362;&#12424;&#12403;&#21516;+ (RPi3+)&#12391;&#35222;&#32884;&#12377;&#12427;&#12471;&#12473;&#12486;&#12512;&#12434;&#23569;&#12375;&#12378;&#12388;&#12356;&#12376;&#12426;&#12394;&#12364;&#12425;&#36939;&#29992;&#12375;&#12390;&#12356;&#12414;&#12377;&#65294;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&#29694;&#22312;&#12398;&#29366;&#27841; (RPi3, RPi3+&#20849;&#36890;)<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">&#12471;&#12473;&#12486;&#12512;&#27083;&#25104;<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>1GB RAM, 32GB microSD&#12459;&#12540;&#12489; (RPi3+&#12399;64GB)<\/li>\n\n\n\n<li>Raspberry Pi OS 12 (Bookworm)<\/li>\n\n\n\n<li>dphys-swapfile 512MB &#20351;&#29992; (&#12452;&#12531;&#12473;&#12488;&#12540;&#12523;&#12398;&#12487;&#12501;&#12457;&#12523;&#12488;&#35373;&#23450;)&#65292;ZRAM&#19981;&#20351;&#29992;<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">VLC&#12398;&#36215;&#21205;<\/h4>\n\n\n\n<p>$HOME\/bin\/run_vlc.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nkillall vlc\nsleep 3\nDISPLAY=:0 \/usr\/bin\/vlc   \\\n\t-f \\\n\trtsp:\/\/\u30ab\u30e1\u30e9\u306eUserID:\u30d1\u30b9\u30ef\u30fc\u30c9@\u30ab\u30e1\u30e9\u306eIP\u30a2\u30c9\u30ec\u30b9\/live\t\\\n  \t&gt; \/dev\/null 2&gt;&amp;1 &amp;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">systemd&#12398;&#35373;&#23450;<\/h4>\n\n\n\n<p>$HOME\/.config\/systemd\/run_vlc.service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># run_vlc.service\n&#91;Unit]\nDescription=Run vlc\nDefaultDependencies=no\nAfter=graphical.target\n\n&#91;Service]\nType=simple\nExecStart=\/PATH\/TO\/THE\/SCRIPT\/run_vlc.sh\nTimeoutStartSec=0\nRemainAfterExit=yes\n\n&#91;Timer]\nOnBootSec=15sec\n\n&#91;Install]\nWantedBy=timers.target<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">&#35373;&#23450;<\/h4>\n\n\n\n<p>&#12518;&#12540;&#12470;&#12540;&#27177;&#38480;&#12395;&#12390;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl --user enable run_vlc<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">&#20877;&#36215;&#21205;&#12398;&#20181;&#32068;&#12415;<\/h4>\n\n\n\n<p>$HOME\/bin\/rerun_vlc.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nsystemctl --user restart run_vlc <\/code><\/pre>\n\n\n\n<p>$HOME\/.config\/systemd\/user\/rerun_vlc.service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># rerun_vlc.service\n&#91;Unit]\nDescription=Re-run vlc\nDefaultDependencies=no\nAfter=run_vlc.target\n\n&#91;Service]\nType=simple\nExecStart=\/PATH\/TO\/THE\/SCRIPT\/rerun_vlc.sh\nTimeoutStartSec=0\nRemainAfterExit=no\n\n&#91;Install]\nWantedBy=default.target <\/code><\/pre>\n\n\n\n<p>$HOME\/.config\/systemd\/user\/rerun_vlc.timer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># rerun_vlc.timer\n&#91;Unit]\nDescription=Rerun vlc every day at 11:32\nAfter=graphical.target\n\n&#91;Timer]\nOnCalendar=*-*-* 11:32:00\nOnCalendar=*-*-* 04:30:00\n\n&#91;Install]\nWantedBy=timers.target<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">&#35373;&#23450;<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl --user enable rerun_vlc.timer<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">&#35299;&#35500;<\/h3>\n\n\n\n<p><a href=\"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=27342\" data-type=\"post\" data-id=\"27342\">&#24467;&#21069;<\/a>&#12392;&#19968;&#30058;&#22823;&#12365;&#12367;&#30064;&#12394;&#12427;&#12398;&#12399;&#65292;run_vlc.timer&#12434;&#28961;&#12367;&#12375;&#12390;&#65292;&#12381;&#12398;&#27231;&#33021;&#12434;run_vlc.service&#12395;&#21512;&#20307;&#12373;&#12379;&#12383;&#12371;&#12392;&#12391;&#12377;&#65294;<\/p>\n\n\n\n<p>&#20182;&#12399;&#22823;&#12365;&#12367;&#22793;&#12360;&#12390;&#12356;&#12414;&#12379;&#12435;&#12364;&#65292;ATOM Cam 2&#12399;&#27598;&#26085;11:30&#12395;&#20877;&#36215;&#21205;&#12377;&#12427;&#12424;&#12358;&#12395;&#12375;&#12390;&#65292;RPi3(+)&#12399;&#12381;&#12428;&#12395;&#23550;&#24540;&#12375;&#12390;&#27598;&#26085;11:32&#12392;&#65292;&#24565;&#12398;&#12383;&#12417;4:30&#12395;VLC&#12434;&#20877;&#36215;&#21205;&#12373;&#12379;&#12427;&#12424;&#12358;&#12395;&#12375;&#12390;&#12356;&#12414;&#12377;&#65294;<\/p>\n\n\n\n<p>&#23433;&#23450;&#24615;&#12392;&#12375;&#12390;&#12399;&#65292;RPi3&#65292;RPi3+&#12392;&#12418;&#12395;1&#26085;&#12395;1&#24230;&#12367;&#12425;&#12356;&#12398;&#12495;&#12531;&#12464;&#12450;&#12483;&#12503;&#12391;&#12377;&#65294;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u306e\u5f8c\u3082ATOM Tech\u793e\u306eATOM Cam2\u304c\u51fa\u529b\u3059\u308bReal Time Streaming Protocol (RTSP)\u3092Raspberry Pi 3 Model B (RPi3)\u304a\u3088\u3073\u540c+ (RPi3+)\u3067\u8996\u8074\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u5c11\u3057\u305a\u3064\u3044\u3058\u308a\u306a\u304c\u3089\u904b\u7528\u3057\u3066\u3044\u307e\u3059\uff0e \u73fe\u5728\u306e\u72b6\u6cc1 (RPi3, RPi3+\u5171\u901a) \u30b7\u30b9\u30c6\u30e0\u69cb\u6210 VLC\u306e\u8d77\u52d5 $HOME\/bin\/run_vlc.sh systemd\u306e\u8a2d\u5b9a $HOME\/.config\/systemd\/run_vlc.service \u8a2d\u5b9a \u30e6\u30fc\u30b6\u30fc\u6a29\u9650\u306b\u3066 \u518d\u8d77\u52d5\u306e\u4ed5\u7d44\u307f $HOME\/bin\/rerun_vlc.sh $HOME\/.config\/systemd\/user\/rerun_vlc.service $HOME\/.config\/systemd\/user\/rerun_vlc.timer \u8a2d\u5b9a \u89e3\u8aac \u5f93\u524d\u3068\u4e00\u756a\u5927\u304d\u304f\u7570\u306a\u308b\u306e\u306f\uff0crun_vlc.timer\u3092\u7121\u304f\u3057\u3066\uff0c\u305d\u306e\u6a5f\u80fd\u3092run_vlc.service\u306b\u5408\u4f53\u3055\u305b\u305f\u3053\u3068\u3067\u3059\uff0e \u4ed6\u306f\u5927\u304d\u304f\u5909\u3048\u3066\u3044\u307e\u305b\u3093\u304c\uff0cATOM Cam 2\u306f\u6bce\u65e511:30\u306b\u518d\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u3057\u3066\uff0cRPi3(+)\u306f\u305d\u308c\u306b\u5bfe\u5fdc\u3057\u3066\u6bce\u65e511:32\u3068\uff0c\u5ff5\u306e\u305f\u30814:30\u306bVLC\u3092\u518d\u8d77\u52d5\u3055\u305b\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\uff0e \u5b89\u5b9a\u6027\u3068\u3057\u3066\u306f\uff0cRPi3\uff0cRPi3+\u3068\u3082\u306b1\u65e5\u306b1\u5ea6\u304f\u3089\u3044\u306e\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3067\u3059\uff0e<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_daextam_enable_autolinks":"1","footnotes":""},"categories":[8,27,28],"tags":[],"class_list":["post-27579","post","type-post","status-publish","format-standard","hentry","category-linux","category-rasapberry-pi","category-security"],"publishpress_future_action":{"enabled":false,"date":"2026-04-15 12:30:30","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/27579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27579"}],"version-history":[{"count":0,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/27579\/revisions"}],"wp:attachment":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}