Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming stops after ~20 seconds on RPi 3b #147

Closed
JoshuaHolme opened this issue Oct 4, 2020 · 36 comments
Closed

Streaming stops after ~20 seconds on RPi 3b #147

JoshuaHolme opened this issue Oct 4, 2020 · 36 comments
Labels
bug Something isn't working help wanted Extra attention is needed stale Stale issue not being worked on

Comments

@JoshuaHolme
Copy link

Describe The Bug:

My Doorbell cameras are very inconsistent with their behavior. They work fine in the Home app but can’t seem to make up their mind when it comes to the Home App and HomeBridge. I’ve tried clean installs of HomeBridge, updating the plugin multiple times, nothing has worked so far. The cameras will keep buffering and eventually timeout. I’m running HomeBridge on an old server with dual Intel Xeon 5345 CPUs, 14GB of RAM, and Windows Server 2008 R2. Everything else about this plugin works, EXCEPT for the cameras. I don’t believe my hardware is limiting the experience since it works on Raspberry Pi’s, but I can’t figure out what else it could be. Does camera support work reliably for everyone else? I have Picture Quality set to 1080p in settings, could this be the issue? My connection strength is listed as Moderate in the app, however there are no issues with the camera in the SimpliSafe app. I’m at a loss for what to do here.

Homebridge Config:

{
    "bridge": {
        "name": "Homebridge 0745",
        "username": "**:**:**:**:**:**",
        "port": *****,
        "pin": "***-**-***"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": ****,
            "platform": "config"
        },
        {
            "name": "Home Alarm",
            "auth": {
                "username": "****",
                "password": "****"
            },
            "cameras": true,
            "debug": true,
            "sensorRefresh": 15,
            "persistAccessories": false,
            "resetSimpliSafeId": false,
            "cameraOptions": {
                "enableHwaccelRpi": false
            },
            "platform": "homebridge-simplisafe3.SimpliSafe 3"
        }
    ]
}

Screenshots:

https://youtu.be/q9x3IhcjYsE

Environment:

  • Plugin version: 1.6.8
  • Node.js Version: 12.18.4
  • NPM Version: 6.14.6
  • Homebridge Version: 1.1.6
  • Operating System: Windows Server 2008 R2 Standard
@JoshuaHolme JoshuaHolme added bug Something isn't working unconfirmed Issue has not been verified labels Oct 4, 2020
@shamoon
Copy link
Collaborator

shamoon commented Oct 4, 2020

Hello again Joshua. Your issue isnt very clear, you said the doorbells "work fine in the Home app but can’t seem to make up their mind when it comes to the Home App and HomeBridge". Those two statements are kinda contradictory, Im not sure what you meant. Homebridge simply acts as a "bridge" that allows HomeKit (most often via Home.app but other ways too of course) to work with a device. But your video is illustrative. A few thoughts:

  • Windows is not the ideal platform, in my opinion, for Homebridge. You said things work on your Raspberry Pi, which would support this idea. Its not necessarily about the hardware resources, its about how well the underlying software (node, Homebridge, FFMPEG, etc) run on the Windows platform. Not to mention a platform that is 12 years old and technically EOL'd.
  • You describe a few different un-tested theories. If the app shows only Moderate signal strength, perhaps (at least temporarily) move things to get it to be Strong and see if that helps? Or lower the picture quality to 720p and see if that helps? Keep in mind that since this plugin is 'unofficially' integrated with SS we are forced to do things like stream the cameras via the internet instead of locally which would of course be far superior.
  • You didn't include your logs when the error happens which is part of the issue template. It might not be revealing but perhaps it would if there's an actual bug to be found.

FWIW, I run my doorbell at 1080p and it does work reliably for me (just slower than I wish). I run Homebridge on a Linux box.

@shamoon
Copy link
Collaborator

shamoon commented Oct 4, 2020

Ps. You might want to poke around the official Homebridge Discord server and Reddit community to see if there's more out there about Running things in Windows

@JoshuaHolme
Copy link
Author

Sorry about that, I meant it works fine in the SimpliSafe app, but not the home app. I didn’t include the logs because nothing appeared in the homebridge logs when the camera didn’t connect, and it just showed the regular initialization entries into the logs, so I didn’t think to add it.

I haven’t tried it on Linux, but I was estimating based on your success with it and having the hardware acceleration for Linux in the setup guide. What raspberry pi is required to run it? I have an older one, I think either a Pi 2 or a Raspberry Pi B+ that I could try to run it on. Would those work or would they be too old?

When you say it works reliably for you, and just slower, what do you mean by slower? I know I’ve written in a lot about this but I just struggle to see why I have so many issues when others don’t seem to, and the hardest part about trying to troubleshoot it myself is not knowing what the expected behavior is, or how long it usually takes to load the video stream. Knowing that it works reliable for you on Linux at 1080p definitely helps to narrow it down. I’m trying to figure out what exactly is causing my issues, so I can cross 1080p off of the list. If you think one of those raspberry pi’s are powerful enough to run it then that will be the next thing I try, but I don’t know the hardware requirements of homebridge or this plugin

Sent with GitHawk

@shamoon
Copy link
Collaborator

shamoon commented Oct 4, 2020

Ah, now I understand.

For the logs, please ensure you have the debug -D option enabled for homebridge and debug enabled for this plugin (it is in your copy/pasted config) and send the logs. There absolutely will be output.

I meant the stream takes longer to start than I wish, which you and I have discussed before and I think is a lot to do with the camera hardware and SS servers (again, we're streaming from camera --> SS server --> HomeKit which just makes for a longer round-trip). I just tested this and it takes about 5 seconds to start in my Home.app, about the exact same time it takes in the SimpliSafe web app, if youre curious https://youtu.be/dE-i6-_hecA & https://youtu.be/BAEgjbu3juE

I used to have a Pi3b which ran it OK.

@JoshuaHolme
Copy link
Author

This helps me immensely knowing how long of a delay you get, but it's still definitely quicker than mine. I'll have to try to set mine up on a raspberry pi to see if I get any better performance, but seeing what a normal setup time/delay should look like as well as knowing that 1080p shouldn't be what is causing the issue is definitely a use help. Thank you for those reference points!

@JoshuaHolme
Copy link
Author

In the wiki it says The bundled build of ffmpeg includes hardware acceleration on supported Raspberry Pi models is there a list of supported Raspberry Pi models somewhere that I could reference?

@shamoon shamoon removed the bug Something isn't working label Oct 5, 2020
@shamoon
Copy link
Collaborator

shamoon commented Oct 5, 2020

The plugin uses https://github.com/homebridge/ffmpeg-for-homebridge for ffmpeg. Speaking of which, that says it is only compatible with Windows > 10 so Im wondering if you just dont have ffmpeg installed and working. Do you? I cant tell since you still have not sent your logs...

@JoshuaHolme
Copy link
Author

I will try to get the logs tonight and send them

Sent with GitHawk

@JoshuaHolme
Copy link
Author

I installed it on a Raspberry Pi 3 Model B V1.2 and set it up again in my home app. The cameras are still behaving sporadically, and won't really load. I'm going to leave my config file underneath, and I can leave what is showing in the logs, but it doesn't seem like anything is useful here. I have debugging enabled in the config file, and put -D in the DEBUG environment variable box, but this is all that it is showing.

{
    "bridge": {
        "name": "Homebridge D854",
        "username": "**:**:**:**:**:**",
        "port": *****,
        "pin": "***-**-***"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": ****,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Home Alarm",
            "auth": {
                "username": "****",
                "password": "****"
            },
            "cameras": true,
            "debug": true,
            "sensorRefresh": 15,
            "persistAccessories": false,
            "resetSimpliSafeId": false,
            "cameraOptions": {
                "enableHwaccelRpi": true
            },
            "platform": "homebridge-simplisafe3.SimpliSafe 3"
        }
    ]
}

LOGS

Loading logs using native method...
File: /var/lib/homebridge/homebridge.log

[9/25/2020, 04:48:06] [HB Supervisor] Creating default config.json: /var/lib/homebridge/config.json
[9/25/2020, 04:48:06] [HB Supervisor] Restarting process after port number update.
[10/6/2020, 12:33:28] [HB Supervisor] OS: Linux 5.4.51-v7+ arm
[10/6/2020, 12:33:28] [HB Supervisor] Node.js v12.18.4 /usr/local/bin/node
[10/6/2020, 12:33:28] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[10/6/2020, 12:33:28] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[10/6/2020, 12:33:28] [HB Supervisor] Starting Homebridge with extra flags: -I
[10/6/2020, 12:33:28] [HB Supervisor] Started Homebridge v1.2.3 with PID: 823
[10/6/2020, 12:33:30] Loaded config.json with 0 accessories and 1 platforms.
[10/6/2020, 12:33:30] ---
[10/6/2020, 12:33:33] Loaded plugin: homebridge-config-ui-x@4.27.2
[10/6/2020, 12:33:33] Registering platform 'homebridge-config-ui-x.config'
[10/6/2020, 12:33:33] ---
[10/6/2020, 12:33:33] Loading 1 platforms...
[10/6/2020, 12:33:33] [Config] Initializing config platform...
[10/6/2020, 12:33:33] [Config] Running in Service Mode
Setup Payload:
X-HM://0024DP5NZOFFC
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ ***-**-*** │     
    └────────────┘   
                       
