balansse / homebridge-vivint

Integrates Vivint security system with Apple Home
Other
46 stars 16 forks source link

Issues with Cameras #22

Closed snydema1 closed 3 years ago

snydema1 commented 3 years ago

I had previously been using the FFMpeg Plugin - and did have some issues with it related to getting error messages in the home app saying "No Response - This Camera is not responding"

I saw your update - thanks! and just disabled the FFmpeg plugin - and deleted the cameras that it had been presenting.

I can see the cameras via the my home / favorite cameras:

image

and the counters increase / change to now, etc.

when I click on one of the cameras - I get this:

image

I would often get those messages when using FFmpeg - and sometimes the cameras would actually display.

I'm using a DBC300 doorbell camera and a HDP450 outdoor camera for the garage.

happy to provide any other details that might help.

thanks!

Mr-Winston-Wolf commented 3 years ago

+1 for above. Same issue and it always has been with FFmpeg, the streams will either not boot up or timeout very quickly. I have been working with that dev to help figure out why it does that.

I can isolate the RTSP stream and play it on VLC or any other app that streams it BUT homekit for some odd reason.

Same camera as above, DBC300 and the Outdoor Vivint Pro camera. It would make my day to see these cameras actually work in HK!

snydema1 commented 3 years ago

same - I can use RTSP without any issues whatsoever. I had tried to use that initially when I thought that it was an issue with my links to the cameras.

in my case - I would also say that though both are intermittent - the doorbell camera seems to work more often than the outdoor (my driveway) camera.

the other great benefit to me - is that when I press the doorbell - the camera shows up automatically on my Apple TV. thanks so much...

really appreciate the work on the plugin! I contributed once - and will again with this great addition.

balansse commented 3 years ago

Thank you for the feedback!

Unfortunately, the only Vivint camera I own is a DBC300 doorbell which I used during the internal testing.

It will help me a lot if you can run Homebridge in Debug mode and send me the log file from the moment Homebridge starts to the moment you clicked on the camera in Home app and the video started playing (or didn't 😬 )

Mr-Winston-Wolf commented 3 years ago

I ran the backyard camera (Vivint Backyard Pro) and this is what I see in debug mode:


[10/03/2021, 09:47:13] [Vivint] Prepare stream with request: {
  sessionID: 'e1aa9ac5-756e-4ed1-bd6f-43e5db7adf4b',
  targetAddress: '192.168.5.133',
  addressVersion: 'ipv4',
  video: {
    port: 56550,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer eb 05 27 53 6f cc 7f 75 25 8f e6 b5 26 ef dc a4>,
    srtp_salt: <Buffer 39 35 8d 33 ec 84 24 21 2e 45 66 82 80 6b>
  },
  audio: {
    port: 52533,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer 9d 52 fb 94 f7 03 95 f1 b5 c8 d0 0f c3 68 98 04>,
    srtp_salt: <Buffer 78 f5 0a 7a 14 87 6a f8 4e 75 6b b0 34 f1>
  }
}
[10/03/2021, 09:47:13] [Vivint] handleStreamRequest with request: {
  sessionID: 'e1aa9ac5-756e-4ed1-bd6f-43e5db7adf4b',
  type: 'start',
  video: {
    profile: 2,
    level: 2,
    packetizationMode: 0,
    cvoId: undefined,
    width: 1280,
    height: 720,
    fps: 30,
    pt: 99,
    ssrc: 2389700214,
    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: 2393815037,
    max_bit_rate: 24,
    rtcp_interval: 5,
    comfort_pt: 13,
    comfortNoiseEnabled: false
  }
}
[10/03/2021, 09:47:14] [Vivint] Start streaming video for camera 'Backyard'
[10/03/2021, 09:47:14] [Vivint] /usr/local/lib/node_modules/@balansse/homebridge-vivint/node_modules/ffmpeg-for-homebridge/ffmpeg -i rtsp://user:Y9dbBfVzdsb16R8O8nNPKuY@192.168.5.120:8554/Video-81 -an -sn -dn -codec:v copy -use_wallclock_as_timestamps 1 -fflags +genpts -r 15 -bufsize 360448 -payload_type 99 -ssrc 10332271 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 6wUnU2/Mf3Ulj+a1Ju/cpDk1jTPshCQhLkVmgoBr srtp://192.168.x.133:56550?rtcpport=56550&localrtcpport=45761&pkt_size=1316 -vn -sn -dn -codec:a libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -use_wallclock_as_timestamps 1 -bufsize 48k -payload_type 110 -ssrc 2604406 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params UN srtp://192.168.x.xxx:2533?rtcpport=52533&localrtcpport=43529&pkt_size=188
[10/03/2021, 09:47:14] [Vivint] FFMPEG received first frame
Mr-Winston-Wolf commented 3 years ago

Being able to get the vivint backyard pro to work on this would make my day! You can see I have been trying to make this work forever with zero luck: https://github.com/Sunoo/homebridge-camera-ffmpeg/issues/972

I have full access to my system as it is more enterprise, so let me know if there is any configuration changes that need to be made.

Here is the camera that the logs grab that I pray I can get working as it is a really good camera (and killer RTSP stream in my apps:

cameras": [
                {
                    "name": "Backyard",
                    "manufacturer": "VIVINT",
                    "model": "ODC300",
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -re -i rtsp://user:xxxx@192.xxx.x.xxx:8554/Video-81",
                        "vcodec": "copy",
                        "audio": false,
                        "debug": true
                    }
                }
            ]
Mr-Winston-Wolf commented 3 years ago

I have been working with @Sunoo directly on this to try to make this one work. Might be worth asking him too as it was having the same problems with the Vivint cameras.

snydema1 commented 3 years ago

Thank you for the feedback!

Unfortunately, the only Vivint camera I own is a DBC300 doorbell which I used during the internal testing.

