Skip to content

20170827

Pre-release
Pre-release
Compare
Choose a tag to compare
@jasaw jasaw released this 21 Sep 05:08
· 43101 commits to mods since this release

Based on ccrisan's version 20170827 minus the password changes. This branch supports hardware accelerated video encoding on all Raspberry Pi models.
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: 10 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:

  • Web UI may not load properly. Try clearing browser cache.