https://www.youtube.com/watch?v=BeyBu-Mzeq4
安 装:
sudo apt install motion
配置/etc/motion/motion.conf:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
daemon on width 640 height 480 framerate 100 post_capture 5 quality 100 stream_localhost off stream_authentication userxxx:passwdxxx webcontrol_localhsot off webcontrol_authentication userxxx:passwdxxx |
配置/etc/default/motion:
1 |
start_motion_daemon=yes |
1 2 3 |
sudo service motion restart sudo motion |
完成,用浏览器打开树莓派的IP:8080可以看到控制台,同时也有视频。打开IP:8081只有视频。
但是这个视频很卡,看样子只有2fps.