[10/6/2020, 12:33:33] Homebridge v1.2.3 is running on port *****.
[10/6/2020, 12:33:40] [Config] Homebridge Config UI X v4.27.2 is listening on :: port ****
[10/6/2020, 12:33:46] [Config] Added new user: admin
[10/6/2020, 12:33:46] [Config] Username and password have been set to default:
[10/6/2020, 12:33:46] [Config] Username: admin
[10/6/2020, 12:33:46] [Config] Password: admin
[10/6/2020, 12:41:28] [Config] Running Command: sudo -E -n npm install homebridge-config-ui-x@latest
[10/6/2020, 12:42:33] [Config] Homebridge restart request received
[10/6/2020, 12:42:34] [Config] No restart command defined, killing process...
[10/6/2020, 12:42:34] [HB Supervisor] Stopping services...
[10/6/2020, 12:42:34] Got SIGTERM, shutting down Homebridge...
[10/6/2020, 12:42:39] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[10/6/2020, 12:42:47] [HB Supervisor] OS: Linux 5.4.51-v7+ arm
[10/6/2020, 12:42:47] [HB Supervisor] Node.js v12.18.4 /usr/local/bin/node
[10/6/2020, 12:42:47] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[10/6/2020, 12:42:47] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[10/6/2020, 12:42:47] [HB Supervisor] Starting Homebridge with extra flags: -I
[10/6/2020, 12:42:47] [HB Supervisor] Started Homebridge v1.2.3 with PID: 1549
[10/6/2020, 12:42:49] Loaded config.json with 0 accessories and 1 platforms.
[10/6/2020, 12:42:49] ---
[10/6/2020, 12:42:50] Loaded plugin: homebridge-config-ui-x@4.28.0
[10/6/2020, 12:42:50] Registering platform 'homebridge-config-ui-x.config'
[10/6/2020, 12:42:50] ---
[10/6/2020, 12:42:50] Loading 1 platforms...
[10/6/2020, 12:42:50] [Config] Initializing config platform...
[10/6/2020, 12:42:50] [Config] Running in Service Mode
Setup Payload:
X-HM://0024DP5NZOFFC
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ ***-**-*** │     
    └────────────┘        
                       
[10/6/2020, 12:42:50] Homebridge v1.2.3 is running on port *****.
[10/6/2020, 12:42:53] [Config] Homebridge Config UI X v4.28.0 is listening on :: port ****
[10/6/2020, 12:43:42] [Config] Changes to config.json saved.
[10/6/2020, 12:44:06] [Config] Running Command: sudo -E -n npm install homebridge-simplisafe3@latest
[10/6/2020, 12:45:24] [Config] Changes to config.json saved.
[10/6/2020, 12:46:26] [Config] Homebridge restart request received
[10/6/2020, 12:46:26] [Config] No restart command defined, killing process...
[10/6/2020, 12:46:26] [HB Supervisor] Stopping services...
[10/6/2020, 12:46:26] Got SIGTERM, shutting down Homebridge...
[10/6/2020, 12:46:32] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[10/6/2020, 12:46:40] [HB Supervisor] OS: Linux 5.4.51-v7+ arm
[10/6/2020, 12:46:40] [HB Supervisor] Node.js v12.18.4 /usr/local/bin/node
[10/6/2020, 12:46:40] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[10/6/2020, 12:46:40] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[10/6/2020, 12:46:40] [HB Supervisor] Starting Homebridge with extra flags: -I
[10/6/2020, 12:46:40] [HB Supervisor] Started Homebridge v1.2.3 with PID: 1863
[10/6/2020, 12:46:41] Loaded config.json with 0 accessories and 2 platforms.
[10/6/2020, 12:46:41] ---
[10/6/2020, 12:46:43] Loaded plugin: homebridge-config-ui-x@4.28.0
[10/6/2020, 12:46:43] Registering platform 'homebridge-config-ui-x.config'
[10/6/2020, 12:46:43] ---
[10/6/2020, 12:46:46] [Config] Homebridge Config UI X v4.28.0 is listening on :: port ****
[10/6/2020, 12:46:44] Loaded plugin: homebridge-simplisafe3@1.6.8
[10/6/2020, 12:46:44] Registering platform 'homebridge-simplisafe3.SimpliSafe 3'
[10/6/2020, 12:46:44] ---
[10/6/2020, 12:46:44] Loading 2 platforms...
[10/6/2020, 12:46:44] [Config] Initializing config platform...
[10/6/2020, 12:46:44] [Config] Running in Service Mode
[10/6/2020, 12:46:44] [Home Alarm] Initializing homebridge-simplisafe3.SimpliSafe 3 platform...
Setup Payload:
X-HM://0024DP5NZOFFC
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ ***-**-*** │     
    └────────────┘       
                       
[10/6/2020, 12:46:44] Homebridge v1.2.3 is running on port *****.
[10/6/2020, 12:46:44] [Home Alarm] Multifactor authentication required. Check your email and approve the request!
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Basement' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Front Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Garage' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Side Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Basement' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Front Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Garage' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:47:57] [Home Alarm] Motion Sensor 'Side Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:58:59] [Config] Changes to config.json saved.
[10/6/2020, 12:59:09] [Config] Homebridge restart request received
[10/6/2020, 12:59:10] [Config] No restart command defined, killing process...
[10/6/2020, 12:59:10] [HB Supervisor] Stopping services...
[10/6/2020, 12:59:10] Got SIGTERM, shutting down Homebridge...
[10/6/2020, 12:59:15] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[10/6/2020, 12:59:23] [HB Supervisor] OS: Linux 5.4.51-v7+ arm
[10/6/2020, 12:59:23] [HB Supervisor] Node.js v12.18.4 /usr/local/bin/node
[10/6/2020, 12:59:23] [HB Supervisor] Homebridge Path: /usr/local/lib/node_modules/homebridge/bin/homebridge
[10/6/2020, 12:59:23] [HB Supervisor] UI Path: /usr/local/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[10/6/2020, 12:59:23] [HB Supervisor] Starting Homebridge with extra flags: -I
[10/6/2020, 12:59:23] [HB Supervisor] Starting Homebridge with custom env: {"DEBUG":"-D"}
[10/6/2020, 12:59:23] [HB Supervisor] Started Homebridge v1.2.3 with PID: 2535
[10/6/2020, 12:59:24] Loaded config.json with 0 accessories and 2 platforms.
[10/6/2020, 12:59:24] ---
[10/6/2020, 12:59:26] Loaded plugin: homebridge-config-ui-x@4.28.0
[10/6/2020, 12:59:26] Registering platform 'homebridge-config-ui-x.config'
[10/6/2020, 12:59:26] ---
[10/6/2020, 12:59:29] [Config] Homebridge Config UI X v4.28.0 is listening on :: port ****
[10/6/2020, 12:59:27] Loaded plugin: homebridge-simplisafe3@1.6.8
[10/6/2020, 12:59:27] Registering platform 'homebridge-simplisafe3.SimpliSafe 3'
[10/6/2020, 12:59:27] ---
[10/6/2020, 12:59:27] Loading 2 platforms...
[10/6/2020, 12:59:28] [Config] Initializing config platform...
[10/6/2020, 12:59:28] [Config] Running in Service Mode
[10/6/2020, 12:59:28] [Home Alarm] Initializing homebridge-simplisafe3.SimpliSafe 3 platform...
Setup Payload:
X-HM://0024DP5NZOFFC
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ ***-**-*** │     
    └────────────┘     
                       
[10/6/2020, 12:59:28] Homebridge v1.2.3 is running on port *****.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Basement' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Front Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Garage' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Side Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Basement' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Front Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Garage' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 12:59:32] [Home Alarm] Motion Sensor 'Side Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.

@shamoon
Copy link
Collaborator

shamoon commented Oct 6, 2020

@JoshuaHolme sorry if it wasnt clear, we'd be looking for the logs at the time you are trying to stream video, not just startup.

Also I dont think you've enabled DEBUG in Homebridge correctly. It looks like youre using Config UI X which has helpful option under settings "Homebridge Debug Mode -D" thats just a little toggle switch, not setting the DEBUG environment variable to -D. Please make sure that's enabled and post the logs when youre actually trying to stream and we'll see if theres anything helpful.

@JoshuaHolme
Copy link
Author