It will help me a lot if you can run Homebridge in Debug mode and send me the log file from the moment Homebridge starts to the moment you clicked on the camera in Home app and the video started playing (or didn't 😬 )

I just sent you my whole home bridge.log file from the time it started until I opened the driveway camera - and the home app eventually timed out / reported that it failed to load.

Sunoo commented 3 years ago

So is this plugin handling the Vivint cameras directly now? Or am I misunderstanding the situation and this is still an issue with my plugin?

balansse commented 3 years ago

So is this plugin handling the Vivint cameras directly now? Or am I misunderstanding the situation and this is still an issue with my plugin?

The cameras are now handled directly by the Vivint plugin - now the FFMPEG config journey begins!

Sunoo commented 3 years ago

The cameras are now handled directly by the Vivint plugin - now the FFMPEG config journey begins!

Cool, feel free to reach out if needed. There is also a channel for camera plugin developers on the Homebridge Discord server, if you use that.

Mr-Winston-Wolf commented 3 years ago

So far I have learned this much about Vivint Cameras, which I have been working with @Sunoo to see if we can get this one going. Being that Vivint is now giving away their pro backyard camera there will be a ton of these on the market. I would love nothing more to have a validated config for FFMPEG so us vivint people can leave you alone!

Notes on the cameras:

I can add any logs from either plugin as requested, just let me know.

Sunoo commented 3 years ago

The timeouts are most likely due to some issue between the iOS device and Homebridge/HOOBS, but I’m having a heck of a time narrowing that down. For whatever reason, my plugin believes the stream is no longer being viewed and shuts it down.

Mr-Winston-Wolf commented 3 years ago

ok, I have the stream up and running @balansse using your app. The image is a bit choppy at times and/or is blocked by some green lines, however this stream is up and running right now and has not timed out. As it stands this is by far the longest I have had this run, however it does not trigger each time (fails about 1/2 the time). When it works it seems to work!

Stream is now still up after 5 mins and counting:

logs:

CaptureClipOnMotion: false,
  NotifyOnAnimalSeen: false,
  CameraExternalTLSURL: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-81' ],
  AspectRatioTuple: [ 16, 9 ],
  DeterROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  CameraLEDEnabled: true,
  ExcludeRules: 1,
  DeterLightColor: 0,
  DeterAggressionLevel: 5,
  PlatformContext: {
    MessageId: '6048fbf4167e590001ccd64a',
    Timestamp: '2021-03-10T17:03:48.687000'
  },
  DeterLightPattern: 0,
  DeterOverride: false,
  CameraExternalTLSURLStandard: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-81_SD' ],
  CameraStreamPort: 8554,
  AnalyticsSensitivity: 4,
  CameraPreventOTAUpdates: false,
  CameraStreamPath: 'Video-81',
  CameraMac: '84:EB:3E:17:59:58',
  Online: true,
  CameraOriginURL: 'rtsp://10.218.68.24:8554/Video-81',
  CameraIPAddress: '192.168.x.xxx100',
  Features: {
    Features_VIDEO_THUMBNAILS: true,
    Features_RESTORE_DEFAULTS: true,
    Features_REBOOT: true,
    Features_SELECTABLE_NIGHTVISION: true
  },
  CameraThumbnailDate: '2021-03-10T17:03:13.000000',
  ActualType: 'vivint_odc300_camera_device',
  Password: 'zdD0uwGrLYGCZXkM',
  PanelContext: { Timestamp: '2021-03-10T17:03:48.687000' },
  NotifyOnPackageSeen: true,
  RecordOnAnimalDetected: false,
  NetworkHealth: {
    NetworkHealth: 1,
    MessagePayload_NetworkDiagnostics_RSSI: 0,
    MessagePayload_NetworkDiagnostics_LastCameraIperf: {
      cameraToPanelBandwidth: 10001378,
      MessagePayload_NetworkDiagnostics_Address: 10.001378
    },
    Timestamp: '2020-12-11T17:28:22.478000'
  },
  AnimalROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  CameraExtendSirenEnabled: false,
  Bitrate: 435.608436,
  NetworkHealthHistory: [
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T17:28:22.478000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T13:28:25.525000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T09:28:32.556000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T05:28:35.292000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T01:46:36.244000'
    }
  ],
  VideoQuality: 3,
  ManagedBySky: false,
  CameraQuietMode: false,
  CameraStreamPathSD: 'Video-81_SD',
  NotifyOnVehicleSeen: false,
  RecordOnPersonDetected: false,
  PropertyROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  CameraExternalURLStandard: [ 'rtsp://livevid.vivint.com:443/10P218P68P24/8554/Video-81_SD' ],
  StandardDefinitionResolution: '720x400',
  CapabilityCategory: [
    { Capability: [Array], Type: 1 },
    { Capability: [Array], Type: 8 }
  ],
  SetDefaultsCounter: 0,
  CameraAudioCodec: 2,
  CameraInternalAudioURL: 'https://192.168.x.xxx120:8557/Audio-81',
  Settings: {
    ObjectSettings_Device_Onboarding_Camera_Name: true,
    ObjectSettings_Device_Onboarding_Camera_DeterSchedule: true,
    ObjectSettings_Device_Onboarding_Camera_AnalyticsOptIn: true,
    ObjectSettings_Device_Onboarding_Camera_DeterAgressionLevel: true,
    ObjectSettings_Device_Onboarding_Camera_DeterIntro: true,
    ObjectSettings_Device_Onboarding_Camera_PropertyBoundaryV2: true
  },
  HighDefinitionResolution: '1280x720',
  CameraIPPort: '554',
  Name: 'Backyard',
  CameraIRLEDEnabled: true,
  WirelessSignalStrength: 0,
  NetworkAvailabilityState: 100,
  CameraInternalURL: [ 'rtsp://192.168.x.xxx120:8554/Video-81' ],
  CameraAudioSampleRate: 16000,
  NotifyOnPackageMoved: true,
  CameraLocalAudioPort: 8557,
  CanBeRenamed: true,
  AnalyticsVersion: '0.7.8.221.d97e4fb',
  CameraZoomLock: false,
  StreamAvailabilityState: 100,
  CameraExternalAudioURL: 'https://audio.vivintsky.com/Audio-81',
  FromSync: 1,
  RecordOnLurkerDetected: false,
  CameraFlip: true,
  PanelId: 3137597440004537,
  NightVisionEnabled: true,
  DeterOnDuty: false,
  CommandControlAvailabilityState: 100,
  DeterSchedule: [
    2,
    {
      '6': false,
      CidEventCode_NONE: false,
      UsageTrackingValue_VideoQualityLevelOne: false,
      UsageTrackingValue_VideoQualityLevelTwo: false,
      UsageTrackingValue_VideoQualityLevelThree: false,
      UsageTrackingValue_VideoQualityLevelFour: false,
      UsageTrackingValue_VideoQualityLevelFive: false
    },
    {
      CidEventCode_NONE: 1380,
      UsageTrackingValue_VideoQualityLevelOne: 360
    }
  ],
  ConnectedTo: 'Wired',
  CameraInternalURLStandard: [ 'rtsp://192.168.x.xxx120:8554/Video-81_SD' ],
  VehicleROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  SoftwareVersion: '1.0.3.5907.rc',
  CameraThumbnailRequested: '2021-03-10T17:03:47.315000',
  RecordOnVehicleDetected: false,
  Id: 81,
  VisitorDetected: null,
  PersonInView: null
}
[10/03/2021, 11:05:04] [Vivint] Applying patch:  {
  Id: 81,
  ActualType: 'vivint_odc300_camera_device',
  CameraThumbnailDate: '2021-03-10T17:03:51.000Z'
}
[10/03/2021, 11:05:04] [Vivint] Patched data:  {
  CameraOriginURLStandard: 'rtsp://10.218.68.24:8554/Video-81_SD',
  VideoClipAnalyticsAllowed: false,
  CameraDirectAvailable: true,
  LurkerDeterEnabled: true,
  CameraDoorbellChime: 1,
  CameraDirectStreamPath: 'stream1,audio=opus',
  LingerDuration: 20,
  NotificationAvailabilityState: 0,
  Uuid: '42086a56-711b-47dd-af50-e333d14efc5e',
  Timestamp: '2021-03-10T17:03:48.687000',
  RecordOnPackageDetected: false,
  Hidden: false,
  Username: 'user',
  NotifyOnLurker: true,
  CameraConnectionType: 'wired',
  CameraPrivacy: false,
  CameraExternalURL: [ 'rtsp://livevid.vivint.com:443/10P218P68P24/8554/Video-81' ],
  CameraAudioPort: 8555,
  RebootCameraCounter: 1,
  NotifyOnPersonSeen: false,
  CameraAudioPath: 'Audio-81',
  CameraExtendChimeEnabled: false,
  RecordForRegions: 0,
  CameraExternalAudioHeaders: {
    'Content-Type': 'audio/x-vivint-opus',
    'X-Destination-Host': '10.218.68.24:8555'
  },
  CameraDirectStreamPathStandard: 'stream2,audio=opus',
  CameraRecordAudio: true,
  Type: 'camera_device',
  CaptureClipOnMotion: false,
  NotifyOnAnimalSeen: false,
  CameraExternalTLSURL: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-81' ],
  AspectRatioTuple: [ 16, 9 ],
  DeterROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  CameraLEDEnabled: true,
  ExcludeRules: 1,
  DeterLightColor: 0,
  DeterAggressionLevel: 5,
  PlatformContext: {
    MessageId: '6048fbf4167e590001ccd64a',
    Timestamp: '2021-03-10T17:03:48.687000'
  },
  DeterLightPattern: 0,
  DeterOverride: false,
  CameraExternalTLSURLStandard: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-81_SD' ],
  CameraStreamPort: 8554,
  AnalyticsSensitivity: 4,
  CameraPreventOTAUpdates: false,
  CameraStreamPath: 'Video-81',
  CameraMac: '84:EB:3E:17:59:58',
  Online: true,
  CameraOriginURL: 'rtsp://10.218.68.24:8554/Video-81',
  CameraIPAddress: '192.168.x.xxx100',
  Features: {
    Features_VIDEO_THUMBNAILS: true,
    Features_RESTORE_DEFAULTS: true,
    Features_REBOOT: true,
    Features_SELECTABLE_NIGHTVISION: true
  },
  CameraThumbnailDate: '2021-03-10T17:03:51.000Z',
  ActualType: 'vivint_odc300_camera_device',
  Password: 'zdD0uwGrLYGCZXkM',
  PanelContext: { Timestamp: '2021-03-10T17:03:48.687000' },
  NotifyOnPackageSeen: true,
  RecordOnAnimalDetected: false,
  NetworkHealth: {
    NetworkHealth: 1,
    MessagePayload_NetworkDiagnostics_RSSI: 0,
    MessagePayload_NetworkDiagnostics_LastCameraIperf: {
      cameraToPanelBandwidth: 10001378,
      MessagePayload_NetworkDiagnostics_Address: 10.001378
    },
    Timestamp: '2020-12-11T17:28:22.478000'
  },
  AnimalROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  CameraExtendSirenEnabled: false,
  Bitrate: 435.608436,
  NetworkHealthHistory: [
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T17:28:22.478000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T13:28:25.525000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T09:28:32.556000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T05:28:35.292000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_RSSI: 0,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Timestamp: '2020-12-11T01:46:36.244000'
    }
  ],
  VideoQuality: 3,
  ManagedBySky: false,
  CameraQuietMode: false,
  CameraStreamPathSD: 'Video-81_SD',
  NotifyOnVehicleSeen: false,
  RecordOnPersonDetected: false,
  PropertyROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  CameraExternalURLStandard: [ 'rtsp://livevid.vivint.com:443/10P218P68P24/8554/Video-81_SD' ],
  StandardDefinitionResolution: '720x400',
  CapabilityCategory: [
    { Capability: [Array], Type: 1 },
    { Capability: [Array], Type: 8 }
  ],
  SetDefaultsCounter: 0,
  CameraAudioCodec: 2,
  CameraInternalAudioURL: 'https://192.168.x.xxx120:8557/Audio-81',
  Settings: {
    ObjectSettings_Device_Onboarding_Camera_Name: true,
    ObjectSettings_Device_Onboarding_Camera_DeterSchedule: true,
    ObjectSettings_Device_Onboarding_Camera_AnalyticsOptIn: true,
    ObjectSettings_Device_Onboarding_Camera_DeterAgressionLevel: true,
    ObjectSettings_Device_Onboarding_Camera_DeterIntro: true,
    ObjectSettings_Device_Onboarding_Camera_PropertyBoundaryV2: true
  },
  HighDefinitionResolution: '1280x720',
  CameraIPPort: '554',
  Name: 'Backyard',
  CameraIRLEDEnabled: true,
  WirelessSignalStrength: 0,
  NetworkAvailabilityState: 100,
  CameraInternalURL: [ 'rtsp://192.168.x.xxx120:8554/Video-81' ],
  CameraAudioSampleRate: 16000,
  NotifyOnPackageMoved: true,
  CameraLocalAudioPort: 8557,
  CanBeRenamed: true,
  AnalyticsVersion: '0.7.8.221.d97e4fb',
  CameraZoomLock: false,
  StreamAvailabilityState: 100,
  CameraExternalAudioURL: 'https://audio.vivintsky.com/Audio-81',
  FromSync: 1,
  RecordOnLurkerDetected: false,
  CameraFlip: true,
  PanelId: 3137597440004537,
  NightVisionEnabled: true,
  DeterOnDuty: false,
  CommandControlAvailabilityState: 100,
  DeterSchedule: [
    2,
    {
      '6': false,
      CidEventCode_NONE: false,
      UsageTrackingValue_VideoQualityLevelOne: false,
      UsageTrackingValue_VideoQualityLevelTwo: false,
      UsageTrackingValue_VideoQualityLevelThree: false,
      UsageTrackingValue_VideoQualityLevelFour: false,
      UsageTrackingValue_VideoQualityLevelFive: false
    },
    {
      CidEventCode_NONE: 1380,
      UsageTrackingValue_VideoQualityLevelOne: 360
    }
  ],
  ConnectedTo: 'Wired',
  CameraInternalURLStandard: [ 'rtsp://192.168.x.xxx120:8554/Video-81_SD' ],
  VehicleROIs: [
    {
      CidEventCode_NONE: [Array],
      UsageTrackingValue_VideoQualityLevelOne: [Array],
      UsageTrackingValue_VideoQualityLevelTwo: [Array],
      UsageTrackingValue_VideoQualityLevelThree: [Array],
      UsageTrackingValue_VideoQualityLevelFour: [Array],
      UsageTrackingValue_VideoQualityLevelFive: [Array]
    }
  ],
  SoftwareVersion: '1.0.3.5907.rc',
  CameraThumbnailRequested: '2021-03-10T17:03:47.315000',
  RecordOnVehicleDetected: false,
  Id: 81,
  VisitorDetected: null,
  PersonInView: null
}
[10/03/2021, 11:05:04] [Vivint] Prepare stream with request: {
  sessionID: 'e6a88c3c-388c-4c01-a7ec-3c7a78febaf4',
  targetAddress: '192.168.x.xxx175',
  addressVersion: 'ipv4',
  video: {
    port: 50914,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer 02 79 49 45 77 9a d3 e5 f7 21 94 ac f4 56 80 98>,
    srtp_salt: <Buffer 17 44 75 18 6e 88 97 27 76 27 f9 38 43 58>
  },
  audio: {
    port: 51222,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer a0 21 c0 8d 55 f9 fa e2 77 b1 0a 9f 9f a9 e5 c5>,
    srtp_salt: <Buffer c6 c4 7b ab 94 3a f0 f9 63 6d c5 72 5f 4d>
  }
}
[10/03/2021, 11:05:04] [Vivint] handleStreamRequest with request: {
  sessionID: 'e6a88c3c-388c-4c01-a7ec-3c7a78febaf4',
  type: 'start',
  video: {
    profile: 2,
    level: 2,
    packetizationMode: 0,
    cvoId: undefined,
    width: 1920,
    height: 1080,
    fps: 30,
    pt: 99,
    ssrc: 508061277,
    max_bit_rate: 802,
    rtcp_interval: 0.5,
    mtu: 1378
  },
  audio: {
    codec: 'AAC-eld',
    channel: 1,
    bit_rate: 0,
    sample_rate: 16,
    packet_time: 30,
    pt: 110,
    ssrc: 103068105,
    max_bit_rate: 24,
    rtcp_interval: 5,
    comfort_pt: 13,
    comfortNoiseEnabled: false
  }
}
[10/03/2021, 11:05:04] [Vivint] Start streaming video for camera 'Backyard'
[10/03/2021, 11:05:04] [Vivint] /usr/local/lib/node_modules/@balansse/homebridge-vivint/node_modules/ffmpeg-for-homebridge/ffmpeg -i rtsp://user:Y9dbBfVzdsb16R8O8nNPKuY@192.168.x.xxx120:8554/Video-81 -an -sn -dn -codec:v copy -use_wallclock_as_timestamps 1 -fflags +genpts -r 15 -bufsize 360448 -payload_type 99 -ssrc 9856318 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params AnlJRXea0+X3IZSs9FaAmBdEdRhuiJcndif5OENY srtp://192.168.x.xxx175:50914?rtcpport=50914&localrtcpport=44813&pkt_size=1316 -vn -sn -dn -codec:a libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -use_wallclock_as_timestamps 1 -bufsize 48k -payload_type 110 -ssrc 755580 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params oCHAjVX5+uJ3sQqfn6nlxcbEe6uUOvD5Y23Fcl9N srtp://192.168.x.xxx175:51222?rtcpport=51222&localrtcpport=40385&pkt_size=188
[10/03/2021, 11:05:04] [Vivint] FFMPEG received first frame

Here is the camera config per the vivint plugin (Thank you guys!!!):

