Working Configurations - legotheboss/homebridge-camera-ffmpeg-omx GitHub Wiki

Foscam cameras

Working through RTSP. Models tested:

  • FI9900EP

config.json

{
   "platform":"Camera-ffmpeg",
   "cameras":[
      {
         "name":"Camera",
         "videoConfig":{
            "source":"-rtsp_transport tcp -re -i rtsp://username:[email protected]:port/videoSub",
            "stillImageSource":"-i http://username:[email protected]:port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=username&pwd=password",
            "maxStreams": 2,
            "maxWidth": 1280,
            "maxHeight": 720,
            "maxFPS": 30,
            "vcodec": "h264_omx"
         }
      }
   ]
}

Notes:

  • Replace XXX.XXX.XXX.XXX:port with the IP Address and port, ie: 192.168.0.10:88
  • For the source, use either “videoSub” or “videoMain” to select the sub or main stream
  • Runs smoothly on a RaspberryPi 2 Model B, with the MPEG codec enabled
  • Without the “-rtsp_transport tcp”, the live feed stutters, so make sure it’s added