Those logs were after I streamed, but it didn't show anything because I didn't have debug mode set properly (I didn't see that toggle before).

Here they are now

[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Master sink',
  status: { triggered: false },
  type: 9,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Basement' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  status: { triggered: false },
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Basement',
  serial: '********',
  type: 9,
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Front Door' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { lowPowerMode: false, alarm: 4 },
  deviceGroupID: 0,
  name: 'Front Door',
  status: {},
  type: 1,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Side Door' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { lowPowerMode: false, alarm: 1 },
  deviceGroupID: 0,
  name: 'Side Door',
  status: {},
  type: 1,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Grandma' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { disarmEnabled: true, alarm: 1 },
  deviceGroupID: 0,
  name: 'Grandma',
  status: {},
  type: 2,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Kids' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { disarmEnabled: true, alarm: 1 },
  deviceGroupID: 0,
  name: 'Kids',
  status: {},
  type: 2,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Kids 2' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { disarmEnabled: true, alarm: 1 },
  deviceGroupID: 0,
  name: 'Kids 2',
  status: {},
  type: 2,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Mom' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { disarmEnabled: true, alarm: 1 },
  deviceGroupID: 0,
  name: 'Mom',
  status: {},
  type: 2,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Master BR' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Master BR',
  status: {},
  type: 3,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Basement' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 0,
    home: 0,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Basement',
  status: {},
  type: 4,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Motion Sensor 'Basement' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Front Door' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 0,
    home: 0,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Front Door',
  status: {},
  type: 4,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Motion Sensor 'Front Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Garage' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 0,
    home: 0,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Garage',
  status: {},
  type: 4,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Motion Sensor 'Garage' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Side Door' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 0,
    home: 0,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Side Door',
  status: {},
  type: 4,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Motion Sensor 'Side Door' requires secret alerts to be enabled in SimpliSafe before you can add it to Homebridge.
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Basement Dr' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Basement Dr',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Bathroom' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Bathroom',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Bedroom L' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Bedroom L',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Bedroom R' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Bedroom R',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Dining left' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Dining left',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Dining righ' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Dining righ',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Family left' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Family left',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Family righ' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Family righ',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Front Door' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Front Door',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Front side ' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Front side ',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Garage back' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Garage back',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Garage side' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Garage side',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Kitchen' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Kitchen',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Living left' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Living left',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Living righ' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Living righ',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Master left' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Master left',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Master righ' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Master righ',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Middle up' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Middle up',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Mudroom Bac' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Mudroom Bac',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Mudroom Fr' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Mudroom Fr',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Patio Door' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {
    instantTrigger: false,
    away2: 1,
    away: 1,
    home2: 1,
    home: 1,
    off: 0
  },
  deviceGroupID: 0,
  name: 'Patio Door',
  status: { triggered: false },
  type: 5,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor '3rd fl stor' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: '3rd fl stor',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor '3rd floor' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: '3rd floor',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Above Garag' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'Above Garag',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'B Bedroom' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'B Bedroom',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Basement' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'Basement',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Basement up' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'Basement up',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Dining Room' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'Dining Room',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'F Bedroom' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'F Bedroom',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Master BR' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'Master BR',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Up hallway' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: {},
  deviceGroupID: 0,
  name: 'Up hallway',
  status: { test: false, tamper: false, malfunction: false, triggered: false },
  type: 8,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Bath sink' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Bath sink',
  status: { triggered: false },
  type: 9,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Bathroom' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Bathroom',
  status: { triggered: false },
  type: 9,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Half bath' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Half bath',
  status: { triggered: false },
  type: 9,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Kitchen' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Kitchen',
  status: { triggered: false },
  type: 9,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Master sink' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarm: 1 },
  deviceGroupID: 0,
  name: 'Master sink',
  status: { triggered: false },
  type: 9,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Front Door' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarmVolume: 3, doorChime: 0, exitBeeps: 0, entryBeeps: 2 },
  deviceGroupID: 0,
  name: 'Front Door',
  status: {},
  type: 13,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Garage' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarmVolume: 3, doorChime: 0, exitBeeps: 0, entryBeeps: 2 },
  deviceGroupID: 0,
  name: 'Garage',
  status: {},
  type: 13,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered sensor 'Porch' from SimpliSafe.
[10/6/2020, 13:50:13] [Home Alarm] {
  setting: { alarmVolume: 3, doorChime: 0, exitBeeps: 0, entryBeeps: 2 },
  deviceGroupID: 0,
  name: 'Porch',
  status: {},
  type: 13,
  serial: '********',
  flags: { swingerShutdown: false, lowBattery: false, offline: false }
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered camera 'Side Door' from SimpliSafe
[10/6/2020, 13:50:13] [Home Alarm] {
  staleSettingsTypes: [],
  upgradeWhitelisted: false,
  model: 'SS002',
  uuid: '********',
  uid: ********,
  sid: ********,
  cameraSettings: {
    cameraName: 'Side Door',
    pictureQuality: '1080p',
    nightVision: 'auto',
    statusLight: 'on',
    micSensitivity: 100,
    micEnable: true,
    speakerVolume: 75,
    motionSensitivity: 50,
    shutterHome: 'open',
    shutterAway: 'open',
    shutterOff: 'open',
    wifiSsid: 'Holme-Far',
    canStream: false,
    canRecord: false,
    pirEnable: true,
    vaEnable: true,
    notificationsEnable: true,
    enableDoorbellNotification: true,
    doorbellChimeVolume: 'off',
    privacyEnable: false,
    hdr: true,
    vaZoningEnable: false,
    vaZoningRows: 0,
    vaZoningCols: 0,
    vaZoningMask: [],
    maxDigitalZoom: 10,
    supportedResolutions: [ '480p', '720p', '1080p' ],
    admin: {
      IRLED: 0,
      pirSens: 0,
      statusLEDState: 1,
      lux: 'lowLux',
      motionDetectionEnabled: false,
      motionThresholdZero: 0,
      motionThresholdOne: 10000,
      levelChangeDelayZero: 30,
      levelChangeDelayOne: 10,
      audioDetectionEnabled: false,
      audioChannelNum: 2,
      audioSampleRate: 16000,
      audioChunkBytes: 2048,
      audioSampleFormat: 3,
      audioSensitivity: 50,
      audioThreshold: 50,
      audioDirection: 0,
      bitRate: 284,
      longPress: 2000,
      kframe: 1,
      gopLength: 50,
      idr: 1,
      fps: 20,
      firmwareVersion: '2.6.1.154',
      netConfigVersion: '',
      camAgentVersion: '',
      lastLogin: 1601976853,
      lastLogout: 1601945125,
      pirSampleRateMs: 800,
      pirHysteresisHigh: 2,
      pirHysteresisLow: 10,
      pirFilterCoefficient: 1,
      logEnabled: true,
      logLevel: 3,
      logQDepth: 20,
      firmwareGroup: 'public',
      irOpenThreshold: 50,
      irCloseThreshold: 200,
      irOpenDelay: 3,
      irCloseDelay: 3,
      irThreshold1x: 50,
      irThreshold2x: 0,
      irThreshold3x: 0,
      dbm: 0,
      vmUse: 419856,
      resSet: 51592,
      uptime: 29478.19,
      wifiDisconnects: 2,
      wifiDriverReloads: 1,
      statsPeriod: 600000,
      sarlaccDebugLogTypes: 0,
      odProcessingFps: 8,
      odObjectMinWidthPercent: 6,
      odObjectMinHeightPercent: 24,
      odEnableObjectDetection: true,
      odClassificationMask: 2,
      odClassificationConfidenceThreshold: 0.95,
      odEnableOverlay: false,
      odAnalyticsLib: 2,
      odSensitivity: 85,
      odEventObjectMask: 2,
      odLuxThreshold: 445,
      odLuxHysteresisHigh: 4,
      odLuxHysteresisLow: 4,
      odLuxSamplingFrequency: 30,
      odFGExtractorMode: 2,
      odVideoScaleFactor: 1,
      odSceneType: 1,
      odCameraView: 3,
      odCameraFOV: 2,
      odBackgroundLearnStationary: true,
      odBackgroundLearnStationarySpeed: 15,
      odClassifierQualityProfile: 1,
      odEnableVideoAnalyticsWhileStreaming: false,
      wlanMac: '********',
      region: '********',
      enableWifiAnalyticsLib: false,
      ivLicense: 'qqEX36qqrM0qqrrTjESybqquDuEM'
    },
    pirLevel: 'medium',
    odLevel: 'medium'
  },
  cameraStatus: {
    firmwareVersion: '2.6.1.154',
    netConfigVersion: '',
    camAgentVersion: '',
    lastLogin: 1601976853,
    lastLogout: 1601945125,
    wlanMac: '********',
    fwDownloadVersion: '',
    fwDownloadPercentage: 0,
    recovered: false,
    recoveredFromVersion: '',
    _id: '********',
    initErrors: [],
    speedTestTokenCreated: ********
  },
  __v: 0,
  supportedFeatures: {
    providers: { webrtc: 'none', recording: 'simplisafe', live: 'simplisafe' },
    audioEncodings: [ 'speex' ],
    resolutions: [ '480p', '720p', '1080p' ],
    _id: '********',
    pir: true,
    videoAnalytics: true,
    privacyShutter: false,
    microphone: true,
    fullDuplexAudio: true,
    wired: true,
    networkSpeedTest: false,
    videoEncoding: 'h264'
  },
  subscription: {
    enabled: true,
    freeTrialActive: false,
    freeTrialUsed: false,
    freeTrialEnds: 0,
    freeTrialExpires: 0,
    planSku: 'SSVM1',
    price: 0,
    expires: 1592423191,
    storageDays: 30,
    trialUsed: false,
    trialActive: false,
    trialExpires: 0
  },
  status: 'online'
}
[10/6/2020, 13:50:13] [Home Alarm] Discovered camera 'Front Door' from SimpliSafe
[10/6/2020, 13:50:13] [Home Alarm] {
  staleSettingsTypes: [],
  upgradeWhitelisted: false,
  model: 'SS002',
  uuid: '********',
  uid: ********,
  sid: ********,
  cameraSettings: {
    cameraName: 'Front Door',
    pictureQuality: '1080p',
    nightVision: 'auto',
    statusLight: 'on',
    micSensitivity: 100,
    micEnable: true,
    speakerVolume: 75,
    motionSensitivity: 50,
    shutterHome: 'open',
    shutterAway: 'open',
    shutterOff: 'open',
    wifiSsid: 'Holme-Far',
    canStream: false,
    canRecord: false,
    pirEnable: true,
    vaEnable: true,
    notificationsEnable: true,
    enableDoorbellNotification: true,
    doorbellChimeVolume: 'off',
    privacyEnable: false,
    hdr: true,
    vaZoningEnable: false,
    vaZoningRows: 0,
    vaZoningCols: 0,
    vaZoningMask: [],
    maxDigitalZoom: 10,
    supportedResolutions: [ '480p', '720p', '1080p' ],
    admin: {
      IRLED: 0,
      pirSens: 0,
      statusLEDState: 1,
      lux: 'lowLux',
      motionDetectionEnabled: false,
      motionThresholdZero: 0,
      motionThresholdOne: 10000,
      levelChangeDelayZero: 30,
      levelChangeDelayOne: 10,
      audioDetectionEnabled: false,
      audioChannelNum: 2,
      audioSampleRate: 16000,
      audioChunkBytes: 2048,
      audioSampleFormat: 3,
      audioSensitivity: 50,
      audioThreshold: 50,
      audioDirection: 0,
      bitRate: 284,
      longPress: 2000,
      kframe: 1,
      gopLength: 50,
      idr: 1,
      fps: 20,
      firmwareVersion: '2.6.1.154',
      netConfigVersion: '',
      camAgentVersion: '',
      lastLogin: 1601990045,
      lastLogout: 1601985551,
      pirSampleRateMs: 800,
      pirHysteresisHigh: 2,
      pirHysteresisLow: 10,
      pirFilterCoefficient: 1,
      logEnabled: true,
      logLevel: 3,
      logQDepth: 20,
      firmwareGroup: 'public',
      irOpenThreshold: 50,
      irCloseThreshold: 200,
      irOpenDelay: 3,
      irCloseDelay: 3,
      irThreshold1x: 50,
      irThreshold2x: 0,
      irThreshold3x: 0,
      dbm: 0,
      vmUse: 388400,
      resSet: 43944,
      uptime: 16258.62,
      wifiDisconnects: 0,
      wifiDriverReloads: 0,
      statsPeriod: 600000,
      sarlaccDebugLogTypes: 0,
      odProcessingFps: 8,
      odObjectMinWidthPercent: 6,
      odObjectMinHeightPercent: 24,
      odEnableObjectDetection: true,
      odClassificationMask: 2,
      odClassificationConfidenceThreshold: 0.95,
      odEnableOverlay: false,
      odAnalyticsLib: 2,
      odSensitivity: 85,
      odEventObjectMask: 2,
      odLuxThreshold: 445,
      odLuxHysteresisHigh: 4,
      odLuxHysteresisLow: 4,
      odLuxSamplingFrequency: 30,
      odFGExtractorMode: 2,
      odVideoScaleFactor: 1,
      odSceneType: 1,
      odCameraView: 3,
      odCameraFOV: 2,
      odBackgroundLearnStationary: true,
      odBackgroundLearnStationarySpeed: 15,
      odClassifierQualityProfile: 1,
      odEnableVideoAnalyticsWhileStreaming: false,
      wlanMac: '********',
      region: '********',
      enableWifiAnalyticsLib: false,
      ivLicense: 'qqEX16qqrN0qqruqTLSvDbuTLCEM'
    },
    pirLevel: 'medium',
    odLevel: 'medium'
  },
  cameraStatus: {
    firmwareVersion: '2.6.1.154',
    netConfigVersion: '',
    camAgentVersion: '',
    lastLogin: 1601990045,
    lastLogout: 1601985551,
    wlanMac: '********',
    fwDownloadVersion: '',
    fwDownloadPercentage: 0,
    recovered: false,
    recoveredFromVersion: '',
    _id: '********',
    initErrors: [],
    speedTestTokenCreated: ********
  },
  __v: 0,
  supportedFeatures: {
    providers: { webrtc: 'none', recording: 'simplisafe', live: 'simplisafe' },
    audioEncodings: [ 'speex' ],
    resolutions: [ '480p', '720p', '1080p' ],
    _id: '********',
    pir: true,
    videoAnalytics: true,
    privacyShutter: false,
    microphone: true,
    fullDuplexAudio: true,
    wired: true,
    networkSpeedTest: false,
    videoEncoding: 'h264'
  },
  subscription: {
    enabled: true,
    freeTrialActive: false,
    freeTrialUsed: false,
    freeTrialEnds: 0,
    freeTrialExpires: 0,
    planSku: 'SSVM1',
    price: 0,
    expires: 1592424395,
    storageDays: 30,
    trialUsed: false,
    trialActive: false,
    trialExpires: 0
  },
  status: 'online'
}

I'm not sure if those default logs are helpful. The logs when I tried to stream it were kind of hard to get. This is what I am getting right now.

[10/6/2020, 14:04:04] [Home Alarm] Handling camera snapshot for 'Side Door' at 1280x720
[10/6/2020, 14:04:08] [Home Alarm] Closed 'Side Door' snapshot request with 91kB image
[10/6/2020, 14:04:08] [Home Alarm] Handling camera snapshot for 'Front Door' at 1280x720
[10/6/2020, 14:04:11] [Home Alarm] Closed 'Front Door' snapshot request with 69kB image
[10/6/2020, 14:04:11] [Home Alarm] Prepare stream with request: {
  sessionID: '98ff8b75-c14-44c1-b956-f6618b10d316',
  targetAddress: '10.0.0.150',
  addressVersion: 'ipv4',
  video: {
    port: 60387,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer 65 8f 92 83 a0 f7 09 6f 6c 24 a4 64 d5 a0 4d 90>,
    srtp_salt: <Buffer eb 5c 4e 9f bd a9 a3 d8 10 98 13 1c ab 64>
  },
  audio: {
    port: 53479,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer 6e 90 6e 7d 5a 1d 41 2d 72 95 2a e6 79 d5 25 b9>,
    srtp_salt: <Buffer 3d d7 4f 0b db e3 68 44 3e 42 6b e8 14 81>
  }
}
[10/6/2020, 14:04:11] [Home Alarm] handleStreamRequest with request: {
  sessionID: '98ff8b75-c14-44c1-b956-f6618b10d316',
  type: 'start',
  video: {
    profile: 2,
    level: 2,
    packetizationMode: 0,
    cvoId: undefined,
    width: 1280,
    height: 720,
    fps: 30,
    pt: 99,
    ssrc: 141689254,
    max_bit_rate: 299,
    rtcp_interval: 0.5,
    mtu: 1378
  },
  audio: {
    codec: 'AAC-eld',
    channel: 1,
    bit_rate: 0,
    sample_rate: 16,
    packet_time: 30,
    pt: 110,
    ssrc: 1017492088,
    max_bit_rate: 24,
    rtcp_interval: 5,
    comfort_pt: 13,
    comfortNoiseEnabled: false
  }
}
[10/6/2020, 14:04:11] [Home Alarm] Start streaming video for camera 'Side Door'
[10/6/2020, 14:04:11] [Home Alarm] /usr/local/lib/node_modules/homebridge-simplisafe3/node_modules/ffmpeg-for-homebridge/ffmpeg -re -headers Authorization: Bearer UI+N9WgNKNsqBAtydoOgtnGcqyhsVOaM4MlGSmopqAk= -vcodec h264_mmal -i https://52.3.182.222/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC -map 0:0 -vcodec h264_omx -pix_fmt yuv420p -r 20 -f rawvideo -vf scale=1280:-2 -b:v 284k -bufsize 568k -maxrate 284k -payload_type 99 -ssrc 3187973 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params ZY+Sg6D3CW9sJKRk1aBNkOtcTp+9qaPYEJgTHKtk srtp://10.0.0.150:60387?rtcpport=60387&localrtcpport=60387&pkt_size=1378 -map 0:1 -acodec libfdk_aac -flags +global_header -profile:a aac_eld -ac 1 -ar 16k -b:a 24k -bufsize 48k -payload_type 110 -ssrc 7007613 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params bpBufVodQS1ylSrmedUluT3XTwvb42hEPkJr6BSB srtp://10.0.0.150:53479?rtcpport=53479&localrtcpport=53479&pkt_size=188
[10/6/2020, 14:04:11] [Home Alarm] FFMPEG received first frame
[10/6/2020, 14:04:11] [Home Alarm] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal --enable-indev=alsa --enable-outdev=alsa
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

[10/6/2020, 14:04:11] [Home Alarm] [https @ 0x388f2e0] No trailing CRLF found in HTTP header. Adding it.

[10/6/2020, 14:04:14] [Home Alarm] Input #0, flv, from 'https://52.3.182.222/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC':
  Metadata:
    encoder         : Lavf56.40.101
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A

[10/6/2020, 14:04:14] [Home Alarm]     Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20 fps, 20 tbr, 1k tbn, 40 tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp, 96 kb/s

[10/6/2020, 14:04:14] [Home Alarm] mmal: mmal_vc_port_enable: failed to enable port vc.ril.video_decode:in:0(H264): ENOMEM

[10/6/2020, 14:04:14] [Home Alarm] mmal: mmal_port_enable: failed to enable port vc.ril.video_decode:in:0(H264)(0x3990bc0) (ENOMEM)
mmal: mmal_port_disable: port vc.ril.video_decode:in:0(H264)(0x3990bc0) is not enabled
mmal: mmal_port_disable: port vc.ril.video_decode:out:0(I420)(0x3990ee0) is not enabled

[10/6/2020, 14:04:14] [Home Alarm] Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_mmal) -> h264 (h264_omx))
  Stream #0:1 -> #1:0
