Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create real-time monitoring with motion and raspberry pie

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces motion plus raspberry pie how to create real-time monitoring, the content is very detailed, interested friends can refer to, hope to be helpful to you.

Sudo apt-get install motion

Sudo nano / etc/default/motion

Change the no inside to yes, so that motion can always run in the background: start_motion_daemon=yes

Sudo nano / etc/motion/motion.conf

# start in daemon (background) mode and open the terminal by 2 (default: off)

Daemon on

# output a "normal" picture after motion is detected (default: on)

[...]

Output_normal off

# the file that stores the process number, also known as the pid file. (default: not defined).

Process_id_file / var/run/motion/motion.pid

# Image width (pixels). Valid range: depending on the camera, default: 352 pixels

Width 640

# Image height (pixels). Valid range: depending on the camera, default: 288 pixels

Height 480

# the maximum number of frames taken per second.

# valid range: 2-100. The default is 100 (almost unlimited).

Framerate 7

# if you use the URL to be used by the webcam, the size will be automatically detected (including http://, ftp:// or file:///)

# must be a URL that returns a single JPEG image or the original MJPEG stream. Default: undefined

Netcam_url value http://http://192.168.10.250:8080/videostream.cgi

# username and password of the webcam (as long as needed). Default: undefined

# Syntax is user: password

Netcam_userpass admin:mypassword

# basic target directory for storing pictures and clips

# the recommended absolute path. (default: current working directory)

Target_dir / home/carla/motion-images

# ffmpeg codec for video compression.

[...]

Ffmpeg_video_codec mpeg4

Create a directory to store PID files because it indicates in motion.conf:

$sudo mkdir / var/run/motion

Start motion

Sudo motion

Exit motion

Killall-TERM motion

Or

Service motion stop about motion plus raspberry pie how to create real-time monitoring here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report