1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:36 +02:00

64 lines
1.2 KiB
Markdown
Raw Normal View History

2016-01-03 13:23:48 +08:00
motion-arm
==========
![](https://badge.imagelayers.io/vimagick/motion-arm:latest.svg)
[Motion][1] is a program that monitors the video signal from one or more cameras
and is able to detect if a significant part of the picture has changed. Or in
other words, it can detect motion.
2016-01-03 15:07:50 +08:00
## docker-compose.yml
```
motion:
image: vimagick/motion-arm
ports:
- "8080:8080"
- "8081:8081"
volumes:
# - ./motion.conf:/etc/motion/motion.conf
- ./motion:/var/lib/motion
devices:
- /dev/video0:/dev/video0
restart: always
```
You can edit `/etc/motion/motion.conf` to customize motion.
```
# set image width
2016-02-22 18:12:04 +08:00
width 640
2016-01-03 15:07:50 +08:00
# set image height
2016-02-22 18:12:04 +08:00
height 480
2016-01-03 15:07:50 +08:00
# set frame rate
framerate 5
# disable image output
output_pictures off
# disable video output
ffmpeg_output_movies off
# encode timelapse movie
ffmpeg_timelapse 60
```
2016-02-22 16:11:55 +08:00
Please read [this][2] to enable raspberry pi camera module.
```
####################
# /boot/config.txt #
####################
##Camera
gpu_mem=128
start_file=start_x.elf
fixup_file=fixup_x.dat
disable_camera_led=1
```
2016-01-03 13:23:48 +08:00
[1]: http://lavrsen.dk/foswiki/bin/view/Motion/WebHome
2016-02-22 16:11:55 +08:00
[2]: https://wiki.archlinux.org/index.php/Raspberry_Pi#Raspberry_Pi_camera_module