[10/6/2020, 14:04:14] [Home Alarm]  (aac (native) -> aac (libfdk_aac))
Error while opening decoder for input stream #0:0 : Unknown error occurred

[10/6/2020, 14:04:14] [Home Alarm] Error: FFmpeg exited with code 1

Before I was getting a different error that was looping until it timed out and made it so that I couldn't get the beginning of the logs talking about the snapshot since they would get pushed out of the view. I can't get the error to come up anymore though, and the Error: FFmpeg exited with code 1is now consistently the last thing in the console.

Also, I installed the official Homebridge Raspberry Pi image from here, and then installed your plugin from the plugins page, and have made no other changes to the default setup aside from enabling debug mode.

@shamoon
Copy link
Collaborator

shamoon commented Oct 6, 2020

Perhaps now you can appreciate why we ask for logs =)

As you can clearly see the issue is with FFmpeg and I suspect this was similarly the problem on your Windows setup. This plugin uses ffmpeg-for-homebridge to get ffmpeg installed and I believe that Pi is supported, so here's a few options:

@shamoon
Copy link
Collaborator

shamoon commented Oct 6, 2020

Ps. I forgot to mention you can go about installing ffmpeg manually as well, there are lots of tutorials on the web. If you can get it working that way you can just point this plugin to that binary. But I think you'll have more luck with the other suggestions.

