1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/motion-arm
2016-04-05 22:03:30 +08:00
..
docker-compose.yml update motion-arm 2016-04-05 22:03:30 +08:00
Dockerfile update motion-arm 2016-04-05 22:03:30 +08:00
README.md add jenkins-arm 2016-02-22 18:12:04 +08:00

motion-arm

Motion 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.

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
width 640

# set image height
height 480

# set frame rate
framerate 5

# disable image output
output_pictures off

# disable video output
ffmpeg_output_movies off

# encode timelapse movie
ffmpeg_timelapse 60

Please read this 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