cameras": [
{
"name": "Backyard",
"manufacturer": "VIVINT",
"model": "ODC300",
"videoConfig": {
"source": "-rtsp_transport tcp -re -i rtsp://user:xxxx@192.xxx.x.xxx:8554/Video-81",
"vcodec": "copy",
"audio": false,
"debug": true
Sunoo commented 3 years ago

I didn’t see any code in this plugin watching for devices that disconnected without sending that through HomeKit (for example if they moved out of range of the network). It’s possible this is now fixed in Homebridge itself, but I haven’t been able to confirm that. Either way, you’ll want to confirm that FFmpeg processes don’t keep running if that happens, as if they do, they’ll never stop until you either manually kill them or reboot the server.

Mr-Winston-Wolf commented 3 years ago

Last camera, which fails each time, logs:

[10/03/2021, 11:30:45] [Vivint] Prepare stream with request: {
  sessionID: 'f41d4847-5d6d-4122-8e8e-913d31359d97',
  targetAddress: '192.168.x.133',
  addressVersion: 'ipv4',
  video: {
    port: 52838,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer 1b 5c 52 c1 c0 d2 9d ce 10 9b 99 b8 15 87 5a 01>,
    srtp_salt: <Buffer cb 9f 42 f4 98 94 ca 3a 4e 76 16 8d 19 c7>
  },
  audio: {
    port: 52572,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer df 1c bf 5b c5 4e 44 50 33 3b 25 95 3e a0 45 8a>,
    srtp_salt: <Buffer 2d 2f 65 d8 37 24 3d 5c 2f e2 aa a2 34 19>
  }
}
[10/03/2021, 11:30:45] [Vivint] handleStreamRequest with request: {
  sessionID: 'f41d4847-5d6d-4122-8e8e-913d31359d97',
  type: 'start',
  video: {
    profile: 2,
    level: 2,
    packetizationMode: 0,
    cvoId: undefined,
    width: 1280,
    height: 720,
    fps: 30,
    pt: 99,
    ssrc: 3259980064,
    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: 4173628400,
    max_bit_rate: 24,
    rtcp_interval: 5,
    comfort_pt: 13,
    comfortNoiseEnabled: false
  }
}
[10/03/2021, 11:30:45] [Vivint] Start streaming video for camera 'Driveway'
[10/03/2021, 11:30:45] [Vivint] /usr/local/lib/node_modules/@balansse/homebridge-vivint/node_modules/ffmpeg-for-homebridge/ffmpeg -i rtsp://user:Y9dbBfVzdsb16R8O8nNPKuY@192.168.x.120:8554/Video-88 -an -sn -dn -codec:v copy -use_wallclock_as_timestamps 1 -fflags +genpts -r 15 -bufsize 360448 -payload_type 99 -ssrc 2271937 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params G1xSwcDSnc4Qm5m4FYdaAcufQvSYlMo6TnYWjRnH srtp://192.168.x.133:52838?rtcpport=52838&localrtcpport=35089&pkt_size=1316 -vn -sn -dn -codec:a libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -use_wallclock_as_timestamps 1 -bufsize 48k -payload_type 110 -ssrc 13400552 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 3xy/W8VORFAzOyWVPqBFii0vZdg3JD1cL+KqojQZ srtp://192.168.x.133:52572?rtcpport=52572&localrtcpport=40277&pkt_size=188
[10/03/2021, 11:30:45] [Vivint] FFMPEG received first frame
[10/03/2021, 11:30:49] [Vivint] Parsed PubNub message: {
    "Id": "3137597440004537|1",
    "Data": {
        "Devices": [
            {
                "Id": 88,
                "ActualType": "vivotek_hdp450_camera_device",
                "CameraThumbnailDate": "2021-03-10T17:30:48.000Z"
            }
        ],
        "PlatformContext": {
            "MessagePayload_ContextCarrier": {
                "previous_handler": "Subscriber Update Handler",
                "tracing_context": {
                    "uber-trace-id": "01b00ab6cde2567c:01b00ab6cde2567c:0000000000000000:0"
                }
            },
            "MessageId": "60490248fa722500012b08f9",
            "Timestamp": "2021-03-10T17:30:48.988"
        }
    },
    "Operation": "u",
    "PanelId": 3137597440004537,
    "PartitionId": 1,
    "Type": "account_partition"
}
[10/03/2021, 11:30:49] [Vivint] Patching data:  {
  NetworkHealth: {
    NetworkHealth: 1,
    MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
    Timestamp: '2020-12-11T17:28:22.488000'
  },
  CameraExternalTLSURL: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-88' ],
  Password: 'Crrz3jedU27m0vi7',
  CameraExtendSirenEnabled: false,
  AspectRatioTuple: [ 16, 9 ],
  CameraDirectAvailable: true,
  CameraDoorbellChime: 1,
  Bitrate: 512,
  CameraStreamPath: 'Video-88',
  NetworkHealthHistory: [
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T17:28:22.488000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T13:28:25.532000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T09:28:32.563000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T05:28:35.299000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T01:46:36.252000'
    }
  ],
  CameraDirectStreamPathStandard: 'live2.sdp',
  CaptureClipOnVisitorEvent: true,
  CanBeRenamed: true,
  CameraDirectStreamPath: 'live.sdp',
  CameraZoomLock: false,
  PanelContext: { Timestamp: '2021-03-10T16:15:33.958000' },
  StreamAvailabilityState: 100,
  CameraLocalAudioPort: 8557,
  CameraThumbnailRequested: '2021-03-10T16:15:33.002000',
  CameraAudioCodec: 1,
  NotificationAvailabilityState: 100,
  CameraLEDEnabled: true,
  ManagedBySky: false,
  Uuid: 'bac51a4a-94e8-2921-5a76-8f40ae904a29',
  CameraQuietMode: false,
  CameraStreamPathSD: 'Video-88_SD',
  CameraOriginURLStandard: 'rtsp://10.218.68.24:8554/Video-88_SD',
  NetworkAvailabilityState: 100,
  Timestamp: '2021-03-10T16:15:33.959000',
  PlatformContext: {
    MessageId: '6048f0a53389aa0001e544ee',
    Timestamp: '2021-03-10T16:15:33.958000'
  },
  FromSync: 1,
  VideoQuality: 3,
  Username: 'root',
  CameraFlip: true,
  CameraExternalTLSURLStandard: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-88_SD' ],
  Hidden: false,
  PanelId: 3137597440004537,
  NightVisionEnabled: true,
  CameraConnectionType: 'wired',
  CameraExternalURLStandard: [ 'rtsp://livevid.vivint.com:443/10P218P68P24/8554/Video-88_SD' ],
  CameraPrivacy: false,
  Status: 133,
  CommandControlAvailabilityState: 100,
  ActualType: 'vivotek_hdp450_camera_device',
  CameraStreamPort: 8554,
  CameraExternalURL: [ 'rtsp://livevid.vivint.com:443/10P218P68P24/8554/Video-88' ],
  CameraAudioPort: 8555,
  CapabilityCategory: [
    { Capability: [Array], Type: 1 },
    { Capability: [Array], Type: 8 }
  ],
  FrameRate: 30,
  SetDefaultsCounter: 0,
  RebootCameraCounter: 0,
  CameraAudioPath: 'Audio-88',
  CameraExtendChimeEnabled: false,
  CameraMac: '0002D17B402B',
  Features: {
    Features_VIDEO_THUMBNAILS: true,
    Features_RESTORE_DEFAULTS: true,
    Features_REBOOT: true,
    Features_SELECTABLE_NIGHTVISION: true
  },
  Online: true,
  CameraOriginURL: 'rtsp://10.218.68.24:8554/Video-88',
  HighDefinitionResolution: '1280x720',
  ConnectedTo: 'Wired',
  CameraIPAddress: '192.168.x.115',
  CameraInternalURLStandard: [ 'rtsp://192.168.x.120:8554/Video-88_SD' ],
  CameraIPPort: '554',
  SoftwareVersion: '0300i',
  Name: 'Driveway',
  CameraThumbnailDate: '2021-03-10T16:15:33.000000',
  CameraIRLEDEnabled: true,
  WirelessSignalStrength: 0,
  CameraRecordAudio: true,
  StandardDefinitionResolution: '800x450',
  Type: 'camera_device',
  CameraInternalURL: [ 'rtsp://192.168.x.120:8554/Video-88' ],
  CameraAudioSampleRate: 8000,
  CaptureClipOnMotion: false,
  Id: 88,
  ExcludeRules: 1,
  VisitorDetected: null,
  PersonInView: null
}
[10/03/2021, 11:30:49] [Vivint] Applying patch:  {
  Id: 88,
  ActualType: 'vivotek_hdp450_camera_device',
  CameraThumbnailDate: '2021-03-10T17:30:48.000Z'
}
[10/03/2021, 11:30:49] [Vivint] Patched data:  {
  NetworkHealth: {
    NetworkHealth: 1,
    MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
    Timestamp: '2020-12-11T17:28:22.488000'
  },
  CameraExternalTLSURL: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-88' ],
  Password: 'Crrz3jedU27m0vi7',
  CameraExtendSirenEnabled: false,
  AspectRatioTuple: [ 16, 9 ],
  CameraDirectAvailable: true,
  CameraDoorbellChime: 1,
  Bitrate: 512,
  CameraStreamPath: 'Video-88',
  NetworkHealthHistory: [
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T17:28:22.488000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T13:28:25.532000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T09:28:32.563000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T05:28:35.299000'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Timestamp: '2020-12-11T01:46:36.252000'
    }
  ],
  CameraDirectStreamPathStandard: 'live2.sdp',
  CaptureClipOnVisitorEvent: true,
  CanBeRenamed: true,
  CameraDirectStreamPath: 'live.sdp',
  CameraZoomLock: false,
  PanelContext: { Timestamp: '2021-03-10T16:15:33.958000' },
  StreamAvailabilityState: 100,
  CameraLocalAudioPort: 8557,
  CameraThumbnailRequested: '2021-03-10T16:15:33.002000',
  CameraAudioCodec: 1,
  NotificationAvailabilityState: 100,
  CameraLEDEnabled: true,
  ManagedBySky: false,
  Uuid: 'bac51a4a-94e8-2921-5a76-8f40ae904a29',
  CameraQuietMode: false,
  CameraStreamPathSD: 'Video-88_SD',
  CameraOriginURLStandard: 'rtsp://10.218.68.24:8554/Video-88_SD',
  NetworkAvailabilityState: 100,
  Timestamp: '2021-03-10T16:15:33.959000',
  PlatformContext: {
    MessageId: '6048f0a53389aa0001e544ee',
    Timestamp: '2021-03-10T16:15:33.958000'
  },
  FromSync: 1,
  VideoQuality: 3,
  Username: 'root',
  CameraFlip: true,
  CameraExternalTLSURLStandard: [ 'rtsp://v.vivintsky.com:443/10P218P68P24/8554/Video-88_SD' ],
  Hidden: false,
  PanelId: 3137597440004537,
  NightVisionEnabled: true,
  CameraConnectionType: 'wired',
  CameraExternalURLStandard: [ 'rtsp://livevid.vivint.com:443/10P218P68P24/8554/Video-88_SD' ],
  CameraPrivacy: false,
  Status: 133,
  CommandControlAvailabilityState: 100,
  ActualType: 'vivotek_hdp450_camera_device',
  CameraStreamPort: 8554,
  CameraExternalURL: [ 'rtsp://livevid.vivint.com:443/10P218P68P24/8554/Video-88' ],
  CameraAudioPort: 8555,
  CapabilityCategory: [
    { Capability: [Array], Type: 1 },
    { Capability: [Array], Type: 8 }
  ],
  FrameRate: 30,
  SetDefaultsCounter: 0,
  RebootCameraCounter: 0,
  CameraAudioPath: 'Audio-88',
  CameraExtendChimeEnabled: false,
  CameraMac: '0002D17B402B',
  Features: {
    Features_VIDEO_THUMBNAILS: true,
    Features_RESTORE_DEFAULTS: true,
    Features_REBOOT: true,
    Features_SELECTABLE_NIGHTVISION: true
  },
  Online: true,
  CameraOriginURL: 'rtsp://10.218.68.24:8554/Video-88',
  HighDefinitionResolution: '1280x720',
  ConnectedTo: 'Wired',
  CameraIPAddress: '192.168.x.115',
  CameraInternalURLStandard: [ 'rtsp://192.168.x.120:8554/Video-88_SD' ],
  CameraIPPort: '554',
  SoftwareVersion: '0300i',
  Name: 'Driveway',
  CameraThumbnailDate: '2021-03-10T17:30:48.000Z',
  CameraIRLEDEnabled: true,
  WirelessSignalStrength: 0,
  CameraRecordAudio: true,
  StandardDefinitionResolution: '800x450',
  Type: 'camera_device',
  CameraInternalURL: [ 'rtsp://192.168.x.120:8554/Video-88' ],
  CameraAudioSampleRate: 8000,
  CaptureClipOnMotion: false,
  Id: 88,
  ExcludeRules: 1,
  VisitorDetected: null,
  PersonInView: null
}
[10/03/2021, 11:30:52] [Vivint] Error: FFmpeg exited with code 1