@shamoon shamoon added not a bug This doesn't seem right and removed unconfirmed Issue has not been verified labels Oct 6, 2020
@JoshuaHolme
Copy link
Author

So I just went back to see if it would give the same error or the error I first saw, but there were some items int he log already and it seems that FFmpeg is installed already.

[10/6/2020, 14:11:57] [Home Alarm] Start streaming video for camera 'Side Door'
[10/6/2020, 14:11:57] [Home Alarm] /usr/local/lib/node_modules/homebridge-simplisafe3/node_modules/ffmpeg-for-homebridge/ffmpeg -re -headers Authorization: Bearer 7GjE/d8V8FupGhs7lXtgQLyNz+xwqQCp2Dt+aAKFpqc= -vcodec h264_mmal -i https://54.204.198.91/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC -map 0:0 -vcodec h264_omx -pix_fmt yuv420p -r 20 -f rawvideo -vf scale=1280:-2 -b:v 284k -bufsize 568k -maxrate 284k -payload_type 99 -ssrc 2035572 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params JOyMhJlIITOIjxOgWQkAthD3DSGHiD/ccCUpLwX/ srtp://10.0.0.150:62042?rtcpport=62042&localrtcpport=62042&pkt_size=1378 -map 0:1 -acodec libfdk_aac -flags +global_header -profile:a aac_eld -ac 1 -ar 16k -b:a 24k -bufsize 48k -payload_type 110 -ssrc 7722562 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params tPF4q66Dca+4w/kei6caYoPyxoMnYvVRZGNavL5v srtp://10.0.0.150:54000?rtcpport=54000&localrtcpport=54000&pkt_size=188
[10/6/2020, 14:11:57] [Home Alarm] FFMPEG received first frame
[10/6/2020, 14:11:57] [Home Alarm] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal --enable-indev=alsa --enable-outdev=alsa

[10/6/2020, 14:11:57] [Home Alarm]   libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

[10/6/2020, 14:11:57] [Home Alarm] [https @ 0x30572e0] No trailing CRLF found in HTTP header. Adding it.

[10/6/2020, 14:11:57] [Home Alarm] handleStreamRequest with request: { sessionID: '93b092f6-80bf-49de-8e13-3c21eab37537', type: 'stop' }
[10/6/2020, 14:11:57] [Home Alarm] Camera stopped streaming

@JoshuaHolme
Copy link
Author

I just tried to stream again and was able to get the other error that I was speaking about. I've listed it below.

[10/6/2020, 17:46:57] [Home Alarm] Handling camera snapshot for 'Front Door' at 1280x720
[10/6/2020, 17:47:04] [Home Alarm] Closed 'Front Door' snapshot request with 68kB image
[10/6/2020, 17:47:04] [Home Alarm] Handling camera snapshot for 'Side Door' at 1280x720
[10/6/2020, 17:47:09] [Home Alarm] Closed 'Side Door' snapshot request with 86kB image
[10/6/2020, 17:47:10] [Home Alarm] Prepare stream with request: {
  sessionID: 'd525c9e4-d674-459e-96fc-bf8e731f17e5',
  targetAddress: '10.0.0.150',
  addressVersion: 'ipv4',
  video: {
    port: 49616,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer e6 83 71 f7 29 fe 26 ab aa 95 c0 80 e8 fb be 63>,
    srtp_salt: <Buffer e8 a3 32 9f 1c 30 1f 85 55 01 eb eb 96 5b>
  },
  audio: {
    port: 50813,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer ba a7 d2 80 d1 09 20 29 1a 83 65 af ab eb 38 67>,
    srtp_salt: <Buffer 00 5c a2 72 c8 ad 54 d8 87 cf 8c 3e ac 1c>
  }
}
[10/6/2020, 17:47:10] [Home Alarm] handleStreamRequest with request: {
  sessionID: 'd525c9e4-d674-459e-96fc-bf8e731f17e5',
  type: 'start',
  video: {
    profile: 2,
    level: 2,
    packetizationMode: 0,
    cvoId: undefined,
    width: 1280,
    height: 720,
    fps: 30,
    pt: 99,
    ssrc: 3591318556,
    max_bit_rate: 299,
    rtcp_interval: 0.5,
    mtu: 1378
  },
  audio: {
    codec: 'AAC-eld',
    channel: 1,
    bit_rate: 0,
    sample_rate: 16,
    packet_time: 30,
    pt: 110,
    ssrc: 512431167,
    max_bit_rate: 24,
    rtcp_interval: 5,
    comfort_pt: 13,
    comfortNoiseEnabled: false
  }
}
[10/6/2020, 17:47:10] [Home Alarm] Start streaming video for camera 'Side Door'
[10/6/2020, 17:47:10] [Home Alarm] /usr/local/lib/node_modules/homebridge-simplisafe3/node_modules/ffmpeg-for-homebridge/ffmpeg -re -headers Authorization: Bearer KcojaKLmykloCp2jQuasEaKdHXNWH6pUjPgLZ5odZ5s= -vcodec h264_mmal -i https://52.3.182.222/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC -map 0:0 -vcodec h264_omx -pix_fmt yuv420p -r 20 -f rawvideo -vf scale=1280:-2 -b:v 284k -bufsize 568k -maxrate 284k -payload_type 99 -ssrc 16730318 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 5oNx9yn+JquqlcCA6Pu+Y+ijMp8cMB+FVQHr65Zb srtp://10.0.0.150:49616?rtcpport=49616&localrtcpport=49616&pkt_size=1378 -map 0:1 -acodec libfdk_aac -flags +global_header -profile:a aac_eld -ac 1 -ar 16k -b:a 24k -bufsize 48k -payload_type 110 -ssrc 8328181 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params uqfSgNEJICkag2Wvq+s4ZwBconLIrVTYh8+MPqwc srtp://10.0.0.150:50813?rtcpport=50813&localrtcpport=50813&pkt_size=188
[10/6/2020, 17:47:10] [Home Alarm] FFMPEG received first frame
[10/6/2020, 17:47:10] [Home Alarm] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal --enable-indev=alsa --enable-outdev=alsa

[10/6/2020, 17:47:10] [Home Alarm]   libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

[10/6/2020, 17:47:10] [Home Alarm] [https @ 0x3b8b2e0] No trailing CRLF found in HTTP header. Adding it.

[10/6/2020, 17:47:15] [Home Alarm] Input #0, flv, from 'https://52.3.182.222/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC':
  Metadata:
    encoder         : Lavf56.40.101
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A

[10/6/2020, 17:47:15] [Home Alarm]     Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20 fps, 20 tbr, 1k tbn, 40 tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp, 96 kb/s

[10/6/2020, 17:47:15] [Home Alarm] Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_mmal) -> h264 (h264_omx))
  Stream #0:1 -> #1:0 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help

[10/6/2020, 17:47:15] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:15] [Home Alarm]     Last message repeated 7 times
Output #1, rtp, to 'srtp://10.0.0.150:50813?rtcpport=50813&localrtcpport=50813&pkt_size=188':
  Metadata:
    encoder         : Lavf58.45.100
[h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:15] [Home Alarm]     Last message repeated 1 times
    Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s
    Metadata:
      encoder         : Lavc58.91.100 libfdk_aac
