Cameras stopped working after server migration
Posted: Wed Nov 28, 2018 11:21 pm
I migrated my server over to a new Mac Mini, which meant upgrading to Mojave (10.14.1) and I believe SecuritySpy updated around the same time to the latest version (4.2.9.) My cameras stopped working in HomeKit - I get the still images just fine, but I don't get video - it times out trying to connect. I tried deleting the cameras and recreating them, but it didn't help.
I don't know what triggered it - the new Mac Mini, Mojave, or SecuritySpy. Has anyone else updated to either macOS 10.14.1 and/or Security Spy 4.2.9 and is seeing the same problem?
Here is the homebridge log with Debug Homebridge and Indigo Script turned on for maximum output - I would love to know if a working one looks different:
And this is the ffmpeg command that I see running with a ps (and the security spy URL is correct - I can open that just fine in a browser or with curl):
Thanks,
-Mike
I don't know what triggered it - the new Mac Mini, Mojave, or SecuritySpy. Has anyone else updated to either macOS 10.14.1 and/or Security Spy 4.2.9 and is seeing the same problem?
Here is the homebridge log with Debug Homebridge and Indigo Script turned on for maximum output - I would love to know if a working one looks different:
- Code: Select all
Thu, 29 Nov 2018 05:12:18 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP request: /resource
Thu, 29 Nov 2018 05:12:18 GMT HAPServer [C5:86:BF:98:63:73] HAP Request: POST /resource
[2018-11-28 21:12:18] [Camera-ffmpeg] Snapshot from Rear Door Camera at 480x270
Thu, 29 Nov 2018 05:12:18 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
Thu, 29 Nov 2018 05:12:18 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP request: /characteristics?id=1.22,1.15
Thu, 29 Nov 2018 05:12:20 GMT HAPServer [C5:86:BF:98:63:73] HAP Request: GET /characteristics?id=1.22,1.15
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Getting value for Characteristic "Streaming Status"
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Got Characteristic "Streaming Status" value: AQEA
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Getting value for Characteristic "Streaming Status"
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Got Characteristic "Streaming Status" value: AQEA
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP request: /characteristics
Thu, 29 Nov 2018 05:12:20 GMT HAPServer [C5:86:BF:98:63:73] HAP Request: PUT /characteristics
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Processing characteristic set: [{"aid":1,"iid":23,"value":"ARBoJiNhFN1BJIlzZOl8aWosAxoBAQACDTE5Mi4xNjguNDIuMTgDAofEBAKj8wQlAhDAnlUW6yKIdfkpnrLMFnhjAw6O8XEox60gpTmrkgyDUgEBAAUlAhDBq44GaiTHzBZEShhvEbg5Aw4+3Wp8Xjd+w93YkPd1HQEBAA=="}]
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Setting Characteristic "Setup Endpoints" to value ARBoJiNhFN1BJIlzZOl8aWosAxoBAQACDTE5Mi4xNjguNDIuMTgDAofEBAKj8wQlAhDAnlUW6yKIdfkpnrLMFnhjAw6O8XEox60gpTmrkgyDUgEBAAUlAhDBq44GaiTHzBZEShhvEbg5Aw4+3Wp8Xjd+w93YkPd1HQEBAA==
Thu, 29 Nov 2018 05:12:20 GMT StreamController
Session: <Buffer 68 26 23 61 14 dd 41 24 89 73 64 e9 7c 69 6a 2c>
ControllerAddress: 192.168.42.18
VideoPort: 50311
AudioPort: 62371
Video Crypto: 0
Video Master Key: <Buffer c0 9e 55 16 eb 22 88 75 f9 29 9e b2 cc 16 78 63>
Video Master Salt: <Buffer 8e f1 71 28 c7 ad 20 a5 39 ab 92 0c 83 52>
Audio Crypto: 0
Audio Master Key: <Buffer c1 ab 8e 06 6a 24 c7 cc 16 44 4a 18 6f 11 b8 39>
Audio Master Salt: <Buffer 3e dd 6a 7c 5e 37 7e c3 dd d8 90 f7 75 1d>
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP request: /characteristics?id=1.23
Thu, 29 Nov 2018 05:12:20 GMT HAPServer [C5:86:BF:98:63:73] HAP Request: GET /characteristics?id=1.23
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Getting value for Characteristic "Setup Endpoints"
Thu, 29 Nov 2018 05:12:20 GMT StreamController Setup Read
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Got Characteristic "Setup Endpoints" value: ARBoJiNhFN1BJIlzZOl8aWosAgEAAxoBAQACDTE5Mi4xNjguNDIuMjMDAofEBAKj8wQlAQEAAhDAnlUW6yKIdfkpnrLMFnhjAw6O8XEox60gpTmrkgyDUgUlAQEAAhDBq44GaiTHzBZEShhvEbg5Aw4+3Wp8Xjd+w93YkPd1HQYEpF8XAAcEsuhQAA==
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP request: /characteristics
Thu, 29 Nov 2018 05:12:20 GMT HAPServer [C5:86:BF:98:63:73] HAP Request: PUT /characteristics
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Processing characteristic set: [{"aid":1,"iid":21,"value":"ARUCAQEBEGgmI2EU3UEkiXNk6XxpaiwCNAEBAAIJAQECAgECAwEAAwsBAgAFAgLQAgMBHgQXAQFjAgQxiwqUAwIrAQQEAAAAPwUCYgUDLAEBAgIMAQEBAgEAAwEBBAEeAxYBAW4CBBRmBfQDAhgABAQAAKBABgENBAEA"}]
Thu, 29 Nov 2018 05:12:20 GMT Accessory [Rear Door Camera] Setting Characteristic "Selected RTP Stream Configuration" to value ARUCAQEBEGgmI2EU3UEkiXNk6XxpaiwCNAEBAAIJAQECAgECAwEAAwsBAgAFAgLQAgMBHgQXAQFjAgQxiwqUAwIrAQQEAAAAPwUCYgUDLAEBAgIMAQEBAgEAAwEBBAEeAxYBAW4CBBRmBfQDAhgABAQAAKBABgENBAEA
Thu, 29 Nov 2018 05:12:20 GMT StreamController Write SelectedStreamConfiguration
[2018-11-28 21:12:20] [Camera-ffmpeg] Start streaming video from Rear Door Camera with 1280x720@299kBit
Thu, 29 Nov 2018 05:12:20 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
Thu, 29 Nov 2018 05:12:24 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP request: /characteristics
Thu, 29 Nov 2018 05:12:24 GMT HAPServer [C5:86:BF:98:63:73] HAP Request: PUT /characteristics
Thu, 29 Nov 2018 05:12:24 GMT Accessory [Rear Door Camera] Processing characteristic set: [{"aid":1,"iid":21,"value":"ARUCAQQBEGgmI2EU3UEkiXNk6XxpaiwCGQMLAQKAAgICaAEDAR4ECgMChAAEBAAAAAA="}]
Thu, 29 Nov 2018 05:12:24 GMT Accessory [Rear Door Camera] Setting Characteristic "Selected RTP Stream Configuration" to value ARUCAQQBEGgmI2EU3UEkiXNk6XxpaiwCGQMLAQKAAgICaAEDAR4ECgMChAAEBAAAAAA=
Thu, 29 Nov 2018 05:12:24 GMT StreamController Write SelectedStreamConfiguration
Thu, 29 Nov 2018 05:12:24 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
Thu, 29 Nov 2018 05:12:29 GMT EventedHTTPServer [::ffff:127.0.0.1] New connection from client
Thu, 29 Nov 2018 05:12:29 GMT EventedHTTPServer [::ffff:127.0.0.1] HTTP server listening on port 59697
Thu, 29 Nov 2018 05:12:29 GMT EventedHTTPServer [::ffff:127.0.0.1] Client connection closed
Thu, 29 Nov 2018 05:12:29 GMT EventedHTTPServer [::ffff:127.0.0.1] HTTP connection was closed
Thu, 29 Nov 2018 05:12:29 GMT EventedHTTPServer [::ffff:127.0.0.1] HTTP server was closed
Thu, 29 Nov 2018 05:12:50 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP request: /characteristics
Thu, 29 Nov 2018 05:12:50 GMT HAPServer [C5:86:BF:98:63:73] HAP Request: PUT /characteristics
Thu, 29 Nov 2018 05:12:50 GMT Accessory [Rear Door Camera] Processing characteristic set: [{"aid":1,"iid":21,"value":"ARUCAQABEGgmI2EU3UEkiXNk6Xxpaiw="}]
Thu, 29 Nov 2018 05:12:50 GMT Accessory [Rear Door Camera] Setting Characteristic "Selected RTP Stream Configuration" to value ARUCAQABEGgmI2EU3UEkiXNk6Xxpaiw=
Thu, 29 Nov 2018 05:12:50 GMT StreamController Write SelectedStreamConfiguration
Thu, 29 Nov 2018 05:12:50 GMT EventedHTTPServer [::ffff:192.168.42.18] HTTP Response is finished
[2018-11-28 21:12:50] [Camera-ffmpeg] Stopped streaming
And this is the ffmpeg command that I see running with a ps (and the security spy URL is correct - I can open that just fine in a browser or with curl):
- Code: Select all
ffmpeg -re -i "http://[security spy credentials and URL redacted]/++video?cameraNum=3&width=2560&height=1440" -map 0:0 -vcodec libx264 -pix_fmt yuv420p -r 10 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 299k -bufsize 299k -maxrate 299k -payload_type 99 -ssrc 1531812 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params wJ5VFusiiHX5KZ6yzBZ4Y47xcSjHrSClOauSDINS "srtp://192.168.42.18:50311?rtcpport=50311&localrtcpport=50311&pkt_size=1316"
Thanks,
-Mike