So the outdoor pro seems to work but may need tweaking for best stream due to is being a larger capture, our driveway camera logs are above and that one does not seem to pull regardless. Hope this helps!

j0np commented 3 years ago

one thing to note I had same issues reported above with my Vivint cams (doorbell DB8331W and external camera HDP450) when using FFmpeg. I would get very unreliable connection, some took forever to load (most times failed) and some just hung in between the feeds when it finally loaded, sometime loaded quick.

One things I added was the following settings to the cameras in FFmpeg: Doorbell -rtsp_transport tcp -probesize 1500 -analyzeduration 0 -re -i rtsp://user:@192.168.150.12:8554/Video-50

External -rtsp_transport tcp -probesize 32 -analyzeduration 0 -re -i rtsp://user:@192.168.150.12:8554/Video-53

Now my cameras works much more reliably. doorbell cam takes about 3-4 seconds to load, and driveway cam loads instantly every time.

So maybe want to test the above settings in FFmpeg, and see if you guys get the same results, if so maybe we can incorporate into Vivint plugin.

One thing to note, not all cameras are the same. I have a cheap HiemVision camera Ive been testing, and for that one I had to set the probe size to 32 to have the best results, however the still images I had to set the probe size to 1500. Still trying to fine-tune as only 75% of the time video feed loads instantly, 25% fails or takes about 15sec to load.

Also last note, I noticed between Vivint and FFmpeg plugin motion sensor is very unreliable. Not sure why its not catching every movement, as Vivint alerts on the movement. Im getting maybe if im lucky 5% of the alerts within Vivint plugin and/or FFmpeg.

balansse commented 3 years ago

Also last note, I noticed between Vivint and FFmpeg plugin motion sensor is very unreliable. Not sure why its not catching every movement, as Vivint alerts on the movement. Im getting maybe if im lucky 5% of the alerts within Vivint plugin and/or FFmpeg.

Could you please run Homebridge in Debug mode, trigger camera motion sensor (receiving Vivint alert) and send me the log to balansse@gmail.com? Vivint might be using a different flag that I'm not aware of.

Mr-Winston-Wolf commented 3 years ago

I have noticed with the backyard camera I added the logs for above seems to be running however when I took a deeper look the image (frozen) is up and the audio continues to run. So it looks like the video is running as the audio used to time out too, however the screen is just a picture w/ audio.

Will try the other ffmpeg settings mentioned above to see if this camera would work more reliable that way.

balansse commented 3 years ago

Please update to the latest version 1.5.1 and let me know if you still have issues with the cameras!

jeffwhalen commented 3 years ago

Please update to the latest version 1.5.1 and let me know if you still have issues with the cameras!

Thanks for the plug-in. Updated to 1.5.1 and Homebridge won’t run. Reverting to 1.5 works fine for me.

balansse commented 3 years ago

Please update to the latest version 1.5.1 and let me know if you still have issues with the cameras!

Thanks for the plug-in. Updated to 1.5.1 and Homebridge won’t run. Reverting to 1.5 works fine for me.

Sorry about that! I just published 1.5.2, please update and it shouldn't crash

jeffwhalen commented 3 years ago

Please update to the latest version 1.5.1 and let me know if you still have issues with the cameras!

Thanks for the plug-in. Updated to 1.5.1 and Homebridge won’t run. Reverting to 1.5 works fine for me.

Sorry about that! I just published 1.5.2, please update and it shouldn't crash

1.5.2 works. Wow! The camera loads super fast now. Thank you very much! This is awesome.

Mr-Winston-Wolf commented 3 years ago

Better with one camera, choppy with some errors on the Vivint Outdoor Pro Camera. Best to send you the log file to gmail? If not I can post after I clean it up a bit.

Mr-Winston-Wolf commented 3 years ago

Here are the logs, this is for this particular camera - https://www.vivint.com/products/outdoor-camera. Specs for it are under all of the marketing garbage.

Here are the logs when that runs, which is choppy or will stop off and on while running. I see a few items popping up in the logs, let me know what you see. Thank you!

[10/03/2021, 23:42:41] [Vivint] Input #0, rtsp, from 'rtsp://user:user@192.168.x.xxx:8554/Video-81':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
  Duration: N/A, start: 1615441361.174489, bitrate: N/A

[10/03/2021, 23:42:41] [Vivint]     Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 60 tbr, 90k tbn, 48 tbc
    Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp

[10/03/2021, 23:42:41] [Vivint] Output #0, rtp, to 'srtp://192.168.x175:54242?rtcpport=54242&localrtcpport=44275&pkt_size=1316':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
    encoder         : Lavf58.45.100

[10/03/2021, 23:42:41] [Vivint]     Stream #0:0: Video: h264 (Main), yuvj420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 24 fps, 60 tbr, 90k tbn, 15 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #1:0 (opus (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:41] [Vivint] Output #1, rtp, to 'srtp://192.168.x175:56075?rtcpport=56075&localrtcpport=45483&pkt_size=188':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
    encoder         : Lavf58.45.100

[10/03/2021, 23:42:41] [Vivint]     Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s
    Metadata:
      encoder         : Lavc58.91.100 libfdk_aac