[h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:16] [Home Alarm]     Last message repeated 35 times
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.62 bitrate=   0.0kbits/s speed=1.24x    
[10/6/2020, 17:47:16] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:16] [Home Alarm]     Last message repeated 20 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:16] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:16] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:16] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:16] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:16] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:16] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:16] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:00.94 bitrate=   0.0kbits/s speed=0.915x    
[10/6/2020, 17:47:16] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:01.19 bitrate=   0.0kbits/s speed=0.779x    
[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:01.45 bitrate=   0.0kbits/s speed=0.708x    
[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:17] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:17] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:01.70 bitrate=   0.0kbits/s speed=0.665x    
[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:18] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:18] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:01.96 bitrate=   0.0kbits/s speed=0.636x    
[10/6/2020, 17:47:18] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:02.22 bitrate=   0.0kbits/s speed=0.615x    
[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:19] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:19] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:02.47 bitrate=   0.0kbits/s speed=0.599x    
[10/6/2020, 17:47:19] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:02.73 bitrate=   0.0kbits/s speed=0.588x    
[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.

[10/6/2020, 17:47:20] [Home Alarm] Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:20] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:20] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:02.98 bitrate=   0.0kbits/s speed=0.578x    
[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:03.18 bitrate=   0.0kbits/s speed=0.559x    
[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:21] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:21] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:03.43 bitrate=   0.0kbits/s speed=0.554x    
[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:03.69 bitrate=   0.0kbits/s speed=0.55x    
[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:22] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:22] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:03.94 bitrate=   0.0kbits/s speed=0.546x    
[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred
[h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:04.20 bitrate=   0.0kbits/s speed=0.541x    
[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:23] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:23] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred
[h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:04.46 bitrate=   0.0kbits/s speed=0.539x    
[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.

[10/6/2020, 17:47:24] [Home Alarm] Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:04.71 bitrate=   0.0kbits/s speed=0.536x    
[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.

[10/6/2020, 17:47:24] [Home Alarm] Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:24] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:24] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:04.97 bitrate=   0.0kbits/s speed=0.533x    
[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.

[10/6/2020, 17:47:25] [Home Alarm] Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:05.23 bitrate=   0.0kbits/s speed=0.531x    
[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:25] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:25] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.

[10/6/2020, 17:47:25] [Home Alarm] Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:05.48 bitrate=   0.0kbits/s speed=0.529x    
[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:05.67 bitrate=   0.0kbits/s speed=0.522x    
[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:26] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:26] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:05.93 bitrate=   0.0kbits/s speed=0.521x    
[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:06.19 bitrate=   0.0kbits/s speed=0.52x    
[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:27] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:27] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:06.44 bitrate=   0.0kbits/s speed=0.518x    
[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:06.70 bitrate=   0.0kbits/s speed=0.517x    
[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:28] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:28] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:06.95 bitrate=   0.0kbits/s speed=0.516x    
[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:07.21 bitrate=   0.0kbits/s speed=0.515x    
[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:29] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:29] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:07.47 bitrate=   0.0kbits/s speed=0.515x    
[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:07.72 bitrate=   0.0kbits/s speed=0.514x    
[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:30] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:30] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm] frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:07.98 bitrate=   0.0kbits/s speed=0.513x    
[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 5 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:31] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred

[10/6/2020, 17:47:31] [Home Alarm] [h264_mmal @ 0x3bb0eb0] MMAL error 2 on control port

[10/6/2020, 17:47:32] [Home Alarm] handleStreamRequest with request: { sessionID: 'd525c9e4-d674-459e-96fc-bf8e731f17e5', type: 'stop' }
[10/6/2020, 17:47:32] [Home Alarm]     Last message repeated 4 times
[h264_mmal @ 0x3bb0eb0] Did not get output frame from MMAL.
Error while decoding stream #0:0: Unknown error occurred
frame=    0 fps=0.0 q=0.0 size=       0kB time=00:00:08.17 bitrate=   0.0kbits/s speed=0.508x    
[10/6/2020, 17:47:32] [Home Alarm] Camera stopped streaming

P.S. I knew logs could be helpful, however I did not have the logs enabled, so none showed up in the console, which is why I didn't attach them initially :)

@JoshuaHolme
Copy link
Author

Disabling hardware acceleration seems to work a little better, but the camera stops streaming by itself after a few seconds and leaves a black screen in the home app.

[10/6/2020, 17:53:22] [Home Alarm] Start streaming video for camera 'Side Door'
[10/6/2020, 17:53:22] [Home Alarm] /usr/local/lib/node_modules/homebridge-simplisafe3/node_modules/ffmpeg-for-homebridge/ffmpeg -re -headers Authorization: Bearer MOUmsv0D90Ba3VoH4WnJVgldYOX1NHxUz8eIqpesYN4= -i https://54.204.198.91/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC -map 0:0 -vcodec libx264 -tune zerolatency -preset superfast -pix_fmt yuv420p -r 20 -f rawvideo -vf scale=1280:-2 -b:v 284k -bufsize 568k -maxrate 284k -payload_type 99 -ssrc 87480 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params KRAVO4bPuQiwUZgU9wJlrqb5S95zGYOKbW8tkdqS srtp://10.0.0.9:62791?rtcpport=62791&localrtcpport=62791&pkt_size=1378 -map 0:1 -acodec libfdk_aac -flags +global_header -profile:a aac_eld -ac 1 -ar 16k -b:a 24k -bufsize 48k -payload_type 110 -ssrc 1475422 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params j/53dmxtR8xRslUI5nDqokOH7CHhJyCVnUHD9Gpp srtp://10.0.0.9:63715?rtcpport=63715&localrtcpport=63715&pkt_size=188
[10/6/2020, 17:53:22] [Home Alarm] FFMPEG received first frame
[10/6/2020, 17:53:22] [Home Alarm] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal --enable-indev=alsa --enable-outdev=alsa

[10/6/2020, 17:53:22] [Home Alarm]   libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

[10/6/2020, 17:53:22] [Home Alarm] [https @ 0x30562c0] No trailing CRLF found in HTTP header. Adding it.

[10/6/2020, 17:53:27] [Home Alarm] Input #0, flv, from 'https://54.204.198.91/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC':
  Metadata:
    encoder         : Lavf56.40.101
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A

[10/6/2020, 17:53:27] [Home Alarm]     Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20 fps, 20 tbr, 1k tbn, 40 tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp, 96 kb/s

[10/6/2020, 17:53:27] [Home Alarm] Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #1:0 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help

[10/6/2020, 17:53:27] [Home Alarm] Output #1, rtp, to 'srtp://10.0.0.9:63715?rtcpport=63715&localrtcpport=63715&pkt_size=188':
  Metadata:
    encoder         : Lavf58.45.100

[10/6/2020, 17:53:27] [Home Alarm]     Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s
    Metadata:
      encoder         : Lavc58.91.100 libfdk_aac

[10/6/2020, 17:53:27] [Home Alarm] [swscaler @ 0x3782ca0] deprecated pixel format used, make sure you did set range correctly

[10/6/2020, 17:53:27] [Home Alarm] [libx264 @ 0x306ee60] using SAR=1/1

[10/6/2020, 17:53:27] [Home Alarm] [libx264 @ 0x306ee60] using cpu capabilities: ARMv6 NEON

[10/6/2020, 17:53:27] [Home Alarm] [libx264 @ 0x306ee60] profile High, level 3.1, 4:2:0, 8-bit

[10/6/2020, 17:53:27] [Home Alarm] Output #0, rtp, to 'srtp://10.0.0.9:62791?rtcpport=62791&localrtcpport=62791&pkt_size=1378':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 284 kb/s, 20 fps, 90k tbn, 20 tbc
    Metadata:
      encoder         : Lavc58.91.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 284000/0/284000 buffer size: 568000 vbv_delay: N/A

[10/6/2020, 17:53:27] [Home Alarm] frame=    3 fps=0.0 q=45.0 size=       9kB time=00:00:00.29 bitrate= 242.7kbits/s speed=0.567x    
[10/6/2020, 17:53:28] [Home Alarm] frame=    7 fps=6.6 q=37.0 size=      19kB time=00:00:00.54 bitrate= 289.5kbits/s speed=0.515x    
[10/6/2020, 17:53:28] [Home Alarm] frame=   12 fps=7.6 q=35.0 size=      27kB time=00:00:00.80 bitrate= 271.0kbits/s speed=0.506x    
[10/6/2020, 17:53:29] [Home Alarm] frame=   17 fps=8.1 q=34.0 size=      33kB time=00:00:01.05 bitrate= 252.7kbits/s speed=0.503x    
[10/6/2020, 17:53:29] [Home Alarm] frame=   23 fps=8.8 q=33.0 size=      39kB time=00:00:01.31 bitrate= 246.0kbits/s speed=0.504x    
[10/6/2020, 17:53:30] [Home Alarm] frame=   27 fps=8.7 q=33.0 size=      44kB time=00:00:01.57 bitrate= 227.0kbits/s speed=0.505x    
[10/6/2020, 17:53:30] [Home Alarm] frame=   32 fps=8.8 q=29.0 size=      51kB time=00:00:01.82 bitrate= 227.8kbits/s speed=0.504x    
[10/6/2020, 17:53:31] [Home Alarm] frame=   37 fps=9.0 q=30.0 size=      56kB time=00:00:02.08 bitrate= 221.4kbits/s speed=0.504x    
[10/6/2020, 17:53:31] [Home Alarm] frame=   42 fps=9.0 q=31.0 size=      63kB time=00:00:02.33 bitrate= 220.6kbits/s speed=0.499x    
[10/6/2020, 17:53:32] [Home Alarm] frame=   48 fps=9.2 q=31.0 size=      71kB time=00:00:02.53 bitrate= 231.0kbits/s speed=0.487x    
[10/6/2020, 17:53:32] [Home Alarm] frame=   53 fps=9.3 q=29.0 size=      78kB time=00:00:02.78 bitrate= 229.6kbits/s speed=0.487x    
[10/6/2020, 17:53:33] [Home Alarm] frame=   57 fps=9.1 q=28.0 size=      83kB time=00:00:03.04 bitrate= 224.0kbits/s speed=0.484x    
[10/6/2020, 17:53:33] [Home Alarm] frame=   62 fps=9.1 q=27.0 size=      90kB time=00:00:03.29 bitrate= 222.5kbits/s speed=0.486x    
[10/6/2020, 17:53:34] [Home Alarm] frame=   67 fps=9.2 q=25.0 size=      96kB time=00:00:03.55 bitrate= 221.7kbits/s speed=0.487x    
[10/6/2020, 17:53:34] [Home Alarm] frame=   73 fps=9.2 q=25.0 size=     103kB time=00:00:03.87 bitrate= 218.8kbits/s speed=0.491x    
[10/6/2020, 17:53:35] [Home Alarm] frame=   78 fps=9.3 q=29.0 size=     111kB time=00:00:04.13 bitrate= 219.7kbits/s speed=0.49x    
[10/6/2020, 17:53:36] [Home Alarm] frame=   83 fps=9.2 q=34.0 size=     120kB time=00:00:04.38 bitrate= 223.2kbits/s speed=0.489x    
[10/6/2020, 17:53:36] [Home Alarm] frame=   89 fps=9.3 q=29.0 size=     129kB time=00:00:04.57 bitrate= 230.6kbits/s speed=0.48x    
[10/6/2020, 17:53:37] [Home Alarm] frame=   94 fps=9.3 q=29.0 size=     138kB time=00:00:04.83 bitrate= 233.2kbits/s speed=0.48x    
[10/6/2020, 17:53:37] [Home Alarm] frame=   98 fps=9.3 q=29.0 size=     145kB time=00:00:05.09 bitrate= 233.9kbits/s speed=0.481x    
[10/6/2020, 17:53:38] [Home Alarm] frame=  103 fps=9.3 q=29.0 size=     152kB time=00:00:05.34 bitrate= 232.3kbits/s speed=0.482x    
[10/6/2020, 17:53:38] [Home Alarm] frame=  108 fps=9.3 q=25.0 size=     159kB time=00:00:05.60 bitrate= 233.2kbits/s speed=0.483x    
[10/6/2020, 17:53:39] [Home Alarm] frame=  113 fps=9.3 q=23.0 size=     165kB time=00:00:05.85 bitrate= 230.8kbits/s speed=0.483x    
[10/6/2020, 17:53:39] [Home Alarm] frame=  118 fps=9.3 q=26.0 size=     173kB time=00:00:06.11 bitrate= 231.3kbits/s speed=0.483x    
[10/6/2020, 17:53:40] [Home Alarm] frame=  123 fps=9.3 q=32.0 size=     193kB time=00:00:06.36 bitrate= 248.7kbits/s speed=0.482x    
[10/6/2020, 17:53:40] [Home Alarm] frame=  128 fps=9.3 q=28.0 size=     194kB time=00:00:06.62 bitrate= 240.4kbits/s speed=0.483x    
[10/6/2020, 17:53:41] [Home Alarm] frame=  133 fps=9.3 q=21.0 size=     201kB time=00:00:06.88 bitrate= 238.9kbits/s speed=0.483x    
[10/6/2020, 17:53:41] [Home Alarm] handleStreamRequest with request: { sessionID: '8ffa9-d6b2-4526-bc7-d199eb88da6c', type: 'stop' }
[10/6/2020, 17:53:41] [Home Alarm] Camera stopped streaming

I'm not sure if this is just however long the buffer is for the camera's battery. (If my testing has drained the battery throughout the day and it hasn't charged up enough from the doorbell connection yet). Maybe you could give some insight into whether that's something that you run across as well or not.

@shamoon
Copy link
Collaborator

shamoon commented Oct 6, 2020

Its essentially the same error, the mmal codec is installed but its not working. If you disable hardware acceleration it will use a different codec. Please see my previous comment for suggestions on how to possibly fix or investigate further.

@shamoon
Copy link
Collaborator

shamoon commented Oct 6, 2020

Ah, I see you're streaming with hardware acceleration disabled. The camera is wired, if it is receiving the right amount of power (commonly its not and you may need a new doorbell transformer) it shouldn't have any issues.

@JoshuaHolme
Copy link
Author

So do you believe it's still an issue with FFmpeg since I'm able to stream without hardware acceleration? Or do you think the issue with this setup would be that it doesn't support the hardware acceleration, and I may need a transformer to stop it from cutting out after a few seconds?

@shamoon
Copy link
Collaborator

shamoon commented Oct 6, 2020

I think you need to do some more investigating, Im not sure. Its probably worth trying to get hardware acceleration working which is why I gave you some suggestions. If its power to the unit I would expect you to have the same issue maintaining a stream via SS (maybe try via web since thats closest to how this plugin works).

@JoshuaHolme
Copy link
Author

JoshuaHolme commented Oct 6, 2020

Looking at issue #126 from this repo and this forum I'm trying to increase the GPU mem. I'm just going to keep updating here so if others have issues it'll be documented.

@JoshuaHolme
Copy link
Author

After upping my GPU mem from 76M to 512M it works with hardware acceleration. It still stops after a few seconds, but it's progress.

[10/6/2020, 18:38:27] [Home Alarm] Start streaming video for camera 'Side Door'
[10/6/2020, 18:38:27] [Home Alarm] /usr/local/lib/node_modules/homebridge-simplisafe3/node_modules/ffmpeg-for-homebridge/ffmpeg -re -headers Authorization: Bearer YdWvIDqPMN9THlxJ5utuRf/l7wFcstQez8lS9ZKfksc= -vcodec h264_mmal -i https://52.3.182.222/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC -map 0:0 -vcodec h264_omx -pix_fmt yuv420p -r 20 -f rawvideo -vf scale=1280:-2 -b:v 284k -bufsize 568k -maxrate 284k -payload_type 99 -ssrc 10216495 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 3gKg+dsapg3HzVulQziZPN44kYBZwKAEGIEW7rWt srtp://10.0.0.150:55942?rtcpport=55942&localrtcpport=55942&pkt_size=1378 -map 0:1 -acodec libfdk_aac -flags +global_header -profile:a aac_eld -ac 1 -ar 16k -b:a 24k -bufsize 48k -payload_type 110 -ssrc 2039629 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params SIPq4Bo2I/uYB+0YvAiqhQ30D1eT8+JZAZ0fWkUR srtp://10.0.0.150:60578?rtcpport=60578&localrtcpport=60578&pkt_size=188
[10/6/2020, 18:38:27] [Home Alarm] FFMPEG received first frame
[10/6/2020, 18:38:27] [Home Alarm] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
[10/6/2020, 18:38:27] [Home Alarm] 
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
  configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal --enable-indev=alsa --enable-outdev=alsa

[10/6/2020, 18:38:28] [Home Alarm]   libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100

[10/6/2020, 18:38:28] [Home Alarm]   libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100

[10/6/2020, 18:38:28] [Home Alarm] [https @ 0x426a2e0] No trailing CRLF found in HTTP header. Adding it.

[10/6/2020, 18:38:32] [Home Alarm] Input #0, flv, from 'https://52.3.182.222/v1/4a0a3b0ac2ecd9a17c6f753d701e5358/flv?x=1280&audioEncoding=AAC':
  Metadata:
    encoder         : Lavf56.40.101
  Duration: 00:00:00.00, start: 0.000000, bitrate: N/A

[10/6/2020, 18:38:32] [Home Alarm]     Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20 fps, 20 tbr, 1k tbn, 40 tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp, 96 kb/s

[10/6/2020, 18:38:32] [Home Alarm] Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_mmal) -> h264 (h264_omx))
  Stream #0:1 -> #1:0 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help

