20170710
Based on ccrisan's version 20170710, but with hwaccel for Raspberry Pi. More information about hwaccel here motioneye-project#365.
This is completely untested and highly experimental. Use at your own risk.
To get the optimum configuration, tune the following:
- Resolution : higher resolution uses more memory and CPU
- Framerate : higher frame rate uses more CPU
- Pre-capture : pre-captured frames are stored in RAM
- Minimum motion frames : frames are stored in RAM as well
- bcm2835-v4l2 max_video_width and max_video_height : higher number uses more GPU memory, if set lower than configured resolution, camera uses still mode i.e. low fps, no AE/AGC.
- Remount root filesystem as read-write.
- Edit /etc/modules file.
- GPU memory : allocating less GPU memory means more memory for MotionEye. Examples below for bcm2835-v4l2 max_video_width=1920 max_video_height=1200
- 800 x 600 resolution : 66MB
- 1280 x 720 resolution : 70MB
- 1280 x 1024 resolution : 75MB
- 1920 x 1080 resolution : 83MB
- Use "gpu_stats" script to check GPU available memory.
- Disable FTP server and/or Samba server if not needed.
Pi Zero W example configuration:
- GPU memory: 70M
- Resolution: 1280 x 720
- Frame rate: 20 fps
- Movie format: H.264 (mp4 or mkv)
- Pre-capture: 20 frames or less (higher pre-cap uses more RAM)
- Minimum motion frames: 15 frames (higher value uses more RAM)
- Disable FTP server and/or Samba server if not needed.
- No live-stream and no web browser connection as it loads the CPU.
It is possible to run 1024 x 576 resolution on Raspberry Pi 256MB RAM, but need to tweak a few things to optimize the memory usage:
- /etc/modules: bcm2835-v4l2 max_video_width=1024 max_video_height=600
- GPU memory: 66MB
- Pre-capture: 0 frame
- Frame rate: 15 fps
- Minimum motion frames: 10 frames or less
- Disable FTP server and Samba server (under web UI services section)
- No live-stream and no web browser connection as it loads the CPU.
Known issues / limitations:
- Wifi stops working after first boot when connecting to certain access points. Workaround here: motioneye-project#1012
- Samba server may not work with Windows 10.