Update FFMPEG

You should be on FFMPEG 3.x or greater for the best performance.

Log in to your camera's internal settings

You will need to access the camera's internal settings. This can either be done through the web browser or through a third party tool like an ONVIF Device Manager. Once you have access find and change these option to the settings shown as follows.

  • Framerate (FPS) : High : 10 - 15 FPS, Low : 2-5 FPS
  • I-frame interval : 80
  • Bit Rate Type : CBR (Constant Bit Rate)
  • Bit Rate : between 256kbps - 500kbps

Settings in Shinobi

For the input section I used:

  • RTSP Transport : TCP
  • Analyzation Duration : 1000000
  • Probe Size : 1000000

For the streaming section I used:

  • Stream Type : HLS
  • Video Codec : copy
  • Audio Codec : AAC or No Audio

For the recording section I used:

  • Video Codec : copy
  • Audio Codec : AAC or No Audio

Be aware audio recording is illegal in regions of the world. Please contact your local law enforcement if you are unsure.

What I gained and What I lost

I gained a lot of storage space. The file sizes before the change were around 150mb to 300mb for each 15 minute segment per camera. After the changes the files were around 40mb to 70mb with minimal quality loss, if any.

Where my cameras are and where my Shinobi is

My cameras are located around Vancouver, B.C., Canada. The Shinobi server is running in Paris, France and the quality was good enough to catch a turf thief.

List of ONVIF Device Managers

If you have any to suggest please let me know in the comments below!

Experiencing artifacts and smearing?

Check out "Ways to resolve smearing, smudging, streaking, melting, and artifacts".