[10/03/2021, 23:42:41] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:41] [Vivint]     Last message repeated 2 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 11995, current: 11926; changing to 11995. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:41] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:41] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 11995, current: 11906; changing to 11995. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:42] [Vivint] frame=   16 fps=0.0 q=-1.0 size=      39kB time=00:00:00.93 bitrate= 344.0kbits/s speed=1.84x    
[10/03/2021, 23:42:42] [Vivint] frame=   28 fps= 28 q=-1.0 size=      42kB time=00:00:01.43 bitrate= 239.3kbits/s speed=1.42x    
[10/03/2021, 23:42:42] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:43] [Vivint] frame=   40 fps= 26 q=-1.0 size=      44kB time=00:00:01.93 bitrate= 186.9kbits/s speed=1.27x    
[10/03/2021, 23:42:43] [Vivint] frame=   54 fps= 27 q=-1.0 size=      73kB time=00:00:02.45 bitrate= 245.2kbits/s speed=1.21x    
[10/03/2021, 23:42:43] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:43] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:43] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 41700, current: 41605; changing to 41700. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:43] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:43] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 42117, current: 42040; changing to 42117. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:43] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 42117, current: 42008; changing to 42117. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:44] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:44] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 46525, current: 46431; changing to 46525. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:44] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:44] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 46943, current: 46867; changing to 46943. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:44] [Vivint] frame=   65 fps= 25 q=-1.0 size=      76kB time=00:00:03.00 bitrate= 206.5kbits/s speed=1.18x    
[10/03/2021, 23:42:44] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:44] [Vivint]     Last message repeated 2 times
frame=   77 fps= 25 q=-1.0 size=      78kB time=00:00:03.50 bitrate= 182.6kbits/s speed=1.14x    
[10/03/2021, 23:42:44] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:45] [Vivint]     Last message repeated 1 times
frame=   90 fps= 25 q=-1.0 size=      81kB time=00:00:04.00 bitrate= 165.2kbits/s speed=1.12x    
[10/03/2021, 23:42:45] [Vivint] frame=  102 fps= 25 q=-1.0 size=     109kB time=00:00:04.50 bitrate= 198.4kbits/s speed= 1.1x    
[10/03/2021, 23:42:46] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:46] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:46] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 79825, current: 79734; changing to 79825. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:46] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:46] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 79825, current: 79636; changing to 79825. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:46] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 79825, current: 79542; changing to 79825. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:46] [Vivint] frame=  114 fps= 25 q=-1.0 size=     112kB time=00:00:05.02 bitrate= 183.5kbits/s speed=1.09x    
[10/03/2021, 23:42:46] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:46] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 80944, current: 80908; changing to 80944. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:46] [Vivint] frame=  127 fps= 25 q=-1.0 size=     117kB time=00:00:05.54 bitrate= 172.8kbits/s speed=1.07x    
[10/03/2021, 23:42:46] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:46] [Vivint]     Last message repeated 2 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 92787, current: 92700; changing to 92787. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:46] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 92787, current: 92590; changing to 92787. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:47] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:47] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 95381, current: 95301; changing to 95381. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:47] [Vivint] frame=  139 fps= 25 q=-1.0 size=     119kB time=00:00:06.09 bitrate= 159.3kbits/s speed=1.07x    
[10/03/2021, 23:42:47] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:47] [Vivint]     Last message repeated 1 times
frame=  151 fps= 24 q=-1.0 size=     154kB time=00:00:06.63 bitrate= 190.3kbits/s speed=1.07x    
[10/03/2021, 23:42:47] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:48] [Vivint]     Last message repeated 1 times
frame=  164 fps= 25 q=-1.0 size=     156kB time=00:00:07.12 bitrate= 180.0kbits/s speed=1.07x    
[10/03/2021, 23:42:48] [Vivint] frame=  176 fps= 24 q=-1.0 size=     159kB time=00:00:07.62 bitrate= 170.8kbits/s speed=1.06x    
[10/03/2021, 23:42:49] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:49] [Vivint] frame=  186 fps= 24 q=-1.0 size=     162kB time=00:00:08.15 bitrate= 162.2kbits/s speed=1.05x    
[10/03/2021, 23:42:49] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:49] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:49] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:49] [Vivint]     Last message repeated 1 times
frame=  201 fps= 24 q=-1.0 size=     208kB time=00:00:08.67 bitrate= 196.0kbits/s speed=1.05x    
[rtsp @ 0x3455c30] max delay reached. need to consume packetize=     210kB time=00:00:09.23 bitrate= 186.1kbits/s speed=1.05x    
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:50] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:50] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 151878, current: 151784; changing to 151878. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:50] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:50] [Vivint] frame=  224 fps= 24 q=-1.0 size=     214kB time=00:00:09.70 bitrate= 181.1kbits/s speed=1.04x    
[10/03/2021, 23:42:51] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:51] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:51] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 160884, current: 160791; changing to 160884. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:51] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:51] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 161303, current: 161234; changing to 161303. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:51] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 161303, current: 161149; changing to 161303. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:51] [Vivint] frame=  234 fps= 24 q=-1.0 size=     219kB time=00:00:10.25 bitrate= 174.7kbits/s speed=1.04x    
[10/03/2021, 23:42:51] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:51] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:51] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:51] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:51] [Vivint]     Last message repeated 3 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 170974, current: 170902; changing to 170974. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:51] [Vivint] frame=  247 fps= 24 q=-1.0 size=     271kB time=00:00:10.71 bitrate= 207.4kbits/s speed=1.04x    
[10/03/2021, 23:42:52] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:52] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:52] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 177196, current: 177101; changing to 177196. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:52] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:52] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 177196, current: 177003; changing to 177196. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:52] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 177196, current: 176908; changing to 177196. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:52] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:52] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 177420, current: 177351; changing to 177420. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:52] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 177420, current: 177262; changing to 177420. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:52] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:52] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 179579, current: 179483; changing to 179579. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:52] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:52] [Vivint] frame=  258 fps= 24 q=-1.0 size=     274kB time=00:00:11.30 bitrate= 198.8kbits/s speed=1.04x    
[10/03/2021, 23:42:52] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:52] [Vivint]     Last message repeated 2 times
frame=  270 fps= 24 q=-1.0 size=     276kB time=00:00:11.80 bitrate= 191.8kbits/s speed=1.04x    
[10/03/2021, 23:42:53] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:53] [Vivint]     Last message repeated 1 times
frame=  283 fps= 24 q=-1.0 size=     279kB time=00:00:12.27 bitrate= 186.1kbits/s speed=1.04x    
[10/03/2021, 23:42:53] [Vivint] frame=  295 fps= 24 q=-1.0 size=     313kB time=00:00:12.78 bitrate= 200.4kbits/s speed=1.03x    
[10/03/2021, 23:42:54] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:54] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:54] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 208518, current: 208425; changing to 208518. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:54] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:54] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 208937, current: 208860; changing to 208937. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:54] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 208937, current: 208764; changing to 208937. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:54] [Vivint] frame=  307 fps= 24 q=-1.0 size=     315kB time=00:00:13.31 bitrate= 193.9kbits/s speed=1.03x    
[10/03/2021, 23:42:54] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:55] [Vivint] frame=  319 fps= 24 q=-1.0 size=     318kB time=00:00:13.82 bitrate= 188.2kbits/s speed=1.03x    
[[10/03/2021, 23:42:55] [Vivint] frame=  332 fps= 24 q=-1.0 size=     321kB time=00:00:14.36 bitrate= 182.7kbits/s speed=1.03x    
[10/03/2021, 23:42:55] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:55] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:56] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:56] [Vivint] frame=  342 fps= 24 q=-1.0 size=     346kB time=00:00:14.83 bitrate= 191.1kbits/s speed=1.03x    
[10/03/2021, 23:42:56] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:56] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:56] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 240772, current: 240700; changing to 240772. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:56] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:56] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 240772, current: 240604; changing to 240772. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:56] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 240772, current: 240509; changing to 240772. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:42:56] [Vivint] frame=  357 fps= 24 q=-1.0 size=     349kB time=00:00:15.36 bitrate= 186.2kbits/s speed=1.03x    
[rtsp @ 0x3455c30] max delay reached. need to consume packetize=     351kB time=00:00:15.90 bitrate= 180.8kbits/s speed=1.03x    
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:42:57] [Vivint] frame=  381 fps= 24 q=-1.0 size=     355kB time=00:00:16.39 bitrate= 177.2kbits/s speed=1.03x    
[10/03/2021, 23:42:58] [Vivint] frame=  394 fps= 24 q=-1.0 size=     384kB time=00:00:16.89 bitrate= 186.0kbits/s speed=1.02x    
[10/03/2021, 23:42:58] [Vivint] frame=  407 fps= 24 q=-1.0 size=     386kB time=00:00:17.43 bitrate= 181.5kbits/s speed=1.03x    
[10/03/2021, 23:42:59] [Vivint] frame=  419 fps= 24 q=-1.0 size=     389kB time=00:00:17.95 bitrate= 177.6kbits/s speed=1.02x    
[10/03/2021, 23:42:59] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:42:59] [Vivint] frame=  432 fps= 24 q=-1.0 size=     392kB time=00:00:18.46 bitrate= 173.9kbits/s speed=1.02x    
[10/03/2021, 23:43:00] [Vivint] frame=  444 fps= 24 q=-1.0 size=     421kB time=00:00:18.97 bitrate= 181.7kbits/s speed=1.02x    
[10/03/2021, 23:43:00] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:00] [Vivint] frame=  456 fps= 24 q=-1.0 size=     425kB time=00:00:19.53 bitrate= 178.1kbits/s speed=1.02x    
[10/03/2021, 23:43:00] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:01] [Vivint] frame=  468 fps= 24 q=-1.0 size=     427kB time=00:00:20.01 bitrate= 174.8kbits/s speed=1.02x    
[10/03/2021, 23:43:01] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:01] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 321299, current: 321207; changing to 321299. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:01] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:01] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 321719, current: 321648; changing to 321719. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:01] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:01] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 326494, current: 326482; changing to 326494. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:01] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:01] [Vivint]     Last message repeated 1 times
frame=  479 fps= 24 q=-1.0 size=     429kB time=00:00:20.56 bitrate= 171.0kbits/s speed=1.02x    
[10/03/2021, 23:43:02] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:02] [Vivint]     Last message repeated 1 times
[rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:43:02] [Vivint] frame=  488 fps= 24 q=-1.0 size=     458kB time=00:00:21.01 bitrate= 178.5kbits/s speed=1.02x    
[10/03/2021, 23:43:02] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:02] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 337774, current: 337697; changing to 337774. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:02] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:02] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 340446, current: 340350; changing to 340446. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:02] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 340878, current: 340785; changing to 340878. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:02] [Vivint] frame=  503 fps= 24 q=-1.0 size=     464kB time=00:00:21.55 bitrate= 176.3kbits/s speed=1.02x    
[10/03/2021, 23:43:02] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:02] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 346427, current: 346334; changing to 346427. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:02] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:03] [Vivint]     Last message repeated 1 times
frame=  514 fps= 24 q=-1.0 size=     469kB time=00:00:22.06 bitrate= 174.2kbits/s speed=1.02x    
[10/03/2021, 23:43:03] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:03] [Vivint]     Last message repeated 2 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 355237, current: 355164; changing to 355237. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:03] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:03] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 361393, current: 361297; changing to 361393. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:03] [Vivint] frame=  525 fps= 24 q=-1.0 size=     473kB time=00:00:22.61 bitrate= 171.3kbits/s speed=1.02x    
[10/03/2021, 23:43:03] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:03] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 363159, current: 363122; changing to 363159. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:04] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:04] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 366858, current: 366765; changing to 366858. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:04] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 366858, current: 366679; changing to 366858. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:04] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:04] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 368015, current: 367944; changing to 368015. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:04] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:43:04] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:04] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 368197, current: 368174; changing to 368197. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:04] [Vivint] frame=  536 fps= 24 q=-1.0 size=     510kB time=00:00:23.05 bitrate= 181.1kbits/s speed=1.02x    
[10/03/2021, 23:43:04] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:04] [Vivint]     Last message repeated 1 times
frame=  548 fps= 24 q=-1.0 size=     511kB time=00:00:23.59 bitrate= 177.4kbits/s speed=1.02x    
[10/03/2021, 23:43:05] [Vivint] frame=  559 fps= 24 q=-1.0 size=     515kB time=00:00:24.12 bitrate= 174.8kbits/s speed=1.02x    
[10/03/2021, 23:43:05] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:05] [Vivint]     Last message repeated 1 times

[10/03/2021, 23:43:05] [Vivint] frame=  571 fps= 24 q=-1.0 size=     521kB time=00:00:24.64 bitrate= 173.1kbits/s speed=1.02x    
[10/03/2021, 23:43:06] [Vivint] frame=  583 fps= 24 q=-1.0 size=     574kB time=00:00:25.15 bitrate= 187.1kbits/s speed=1.02x    
[10/03/2021, 23:43:06] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:06] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 404681, current: 404610; changing to 404681. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:06] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:06] [Vivint]     Last message repeated 1 times
frame=  595 fps= 24 q=-1.0 size=     578kB time=00:00:25.65 bitrate= 184.7kbits/s speed=1.02x    
[10/03/2021, 23:43:06] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:07] [Vivint]     Last message repeated 2 times
frame=  606 fps= 24 q=-1.0 size=     581kB time=00:00:26.14 bitrate= 181.9kbits/s speed=1.01x    
[10/03/2021, 23:43:07] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:07] [Vivint]     Last message repeated 2 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 420223, current: 420133; changing to 420223. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:07] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:07] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 422278, current: 422189; changing to 422278. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:07] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 424775, current: 424681; changing to 424775. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:07] [Vivint] frame=  618 fps= 24 q=-1.0 size=     583kB time=00:00:26.72 bitrate= 178.8kbits/s speed=1.02x    
[10/03/2021, 23:43:08] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:43:08] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:08] [Vivint] frame=  631 fps= 24 q=-1.0 size=     613kB time=00:00:27.21 bitrate= 184.6kbits/s speed=1.02x    
[10/03/2021, 23:43:08] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:43:08] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:08] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 439174, current: 439081; changing to 439174. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:08] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:08] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 439174, current: 438982; changing to 439174. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:08] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 439174, current: 438888; changing to 439174. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:08] [Vivint] frame=  642 fps= 24 q=-1.0 size=     619kB time=00:00:27.71 bitrate= 182.9kbits/s speed=1.01x    
[10/03/2021, 23:43:08] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:08] [Vivint]     Last message repeated 1 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 444315, current: 444223; changing to 444315. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:08] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:08] [Vivint] [rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 444315, current: 444272; changing to 444315. This may result in incorrect timestamps in the output file.

[10/03/2021, 23:43:09] [Vivint] [libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:11] [Vivint] Handling incoming device snapshot for timestamp 2021-03-11T05:30:31.350000
[10/03/2021, 23:43:11] [Vivint]     Last message repeated 2 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 452036, current: 452024; changing to 452036. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time
    Last message repeated 3 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 456580, current: 456520; changing to 456580. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time
[libfdk_aac @ 0x356b610] Queue input is backward in time.76 bitrate= 178.9kbits/s speed=1.01x    
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 463071, current: 462980; changing to 463071. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 464308, current: 464265; changing to 464308. This may result in incorrect timestamps in the output file.
[rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets
[libfdk_aac @ 0x356b610] Queue input is backward in time.32 bitrate= 182.5kbits/s speed=1.01x    
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 471443, current: 471415; changing to 471443. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time
[libfdk_aac @ 0x356b610] Queue input is backward in time.74 bitrate= 180.9kbits/s speed=1.01x    
    Last message repeated 2 times
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 479597, current: 479513; changing to 479597. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time.32 bitrate= 178.9kbits/s speed=1.01x    
[rtp @ 0x3567a70] Non-monotonous DTS in output stream 1:0; previous: 486450, current: 486350; changing to 486450. This may result in incorrect timestamps in the output file.
[libfdk_aac @ 0x356b610] Queue input is backward in time

[10/03/2021, 23:43:12] [Vivint]     Last message repeated 1 times
frame=  714 fps= 23 q=-1.0 size=     665kB time=00:00:30.83 bitrate= 176.6kbits/s speed=1.01x    
[10/03/2021, 23:43:12] [Vivint] [rtsp @ 0x3455c30] max delay reached. need to consume packet
[rtsp @ 0x3455c30] RTP: missed 1 packets

[10/03/2021, 23:43:12] [Vivint] handleStreamRequest with request: { sessionID: '566a1570-e014-4364-8ab4-a401918f1177', type: 'stop' }
[10/03/2021, 23:43:12] [Vivint] Camera stopped streaming
[10/03/2021, 23:43:22] [Vivint] Handling camera snapshot for 'Backyard' at 1280x720
[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: 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/03/2021, 23:43:22] [Vivint] SNAPSHOT:   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/03/2021, 23:43:22] [Vivint] SNAPSHOT: [udp @ 0x43a4640] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: [udp @ 0x43b49a0] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: [udp @ 0x43c5680] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: [udp @ 0x43d59d0] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: [rtsp @ 0x439f4e0] max delay reached. need to consume packet
[rtsp @ 0x439f4e0] RTP: missed 1 packets

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: [h264 @ 0x43a2c70] cabac decode of qscale diff failed at 63 29
[h264 @ 0x43a2c70] error while decoding MB 63 29, bytestream 23090

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: [h264 @ 0x43a2c70] concealing 1266 DC, 1266 AC, 1266 MV errors in I frame

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: [rtsp @ 0x439f4e0] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 0x439f4e0] decoding for stream 0 failed

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: Input #0, rtsp, from 'rtsp://user:user@192.168.x.xxx:8554/Video-81':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: 
  Duration: N/A, start: 1615441402.799563, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 tbr, 90k tbn, 48 tbc
    Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp

[10/03/2021, 23:43:22] [Vivint] SNAPSHOT: Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help

[10/03/2021, 23:43:23] [Vivint] SNAPSHOT: Output #0, image2, to 'pipe:':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
    encoder         : Lavf58.45.100
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 24 fps, 24 tbn, 
[10/03/2021, 23:43:23] [Vivint] SNAPSHOT: 24 tbc
    Metadata:
      encoder         : Lavc58.91.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

[10/03/2021, 23:43:23] [Vivint] SNAPSHOT: frame=    1 fps=0.0 q=5.5 Lsize=N/A time=00:00:00.04 bitrate=N/A dup=1 drop=1 speed=0.179x    
video:42kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

[10/03/2021, 23:43:33] [Vivint] Handling camera snapshot for 'Backyard' at 1280x720
[10/03/2021, 23:43:33] [Vivint] SNAPSHOT: 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/03/2021, 23:43:33] [Vivint] SNAPSHOT:   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/03/2021, 23:43:33] [Vivint] SNAPSHOT: [udp @ 0x3624640] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:33] [Vivint] SNAPSHOT: [udp @ 0x36349a0] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:33] [Vivint] SNAPSHOT: [udp @ 0x3645680] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:33] [Vivint] SNAPSHOT: [udp @ 0x36559d0] attempted to set receive buffer to size 393216 but it only ended up set as 360448

[10/03/2021, 23:43:34] [Vivint] SNAPSHOT: [rtsp @ 0x361f4e0] decoding for stream 0 failed

[10/03/2021, 23:43:34] [Vivint] SNAPSHOT: Input #0, rtsp, from 'rtsp://user:user@192.168.x.xxx:8554/Video-81':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
  Duration: 
[10/03/2021, 23:43:34] [Vivint] SNAPSHOT: N/A, start: 1615441413.845271, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 26.08 tbr, 90k tbn, 48 tbc
    Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp

[10/03/2021, 23:43:34] [Vivint] SNAPSHOT: Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help

[10/03/2021, 23:43:34] [Vivint] SNAPSHOT: [rtsp @ 0x361f4e0] max delay reached. need to consume packet
[rtsp @ 0x361f4e0] RTP: missed 1 packets

[10/03/2021, 23:43:34] [Vivint] SNAPSHOT: frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A    
[10/03/2021, 23:43:35] [Vivint] SNAPSHOT: frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A    
[10/03/2021, 23:43:35] [Vivint] SNAPSHOT: [rtsp @ 0x361f4e0] max delay reached. need to consume packet
[rtsp @ 0x361f4e0] RTP: missed 1 packets

[10/03/2021, 23:43:35] [Vivint] SNAPSHOT: [rtsp @ 0x361f4e0] max delay reached. need to consume packet
[rtsp @ 0x361f4e0] RTP: missed 1 packets

[10/03/2021, 23:43:35] [Vivint] SNAPSHOT: frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A    
[10/03/2021, 23:43:36] [Vivint] SNAPSHOT: Output #0, image2, to 'pipe:':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
    encoder         : Lavf58.45.100
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 26.08 fps, 26.08 tbn, 26.08 tbc
    Metadata:
      encoder         : Lavc58.91.100 mjpeg
    Side data:

[10/03/2021, 23:43:36] [Vivint] SNAPSHOT:       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
[10/03/2021, 23:43:36] [Vivint] SNAPSHOT: frame=    1 fps=0.5 q=5.4 Lsize=N/A time=00:00:00.03 bitrate=N/A dup=1 drop=1 speed=0.0189x    
video:43kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
snydema1 commented 3 years ago

Please update to the latest version 1.5.1 and let me know if you still have issues with the cameras!

Thanks for the plug-in. Updated to 1.5.1 and Homebridge won’t run. Reverting to 1.5 works fine for me.

Sorry about that! I just published 1.5.2, please update and it shouldn't crash

Both of my cameras are working great. As others have mentioned they’re also loading super fast now.

It’s only 5am so I won’t test my doorbell displaying on ring on my Apple Tv :)

Thanks so much for this update!

balansse commented 3 years ago

Here are the logs, this is for this particular camera - https://www.vivint.com/products/outdoor-camera. Specs for it are under all of the marketing garbage.

Thanks for the FFMPEG logs, looks like the image is being successfully encoded and sent to your device so there is not a lot I can do - you can ignore all the "Non-monotonous DTS" etc warnings as this is a live stream with multiple steps in between. It also depends heavily on your network configuration, signal strength, Homebridge instance etc.

There is a way to stream video directly from Vivint servers instead of taking a local stream from the security panel - I'll add the config option for that in the next update so you can try if that improves the experience.

007GTCS commented 3 years ago

I have the Vivint Doorbell Camera 2S1. It is slow to load, has been with the FFMPEG Plugin too. I love the work you have done here. Just giving the logs to help your development in the future. Thanks for the work you are doing on this! https://www.vivint.com/products/doorbell-camera

[3/11/2021, 8:33:23 AM] [Vivint] SNAPSHOT: frame=    1 fps=0.5 q=4.6 Lsize=N/A time=00:00:00.03 bitrate=N/A dup=1 drop=1 speed=0.0174x    
video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

[3/11/2021, 8:33:23 AM] [Vivint] Prepare stream with request: {
  sessionID: 'f06267c1-6939-4b34-95ad-9d33e67f69c6',
  targetAddress: '192.168.1.5',
  addressVersion: 'ipv4',
  video: {
    port: 61193,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer 2e 35 78 42 c1 76 63 b2 67 7a 4c cf 04 9e 15 17>,
    srtp_salt: <Buffer 29 b4 33 c0 99 42 13 e0 53 35 ec 11 31 99>
  },
  audio: {
    port: 63908,
    srtpCryptoSuite: 0,
    srtp_key: <Buffer f2 43 1e 55 c0 cc bb a9 f8 fe 62 31 5d fe 9c c3>,
    srtp_salt: <Buffer e6 f5 7f ba 3d a3 1d c0 0a 08 0b 3b 14 db>
  }
}
[3/11/2021, 8:33:23 AM] [Vivint] handleStreamRequest with request: {
  sessionID: 'f06267c1-6939-4b34-95ad-9d33e67f69c6',
  type: 'start',
  video: {
    profile: 2,
    level: 2,
    packetizationMode: 0,
    cvoId: undefined,
    width: 1280,
    height: 720,
    fps: 30,
    pt: 99,
    ssrc: 3419204810,
    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: 2697555358,
    max_bit_rate: 24,
    rtcp_interval: 5,
    comfort_pt: 13,
    comfortNoiseEnabled: false
  }
}
[3/11/2021, 8:33:23 AM] [Vivint] Start streaming video for camera 'Doorbell'
[3/11/2021, 8:33:23 AM] [Vivint] C:\Users\Administrator\AppData\Roaming\npm\node_modules\@balansse\homebridge-vivint\node_modules\ffmpeg-for-homebridge\ffmpeg.exe -probesize 10000 -analyzeduration 0 -fflags +nobuffer -flags +low_delay -use_wallclock_as_timestamps 1 -guess_layout_max 0 -i rtsp://user:gMj8WjVjxEzaqerIvf74JUv@192.168.1.100:8554/Video-64 -an -sn -dn -codec:v copy -pix_fmt yuvj420p -color_range mpeg -f rawvideo -use_wallclock_as_timestamps 1 -fflags +genpts -r 15 -bufsize 300k -payload_type 99 -ssrc 16430270 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params LjV4QsF2Y7JnekzPBJ4VFym0M8CZQhPgUzXsETGZ srtp://192.168.1.5:61193?rtcpport=61193&localrtcpport=54558&pkt_size=1316 -vn -sn -dn -codec:a libfdk_aac -profile:a aac_eld -flags +global_header -fflags +genpts -f null -ar 16k -b:a 24k -ac 1 -use_wallclock_as_timestamps 1 -bufsize 24k -payload_type 110 -ssrc 7173323 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 8kMeVcDMu6n4/mIxXf6cw+b1f7o9ox3ACggLOxTb srtp://192.168.1.5:63908?rtcpport=63908&localrtcpport=54559&pkt_size=188
[3/11/2021, 8:33:23 AM] [Vivint] FFMPEG received first frame
[3/11/2021, 8:33:23 AM] [Vivint] ffmpeg version N-96777-gebee808595-ffmpeg-windows-build-helpers Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8.3.0 (GCC)
  configuration: --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32 --cross-prefix=/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-liblensfun --enable-libvmaf --enable-libsrt --enable-demuxer=dash --enable-libxml2 --enable-opengl --enable-libdav1d --enable-libsvthevc --enable-libaom --enable-libvpx --enable-nvenc --enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxavs --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac

[3/11/2021, 8:33:23 AM] [Vivint]   libavutil      56. 41.100 / 56. 41.100
  libavcodec     58. 70.100 / 58. 70.100
  libavformat    58. 38.101 / 58. 38.101
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 76.100 /  7. 76.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100

[3/11/2021, 8:33:34 AM] [Vivint] [rtsp @ 00000256e07c8d40] UDP timeout, retrying with TCP

[3/11/2021, 8:33:35 AM] [Vivint] [rtsp @ 00000256e07c8d40] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 00000256e07c8d40] decoding for stream 0 failed

[3/11/2021, 8:33:35 AM] [Vivint] Input #0, rtsp, from 'rtsp://user:gMj8WjVjxEzaqerIvf74JUv@192.168.1.100:8554/Video-64':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
  Duration: N/A, start: 1615473214.591625, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuvj420p(pc, bt470bg/bt470bg/smpte170m, progressive), 800x448, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

[3/11/2021, 8:33:35 AM] [Vivint]     Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s

[3/11/2021, 8:33:35 AM] [Vivint] Output #0, rtp, to 'srtp://192.168.1.5:61193?rtcpport=61193&localrtcpport=54558&pkt_size=1316':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
    encoder         : Lavf58.38.101
    Stream #0:0: Video: h264 (High), yuvj420p(tv, bt470bg/bt470bg/smpte170m, progressive), 800x448, q=2-31, 29.97 fps,
[3/11/2021, 8:33:35 AM] [Vivint]  29.97 tbr, 90k tbn, 15 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #1:0 (pcm_mulaw (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help

[3/11/2021, 8:33:35 AM] [Vivint] Output #1, rtp, to 'srtp://192.168.1.5:63908?rtcpport=63908&localrtcpport=54559&pkt_size=188':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
    encoder         : Lavf58.38.101

[3/11/2021, 8:33:35 AM] [Vivint]     Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s
    Metadata:
      encoder         : Lavc58.70.100 libfdk_aac

[3/11/2021, 8:33:35 AM] [Vivint] [libfdk_aac @ 00000256e0d040c0] Queue input is backward in time

[3/11/2021, 8:33:35 AM] [Vivint] frame=    1 fps=0.0 q=-1.0 size=      13kB time=00:00:01.23 bitrate=  89.5kbits/s speed= 2.2x    
[3/11/2021, 8:33:36 AM] [Vivint] frame=    4 fps=3.7 q=-1.0 size=      14kB time=00:00:01.71 bitrate=  65.7kbits/s speed=1.57x    
[3/11/2021, 8:33:36 AM] [Vivint] frame=    7 fps=4.0 q=-1.0 size=      14kB time=00:00:02.36 bitrate=  48.6kbits/s speed=1.36x    
[3/11/2021, 8:33:37 AM] [Vivint] frame=   10 fps=4.3 q=-1.0 size=      14kB time=00:00:03.00 bitrate=  38.7kbits/s speed= 1.3x    
[3/11/2021, 8:33:37 AM] [Vivint] [libfdk_aac @ 00000256e0d040c0] Queue input is backward in time