[10/6/2020, 18:38:32] [Home Alarm] Output #1, rtp, to 'srtp://10.0.0.150:60578?rtcpport=60578&localrtcpport=60578&pkt_size=188':
  Metadata:
    encoder         : Lavf58.45.100

[10/6/2020, 18:38:32] [Home Alarm]     Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s
    Metadata:
      encoder         : Lavc58.91.100 libfdk_aac

[10/6/2020, 18:38:32] [Home Alarm] [h264_mmal @ 0x428f240] Changing output format.

[10/6/2020, 18:38:33] [Home Alarm] [h264_omx @ 0x4284510] Using OMX.broadcom.video_encode

[10/6/2020, 18:38:33] [Home Alarm] Output #0, rtp, to 'srtp://10.0.0.150:55942?rtcpport=55942&localrtcpport=55942&pkt_size=1378':
  Metadata:
    encoder         : Lavf58.45.100

[10/6/2020, 18:38:33] [Home Alarm]     Stream #0:0: Video: h264 (h264_omx), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 284 kb/s, 20 fps, 90k tbn, 20 tbc
    Metadata:
      encoder         : Lavc58.91.100 h264_omx

[10/6/2020, 18:38:33] [Home Alarm] frame=    4 fps=0.0 q=-0.0 size=       3kB time=00:00:00.43 bitrate=  61.8kbits/s dup=2 drop=0 speed=0.812x    
[10/6/2020, 18:38:33] [Home Alarm] frame=    9 fps=8.6 q=-0.0 size=       8kB time=00:00:00.69 bitrate=  91.3kbits/s dup=2 drop=0 speed=0.66x    
[10/6/2020, 18:38:34] [Home Alarm] frame=   14 fps=8.6 q=-0.0 size=      14kB time=00:00:01.01 bitrate= 109.7kbits/s dup=2 drop=0 speed=0.624x    
[10/6/2020, 18:38:34] [Home Alarm] frame=   20 fps=9.2 q=-0.0 size=      26kB time=00:00:01.33 bitrate= 161.9kbits/s dup=2 drop=0 speed=0.609x    
[10/6/2020, 18:38:35] [Home Alarm] frame=   27 fps=9.8 q=-0.0 size=      46kB time=00:00:01.58 bitrate= 236.9kbits/s dup=2 drop=0 speed=0.578x    
[10/6/2020, 18:38:35] [Home Alarm] frame=   32 fps=9.7 q=-0.0 size=      49kB time=00:00:01.90 bitrate= 210.5kbits/s dup=2 drop=0 speed=0.58x    
[10/6/2020, 18:38:36] [Home Alarm] frame=   38 fps=9.9 q=-0.0 size=      56kB time=00:00:02.22 bitrate= 205.8kbits/s dup=2 drop=0 speed=0.578x    
[10/6/2020, 18:38:37] [Home Alarm] frame=   45 fps= 10 q=-0.0 size=      76kB time=00:00:02.48 bitrate= 251.1kbits/s dup=2 drop=0 speed=0.562x    
[10/6/2020, 18:38:37] [Home Alarm] frame=   50 fps= 10 q=-0.0 size=      83kB time=00:00:02.80 bitrate= 243.7kbits/s dup=2 drop=0 speed=0.561x    
[10/6/2020, 18:38:37] [Home Alarm] handleStreamRequest with request: {
  sessionID: '9b50abf-dfcc-4241-b944-9912a0ad5797',
  type: 'reconfigure',
  video: {
    width: 640,
    height: 360,
    fps: 30,
    max_bit_rate: 132,
    rtcp_interval: 0.5
  }
}
[10/6/2020, 18:38:38] [Home Alarm] frame=   55 fps= 10 q=-0.0 size=     100kB time=00:00:03.05 bitrate= 268.9kbits/s dup=2 drop=0 speed=0.555x    
[10/6/2020, 18:38:38] [Home Alarm] frame=   61 fps= 10 q=-0.0 size=     104kB time=00:00:03.37 bitrate= 252.0kbits/s dup=2 drop=0 speed=0.555x    
[10/6/2020, 18:38:39] [Home Alarm] frame=   68 fps= 10 q=-0.0 size=     121kB time=00:00:03.63 bitrate= 273.5kbits/s dup=2 drop=0 speed=0.546x    
[10/6/2020, 18:38:39] [Home Alarm] frame=   73 fps= 10 q=-0.0 size=     125kB time=00:00:03.95 bitrate= 259.7kbits/s dup=2 drop=0 speed=0.547x    
[10/6/2020, 18:38:40] [Home Alarm] frame=   79 fps= 10 q=-0.0 size=     143kB time=00:00:04.27 bitrate= 273.6kbits/s dup=2 drop=0 speed=0.549x    
[10/6/2020, 18:38:41] [Home Alarm] frame=   86 fps= 10 q=-0.0 size=     149kB time=00:00:04.53 bitrate= 269.0kbits/s dup=2 drop=0 speed=0.545x    
[10/6/2020, 18:38:41] [Home Alarm] frame=   91 fps= 10 q=-0.0 size=     164kB time=00:00:04.85 bitrate= 276.4kbits/s dup=2 drop=0 speed=0.548x    
[10/6/2020, 18:38:42] [Home Alarm] frame=   97 fps= 10 q=-0.0 size=     167kB time=00:00:05.17 bitrate= 264.7kbits/s dup=2 drop=0 speed=0.551x    
[10/6/2020, 18:38:42] [Home Alarm] frame=  104 fps= 10 q=-0.0 size=     183kB time=00:00:05.42 bitrate= 276.4kbits/s dup=2 drop=0 speed=0.547x    
[10/6/2020, 18:38:43] [Home Alarm] frame=  109 fps= 10 q=-0.0 size=     188kB time=00:00:05.74 bitrate= 268.0kbits/s dup=2 drop=0 speed=0.549x    
[10/6/2020, 18:38:43] [Home Alarm] frame=  115 fps= 10 q=-0.0 size=     204kB time=00:00:06.06 bitrate= 275.6kbits/s dup=2 drop=0 speed=0.551x    
[10/6/2020, 18:38:44] [Home Alarm] frame=  122 fps= 11 q=-0.0 size=     210kB time=00:00:06.32 bitrate= 272.4kbits/s dup=2 drop=0 speed=0.549x    
[10/6/2020, 18:38:44] [Home Alarm] frame=  127 fps= 11 q=-0.0 size=     226kB time=00:00:06.64 bitrate= 278.0kbits/s dup=2 drop=0 speed=0.551x    
[10/6/2020, 18:38:45] [Home Alarm] frame=  133 fps= 11 q=-0.0 size=     231kB time=00:00:06.96 bitrate= 271.4kbits/s dup=2 drop=0 speed=0.551x    
[10/6/2020, 18:38:45] [Home Alarm] frame=  140 fps= 11 q=-0.0 size=     247kB time=00:00:07.21 bitrate= 280.0kbits/s dup=2 drop=0 speed=0.547x    
[10/6/2020, 18:38:46] [Home Alarm] frame=  145 fps= 11 q=-0.0 size=     251kB time=00:00:07.53 bitrate= 272.8kbits/s dup=2 drop=0 speed=0.549x    
[10/6/2020, 18:38:46] [Home Alarm] frame=  151 fps= 11 q=-0.0 size=     266kB time=00:00:07.85 bitrate= 277.8kbits/s dup=2 drop=0 speed=0.551x    
[10/6/2020, 18:38:47] [Home Alarm] frame=  157 fps= 11 q=-0.0 size=     272kB time=00:00:08.17 bitrate= 272.4kbits/s dup=2 drop=0 speed=0.551x    
[10/6/2020, 18:38:48] [Home Alarm] frame=  163 fps= 11 q=-0.0 size=     291kB time=00:00:08.43 bitrate= 282.3kbits/s dup=2 drop=0 speed=0.548x    
[10/6/2020, 18:38:48] [Home Alarm] frame=  169 fps= 11 q=-0.0 size=     294kB time=00:00:08.75 bitrate= 275.0kbits/s dup=2 drop=0 speed=0.549x    
[10/6/2020, 18:38:48] [Home Alarm] handleStreamRequest with request: { sessionID: '9b50abf-dfcc-4241-b944-9912a0ad5797', type: 'stop' }
[10/6/2020, 18:38:48] [Home Alarm] Camera stopped streaming

@JoshuaHolme
Copy link
Author

JoshuaHolme commented Oct 7, 2020

@shamoon Two more questions after poking around a bit.

  1. Is there a reason that the stream is saying it has a width of 640 and a height of 360 instead of 1920 and 1080?
  2. Do you also get the handleStreamRequest with request: { sessionID: '9b50abf-dfcc-4241-b944-9912a0ad5797', type: 'stop' } after leaving your camera running for a little bit (after about 15 seconds for me)? I've checked the behavior on the simlisafe web app and it last at least double the time there (I stopped timing it after 30 seconds) so I know it is not that wiring issue that we were discussing earlier.

I know I've asked a lot of questions about these cameras in this repo, but I feel like I'm finally close to having this working. You guys have built an awesome plugin that works perfectly for every other SimpliSafe device that I have, which is why it's driving me up a wall not having it work for me when others have success. I appreciate the work you guys have put in and am thankful for the help you've given me.

@shamoon
Copy link
Collaborator

shamoon commented Oct 7, 2020

Thanks =)

  1. The 640x360 is the resolution of the requesting device. If you look elsewhere in the logs you'll note the incoming stream itself is listed as 1920x1080. But also I note that the later one is type: 'reconfigure'. Your log in that last comment is truncated (the beginning) but going off a previous comment the device (I'm guessing a mac by the resolution) is initially requesting the stream at 1280x720 and then later its being 'reconfigured' at the much lower resolution.
  2. No, that is a signal to kill the stream, I get it when I close the stream (well after 15 seconds).

Seems like theres some instability / bottleneck something that is causing the stream to get downgraded and then give up. Wonder if its the weak WiFi signal from your camera? And how about your HomeKit hub?

@JoshuaHolme
Copy link
Author

JoshuaHolme commented Oct 10, 2020

So I have 3 home hubs in the house, one Apple TV and two HomePods. The Apple TV is hardwired over Gigabit ethernet, and I don't think should have any inconsistency issues, and it is the primary home hub. As far as the weak WiFi, I've streamed from SimpliSafe's web app, and it doesn't seem to have the same issues as this plugin, so that makes me think that it isn't a WiFi issue, however, I've been wrong before. Any other thoughts or suggestions based off of that info?

Edit: I don't know what the resolution of the stream is for the SimpliSafe web app, but it doesn't drop off like the plugin does.

@shamoon
Copy link
Collaborator

shamoon commented Oct 10, 2020

Hmm. I don’t have any obvious explanation since it’s not like there are any errors etc.

HomeKit is notorious for being very finicky about video streams (as in it has very specific requirements and “gives up” easily). I’m still thinking about trying to isolate the issue some more. Like I’m just wondering out loud here:

  • Does it matter which iOS/macOS device you’re using to stream?
  • Is your Pi hardwired?
  • Do you have any reliability issues with Homebridge at the moment (for example my HB was very unstable eg lots of “No Response” until I disabled WiFi completely on my Pi)?
  • Possibly trying building ffmpeg and seeing if a different binary helps?

Sorry I don’t have any definitive answer at the moment. I can try and dig out my Pi and test myself but it’s also tough if I can’t reproduce the issue.

@shamoon shamoon added the help wanted Extra attention is needed label Oct 10, 2020
@shamoon
Copy link
Collaborator

shamoon commented Oct 10, 2020

Just to clarify: my suspicion at the moment and also sort of my worry is that this isn’t really any kind of bug on the plugin side (thus not something we may be able to “fix”). As far as the plugin is concerned it’s doing it’s job, it starts streaming and then gets a request to stop which it does, correctly. So it’s kinda like can we find out why / prevent HomeKit from trying to kill the stream?

@shamoon
Copy link
Collaborator

shamoon commented Oct 11, 2020

@JoshuaHolme I have good news and bad news. Good news is I have been able to reproduce this issue on my Pi3b. The bad news is I have no real leads on how to fix this. I have discussed with other Homebridge devs and the thought is that the Pi3b simply cant sustain the transcoding that is required for the video. In an ideal world we would not need to do any transcoding at all, just pipe the h264 stream to HomeKit (-vcodec copy) but there is something about the native SimpliSafe stream that HomeKit wont accept, so we're stuck transcoding and this seems to cause the eventual cutout.

I will keep digging (@nzapponi if you ever have any ideas...) but there is a possibility this will just be a 'known limitation' for now.

@shamoon shamoon changed the title Doorbell Camera Inconsistencies Streaming stops after ~20 seconds on RPi 3b Oct 11, 2020
@shamoon shamoon added bug Something isn't working and removed not a bug This doesn't seem right labels Oct 11, 2020
@JoshuaHolme
Copy link
Author

@shamoon This honestly makes me feel fantastic knowing it's not just me at this point. If I were to buy a new Raspberry Pi, which one should I get for this to not be an issue?

@pbr90x
Copy link

pbr90x commented Oct 11, 2020 via email

@shamoon
Copy link
Collaborator

shamoon commented Oct 11, 2020

Yes that's what I was told, a RPi 4. Glad to confirm that, thanks @pbr90x

@JoshuaHolme
Copy link
Author

Got it, thanks for the info!

@JoshuaHolme
Copy link
Author

@shamoon and @pbr90x how much memory would you recommend to get on the RPi 4 for this application?

@pbr90x
Copy link

pbr90x commented Oct 12, 2020 via email

@JoshuaHolme
Copy link
Author

I did increase the GPU RAM already. If you look back in the comments you’ll see that, thank you for the tip though! I’ll probably end up picking up a RPi 4

Sent with GitHawk

@stale
Copy link

stale bot commented Dec 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issue not being worked on label Dec 8, 2020
@stale stale bot closed this as completed Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed stale Stale issue not being worked on
Projects
None yet
Development

No branches or pull requests

3 participants