[3/11/2021, 8:33:38 AM] [Vivint] frame=   13 fps=4.6 q=-1.0 size=      14kB time=00:00:03.46 bitrate=  33.9kbits/s speed=1.22x    
[3/11/2021, 8:33:38 AM] [Vivint] frame=   15 fps=4.5 q=-1.0 size=      14kB time=00:00:03.98 bitrate=  29.8kbits/s speed=1.19x    
[3/11/2021, 8:33:38 AM] [Vivint] [libfdk_aac @ 00000256e0d040c0] Queue input is backward in time

[3/11/2021, 8:33:38 AM] [Vivint] [rtp @ 00000256e0d02ac0] Non-monotonous DTS in output stream 1:0; previous: 67028, current: 66980; changing to 67028. This may result in incorrect timestamps in the output file.

[3/11/2021, 8:33:39 AM] [Vivint] frame=   18 fps=4.6 q=-1.0 size=      15kB time=00:00:04.64 bitrate=  25.8kbits/s speed=1.18x    
[3/11/2021, 8:33:39 AM] [Vivint] [libfdk_aac @ 00000256e0d040c0] Queue input is backward in time

[3/11/2021, 8:33:39 AM] [Vivint]     Last message repeated 1 times
frame=   21 fps=4.7 q=-1.0 size=      28kB time=00:00:05.07 bitrate=  45.5kbits/s speed=1.14x    
[3/11/2021, 8:33:40 AM] [Vivint] [libfdk_aac @ 00000256e0d040c0] Queue input is backward in time

[3/11/2021, 8:33:40 AM] [Vivint] frame=   23 fps=4.6 q=-1.0 size=      28kB time=00:00:05.71 bitrate=  40.6kbits/s speed=1.15x    
[3/11/2021, 8:33:40 AM] [Vivint] frame=   26 fps=4.7 q=-1.0 size=      28kB time=00:00:06.20 bitrate=  37.6kbits/s speed=1.12x    
[3/11/2021, 8:33:40 AM] [Vivint] handleStreamRequest with request: { sessionID: 'f06267c1-6939-4b34-95ad-9d33e67f69c6', type: 'stop' }
[3/11/2021, 8:33:40 AM] [Vivint] Camera stopped streaming
[3/11/2021, 8:33:49 AM] [Vivint] Handling incoming device snapshot for timestamp 2021-03-11T14:30:25.476000
[3/11/2021, 8:33:50 AM] [Vivint] Handling camera snapshot for 'Doorbell' at 1280x720
[3/11/2021, 8:33:50 AM] [Vivint] SNAPSHOT: ffmpeg version N-96777-gebee808595-ffmpeg-windows-build-helpers Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8.3.0 (GCC)
  configuration: --pkg-config=pkg-config --pkg-config-flags=--static --extra-version=ffmpeg-windows-build-helpers --enable-version3 --disable-debug --disable-w32threads --arch=x86_64 --target-os=mingw32 --cross-prefix=/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --enable-libcaca --enable-gray --enable-libtesseract --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libbs2b --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libwebp --enable-libzimg --enable-libzvbi --enable-libmysofa --enable-libopenjpeg --enable-libopenh264 --enable-liblensfun --enable-libvmaf --enable-libsrt --enable-demuxer=dash --enable-libxml2 --enable-opengl --enable-libdav1d --enable-libsvthevc --enable-libaom --enable-libvpx --enable-nvenc --enable-nvdec --extra-libs=-lharfbuzz --extra-libs=-lm --extra-libs=-lpthread --extra-cflags=-DLIBTWOLAME_STATIC --extra-cflags=-DMODPLUG_STATIC --extra-cflags=-DCACA_STATIC --enable-amf --enable-libmfx --enable-gpl --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxavs --enable-avresample --extra-cflags='-mtune=generic' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-decklink --enable-libfdk-aac

[3/11/2021, 8:33:50 AM] [Vivint] SNAPSHOT:   libavutil      56. 41.100 / 56. 41.100
  libavcodec     58. 70.100 / 58. 70.100
  libavformat    58. 38.101 / 58. 38.101
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 76.100 /  7. 76.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100

[3/11/2021, 8:33:54 AM] [Vivint] Parsed PubNub message: {
    "Id": "198570499173018|1",
    "Data": {
        "Devices": [
            {
                "Id": 64,
                "ActualType": "vivotek_db8332s1_camera_device",
                "WirelessSignalStrength": 86
            }
        ],
        "PlatformContext": {
            "MessagePayload_ContextCarrier": {
                "previous_handler": "Subscriber Update Handler",
                "tracing_context": {
                    "uber-trace-id": "1fd856a490f1118d:1fd856a490f1118d:0000000000000000:0"
                }
            },
            "MessageId": "604a2a52d04e150001069919",
            "Timestamp": "2021-03-11T14:33:54.545"
        }
    },
    "Operation": "u",
    "PanelId": 198570499173018,
    "PartitionId": 1,
    "Type": "account_partition"
}
[3/11/2021, 8:33:54 AM] [Vivint] Patching data:  {
  NetworkHealth: {
    NetworkHealth: 3,
    MessagePayload_NetworkDiagnostics_LastCameraIperf: { MessagePayload_NetworkDiagnostics_Address: 0.53 },
    Devices: '{"iperf: should be 0.8 Mb/s or above": ["Lower camera bitrate and rerun test", "If test fails, move camera closer to the panel and rerun test", "If test fails, install PLC on the panel and router and rerun test"]}',
    MessagePayload_NetworkDiagnostics_TX_MCS: 3,
    MessagePayload_NetworkDiagnostics_RX_MCS: 8,
    Timestamp: '2020-08-30T15:42:35.506000',
    MessagePayload_NetworkDiagnostics_RSSI: -48,
    condition: { iperf: 'should be 0.8 Mb/s or above' }
  },
  CameraExternalTLSURL: [ 'rtsp://v.vivintsky.com:443/10P200P224P136/8554/Video-64' ],
  Password: 'x4NaDoawdtxFC6iC',
  CaptureClipOnRingEvent: true,
  AspectRatioTuple: [ 16, 9 ],
  CameraDirectAvailable: false,
  CameraDoorbellChime: 2,
  CameraExternalTLSURLStandard: [ 'rtsp://v.vivintsky.com:443/10P200P224P136/8554/Video-64_SD' ],
  CameraExternalAudioHeaders: { 'X-Destination-Host': '10.200.224.136:8555' },
  Bitrate: 70,
  NetworkHealthHistory: [
    {
      NetworkHealth: 3,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Devices: '{"iperf: should be 0.8 Mb/s or above": ["Lower camera bitrate and rerun test", "If test fails, move camera closer to the panel and rerun test", "If test fails, install PLC on the panel and router and rerun test"]}',
      MessagePayload_NetworkDiagnostics_TX_MCS: 3,
      MessagePayload_NetworkDiagnostics_RX_MCS: 8,
      Bitrate: 200,
      Timestamp: '2020-08-30T15:42:35.506000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -48,
      AverageBitrate: '242'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      MessagePayload_NetworkDiagnostics_TX_MCS: 12,
      MessagePayload_NetworkDiagnostics_RX_MCS: 15,
      Bitrate: 200,
      Timestamp: '2020-08-30T07:42:42.902000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -48,
      AverageBitrate: '43'
    },
    {
      NetworkHealth: 3,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Devices: '{"iperf: Failed to test bandwidth": ["Lower camera bitrate and rerun test", "If test fails, move camera closer to the panel and rerun test", "If test fails, install PLC on the panel and router and rerun test"]}',
      Bitrate: 200,
      Timestamp: '2020-08-30T03:41:40.891000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: '-59',
      AverageBitrate: '52'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      MessagePayload_NetworkDiagnostics_TX_MCS: 1,
      MessagePayload_NetworkDiagnostics_RX_MCS: 12,
      Bitrate: 200,
      Timestamp: '2020-08-29T23:46:51.798000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -46,
      AverageBitrate: '106'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      MessagePayload_NetworkDiagnostics_TX_MCS: 11,
      MessagePayload_NetworkDiagnostics_RX_MCS: 12,
      Bitrate: 200,
      Timestamp: '2020-08-29T23:40:36.436000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -48,
      AverageBitrate: '236'
    }
  ],
  CameraDirectStreamPathStandard: 'live2.sdp',
  CaptureClipOnVisitorEvent: true,
  CanBeRenamed: true,
  CameraExtendSirenEnabled: false,
  CameraDirectStreamPath: 'live.sdp',
  CameraPackageChime: 8,
  CameraZoomLock: false,
  PanelContext: { Timestamp: '2021-03-11T14:30:25.478000' },
  StreamAvailabilityState: 100,
  CameraLocalAudioPort: 8557,
  SoftwareVersion: '0200m',
  CameraAudioCodec: 1,
  MotionDetectionWindows: [
    {
      MessagePayload_Index: 0,
      objsize: 5,
      sensitivity: -60,
      max_objsize: 80,
      height: 79,
      width: 79,
      y: 160,
      x: 127
    }
  ],
  CameraLEDEnabled: true,
  ManagedBySky: false,
  Uuid: 'd05558f9-75d1-ead1-b209-1b9af4d7a27d',
  CameraQuietMode: false,
  CameraStreamPathSD: 'Video-64_SD',
  CameraOriginURLStandard: 'rtsp://10.200.224.136:8554/Video-64_SD',
  NetworkAvailabilityState: 100,
  Timestamp: '2021-03-11T14:30:25.479000',
  PlatformContext: {
    MessageId: '604a2981167e5900014e6623',
    Timestamp: '2021-03-11T14:30:25.478000'
  },
  FromSync: 1,
  VideoQuality: 3,
  Username: 'root',
  CameraFlip: false,
  PreviewChimeCounter: 0,
  Hidden: false,
  ConnectedSSID: 'tla8f3be',
  PanelId: 198570499173018,
  NightVisionEnabled: true,
  CameraConnectionType: 'wireless',
  CameraExternalURLStandard: [ 'rtsp://livevid.vivint.com:443/10P200P224P136/8554/Video-64_SD' ],
  CameraPrivacy: false,
  CameraStreamPath: 'Video-64',
  CommandControlAvailabilityState: 100,
  ActualType: 'vivotek_db8332s1_camera_device',
  CameraExternalAudioURL: 'https://audio.vivintsky.com/Audio-64',
  CameraStreamPort: 8554,
  CameraExternalURL: [ 'rtsp://livevid.vivint.com:443/10P200P224P136/8554/Video-64' ],
  CameraAudioPort: 8555,
  CapabilityCategory: [
    { Capability: [Array], Type: 2 },
    { Capability: [Array], Type: 1 },
    { Capability: [Array], Type: 8 }
  ],
  FrameRate: 10,
  SetDefaultsCounter: 0,
  RebootCameraCounter: 2,
  NotificationAvailabilityState: 100,
  CameraAudioPath: 'Audio-64',
  CameraExtendChimeEnabled: false,
  CameraMac: '0002D1835D86',
  Features: {
    Features_VIDEO_THUMBNAILS: true,
    Features_RESTORE_DEFAULTS: true,
    Features_REBOOT: true,
    Features_SELECTABLE_NIGHTVISION: true
  },
  CameraInternalAudioURL: 'https://192.168.1.100:8557/Audio-64',
  Online: true,
  CameraOriginURL: 'rtsp://10.200.224.136:8554/Video-64',
  HighDefinitionResolution: '800x450',
  ConnectedTo: 'Sky Control',
  CameraIPAddress: '172.16.10.154',
  CameraInternalURLStandard: [ 'rtsp://192.168.1.100:8554/Video-64_SD' ],
  CameraIPPort: '554',
  WirelessSignalLevel: '-56',
  Name: 'Doorbell',
  CameraThumbnailDate: '2021-03-11T00:48:20.000000',
  CameraIRLEDEnabled: true,
  WirelessSignalStrength: 84,
  CameraRecordAudio: false,
  StandardDefinitionResolution: '640x360',
  Type: 'camera_device',
  CameraInternalURL: [ 'rtsp://192.168.1.100:8554/Video-64' ],
  CameraAudioSampleRate: 8000,
  CaptureClipOnMotion: false,
  Id: 64,
  ExcludeRules: 1,
  CameraVisitorChime: 0,
  CameraThumbnailRequested: '2021-03-11T00:48:20.256000',
  VisitorDetected: null,
  PersonInView: null,
  DingDong: null
}
[3/11/2021, 8:33:54 AM] [Vivint] Applying patch:  {
  Id: 64,
  ActualType: 'vivotek_db8332s1_camera_device',
  WirelessSignalStrength: 86
}
[3/11/2021, 8:33:54 AM] [Vivint] Patched data:  {
  NetworkHealth: {
    NetworkHealth: 3,
    MessagePayload_NetworkDiagnostics_LastCameraIperf: { MessagePayload_NetworkDiagnostics_Address: 0.53 },
    Devices: '{"iperf: should be 0.8 Mb/s or above": ["Lower camera bitrate and rerun test", "If test fails, move camera closer to the panel and rerun test", "If test fails, install PLC on the panel and router and rerun test"]}',
    MessagePayload_NetworkDiagnostics_TX_MCS: 3,
    MessagePayload_NetworkDiagnostics_RX_MCS: 8,
    Timestamp: '2020-08-30T15:42:35.506000',
    MessagePayload_NetworkDiagnostics_RSSI: -48,
    condition: { iperf: 'should be 0.8 Mb/s or above' }
  },
  CameraExternalTLSURL: [ 'rtsp://v.vivintsky.com:443/10P200P224P136/8554/Video-64' ],
  Password: 'x4NaDoawdtxFC6iC',
  CaptureClipOnRingEvent: true,
  AspectRatioTuple: [ 16, 9 ],
  CameraDirectAvailable: false,
  CameraDoorbellChime: 2,
  CameraExternalTLSURLStandard: [ 'rtsp://v.vivintsky.com:443/10P200P224P136/8554/Video-64_SD' ],
  CameraExternalAudioHeaders: { 'X-Destination-Host': '10.200.224.136:8555' },
  Bitrate: 70,
  NetworkHealthHistory: [
    {
      NetworkHealth: 3,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      Devices: '{"iperf: should be 0.8 Mb/s or above": ["Lower camera bitrate and rerun test", "If test fails, move camera closer to the panel and rerun test", "If test fails, install PLC on the panel and router and rerun test"]}',
      MessagePayload_NetworkDiagnostics_TX_MCS: 3,
      MessagePayload_NetworkDiagnostics_RX_MCS: 8,
      Bitrate: 200,
      Timestamp: '2020-08-30T15:42:35.506000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -48,
      AverageBitrate: '242'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      MessagePayload_NetworkDiagnostics_TX_MCS: 12,
      MessagePayload_NetworkDiagnostics_RX_MCS: 15,
      Bitrate: 200,
      Timestamp: '2020-08-30T07:42:42.902000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -48,
      AverageBitrate: '43'
    },
    {
      NetworkHealth: 3,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: {},
      Devices: '{"iperf: Failed to test bandwidth": ["Lower camera bitrate and rerun test", "If test fails, move camera closer to the panel and rerun test", "If test fails, install PLC on the panel and router and rerun test"]}',
      Bitrate: 200,
      Timestamp: '2020-08-30T03:41:40.891000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: '-59',
      AverageBitrate: '52'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      MessagePayload_NetworkDiagnostics_TX_MCS: 1,
      MessagePayload_NetworkDiagnostics_RX_MCS: 12,
      Bitrate: 200,
      Timestamp: '2020-08-29T23:46:51.798000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -46,
      AverageBitrate: '106'
    },
    {
      NetworkHealth: 1,
      MessagePayload_NetworkDiagnostics_LastCameraIperf: [Object],
      MessagePayload_NetworkDiagnostics_TX_MCS: 11,
      MessagePayload_NetworkDiagnostics_RX_MCS: 12,
      Bitrate: 200,
      Timestamp: '2020-08-29T23:40:36.436000',
      Name: 'Doorbell',
      MessagePayload_NetworkDiagnostics_RSSI: -48,
      AverageBitrate: '236'
    }
  ],
  CameraDirectStreamPathStandard: 'live2.sdp',
  CaptureClipOnVisitorEvent: true,
  CanBeRenamed: true,
  CameraExtendSirenEnabled: false,
  CameraDirectStreamPath: 'live.sdp',
  CameraPackageChime: 8,
  CameraZoomLock: false,
  PanelContext: { Timestamp: '2021-03-11T14:30:25.478000' },
  StreamAvailabilityState: 100,
  CameraLocalAudioPort: 8557,
  SoftwareVersion: '0200m',
  CameraAudioCodec: 1,
  MotionDetectionWindows: [
    {
      MessagePayload_Index: 0,
      objsize: 5,
      sensitivity: -60,
      max_objsize: 80,
      height: 79,
      width: 79,
      y: 160,
      x: 127
    }
  ],
  CameraLEDEnabled: true,
  ManagedBySky: false,
  Uuid: 'd05558f9-75d1-ead1-b209-1b9af4d7a27d',
  CameraQuietMode: false,
  CameraStreamPathSD: 'Video-64_SD',
  CameraOriginURLStandard: 'rtsp://10.200.224.136:8554/Video-64_SD',
  NetworkAvailabilityState: 100,
  Timestamp: '2021-03-11T14:30:25.479000',
  PlatformContext: {
    MessageId: '604a2981167e5900014e6623',
    Timestamp: '2021-03-11T14:30:25.478000'
  },
  FromSync: 1,
  VideoQuality: 3,
  Username: 'root',
  CameraFlip: false,
  PreviewChimeCounter: 0,
  Hidden: false,
  ConnectedSSID: 'tla8f3be',
  PanelId: 198570499173018,
  NightVisionEnabled: true,
  CameraConnectionType: 'wireless',
  CameraExternalURLStandard: [ 'rtsp://livevid.vivint.com:443/10P200P224P136/8554/Video-64_SD' ],
  CameraPrivacy: false,
  CameraStreamPath: 'Video-64',
  CommandControlAvailabilityState: 100,
  ActualType: 'vivotek_db8332s1_camera_device',
  CameraExternalAudioURL: 'https://audio.vivintsky.com/Audio-64',
  CameraStreamPort: 8554,
  CameraExternalURL: [ 'rtsp://livevid.vivint.com:443/10P200P224P136/8554/Video-64' ],
  CameraAudioPort: 8555,
  CapabilityCategory: [
    { Capability: [Array], Type: 2 },
    { Capability: [Array], Type: 1 },
    { Capability: [Array], Type: 8 }
  ],
  FrameRate: 10,
  SetDefaultsCounter: 0,
  RebootCameraCounter: 2,
  NotificationAvailabilityState: 100,
  CameraAudioPath: 'Audio-64',
  CameraExtendChimeEnabled: false,
  CameraMac: '0002D1835D86',
  Features: {
    Features_VIDEO_THUMBNAILS: true,
    Features_RESTORE_DEFAULTS: true,
    Features_REBOOT: true,
    Features_SELECTABLE_NIGHTVISION: true
  },
  CameraInternalAudioURL: 'https://192.168.1.100:8557/Audio-64',
  Online: true,
  CameraOriginURL: 'rtsp://10.200.224.136:8554/Video-64',
  HighDefinitionResolution: '800x450',
  ConnectedTo: 'Sky Control',
  CameraIPAddress: '172.16.10.154',
  CameraInternalURLStandard: [ 'rtsp://192.168.1.100:8554/Video-64_SD' ],
  CameraIPPort: '554',
  WirelessSignalLevel: '-56',
  Name: 'Doorbell',
  CameraThumbnailDate: '2021-03-11T00:48:20.000000',
  CameraIRLEDEnabled: true,
  WirelessSignalStrength: 86,
  CameraRecordAudio: false,
  StandardDefinitionResolution: '640x360',
  Type: 'camera_device',
  CameraInternalURL: [ 'rtsp://192.168.1.100:8554/Video-64' ],
  CameraAudioSampleRate: 8000,
  CaptureClipOnMotion: false,
  Id: 64,
  ExcludeRules: 1,
  CameraVisitorChime: 0,
  CameraThumbnailRequested: '2021-03-11T00:48:20.256000',
  VisitorDetected: null,
  PersonInView: null,
  DingDong: null
}
[Doorbell] The image snapshot handler for the given accessory is slow to respond! See https://git.io/JtMGR for more info.
[3/11/2021, 8:34:01 AM] [Vivint] SNAPSHOT: [rtsp @ 0000016042586c00] UDP timeout, retrying with TCP

[3/11/2021, 8:34:02 AM] [Vivint] SNAPSHOT: [rtsp @ 0000016042586c00] Stream #0: not enough frames to estimate rate; consider increasing probesize
[rtsp @ 0000016042586c00] decoding for stream 0 failed

[3/11/2021, 8:34:02 AM] [Vivint] SNAPSHOT: Input #0, rtsp, from 'rtsp://user:gMj8WjVjxEzaqerIvf74JUv@192.168.1.100:8554/Video-64':
  Metadata:
    title           : 
[3/11/2021, 8:34:02 AM] [Vivint] SNAPSHOT: LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
  Duration: N/A, start: 1615473241.968875, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuvj420p(pc, bt470bg/bt470bg/smpte170m, progressive), 800x448, 29.97 fps, 29.97 tbr, 90k tbn, 
[3/11/2021, 8:34:02 AM] [Vivint] SNAPSHOT: 59.94 tbc
    Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s

[3/11/2021, 8:34:02 AM] [Vivint] SNAPSHOT: Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help

[3/11/2021, 8:34:03 AM] [Vivint] SNAPSHOT: Output #0, image2, to 'pipe:':
  Metadata:
    title           : LIVE555 Streaming Media v2016.11.28
    comment         : LIVE555 Streaming Media v2016.11.28
    encoder         : Lavf58.38.101

[3/11/2021, 8:34:03 AM] [Vivint] SNAPSHOT:     Stream #0:0: Video: mjpeg, yuvj420p(pc), 800x448, q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc58.70.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A

frame=    1 fps=0.0 q=4.6 Lsize=N/A time=00:00:00.03 bitrate=N/A dup=1 drop=1 speed=0.0521x    bitrate=N/A dup=1 drop=0 speed=0.0647x    
video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Mr-Winston-Wolf commented 3 years ago

@balansse Thank you. I have seen a major improvement in my camera out back that is setup via POE. This cheap piece of garbage seems to be working well.

The front camera is closer and much more powerful w/ audio, so I am not sure if that just becomes too heavy. I can get the rtsp stream to work perfectly in every other platform by homebridge/homekit. Would be interested in a direct stream if this become available.

I did this morning notice that the Vivint camera was doing snapshots / streaming for an extended period of time where I was not viewing hte camera. It pushed the cpu load high until I had to reboot the server. It was almost as if it did not exist when I disconnected from the stream.

I am going to try to see what is going on.

Network wise I have gigbit down and a 10gig internal cat6e network. Both cameras are on POE and the signal reports are strong. Is there additional jumps this rtsp stream makes outside of sending into HK vs doing a vlc/streamy?

balansse commented 3 years ago

@jpop77 please check the latest update, I added the useExternalVideoStreams option to switch all video streams to Vivint servers

Mr-Winston-Wolf commented 3 years ago

Boom, that did the trick. So removing the extra hop alone made the data more reliable? Would make sense in that this camera does send a decent amount of data due to its specs. Thank you for taking this on!