samemory / homebridge-eufy-security

Work in progress
Apache License 2.0
97 stars 14 forks source link

[Bug]: Camera Stream doesn't work with Eufy SoloCam E40 #289

Closed gintonic4all closed 2 years ago

gintonic4all commented 2 years ago

What happened?

Camera stream in the Apple Home app does not start. In homebridge the stream exits with an error code. And the motion sensor doesn't seem to work, too.

Homebridge | v1.3.8 Plugin Version | v1.0.6 Node.js Version | v16.13.0 Npm Version | v8.1.0

Eufy SoloCam E40

Device Type

Station (Supported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Raspbian

Relevant log output

[11/29/2021, 4:13:10 PM] [EufySecurity-1.0.6] DEBUG: Garten GET DeviceMotionDetection: undefined
[11/29/2021, 4:13:10 PM] [EufySecurity-1.0.6] ERROR: Garten handleMotionOnGet Wrong return value

[11/29/2021, 4:14:12 PM] [EufySecurity-1.0.6] DEBUG: Video stream requested: 1280 x 720, 30 fps, 299 kbps Garten false
[11/29/2021, 4:14:12 PM] [EufySecurity-1.0.6] INFO:  Starting video stream: 1280 x 720, 30 fps, 299 kbps (AAC-eld) Garten
[11/29/2021, 4:14:12 PM] [EufySecurity-1.0.6] DEBUG: Stream command: /usr/local/lib/node_modules/homebridge-eufy-security/node_modules/ffmpeg-for-homebridge/ffmpeg -i  -an -sn -dn -codec:v libx264 -pix_fmt yuv420p -color_range mpeg -r 30 -f rawvideo -preset ultrafast -tune zerolatency -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2 -b:v 299k -payload_type 99 -ssrc 16502132 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params f8JYAibfP9eytDnnZWOQJF+w29kNRcTgfRLY01yk srtp://192.168.178.112:58808?rtcpport=58808&pkt_size=1316 -vn -sn -dn -codec:a aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 12840266 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params neBVUn33DS5J769wO1CgVbsEL+ZQMdafCy+5vMMc srtp://192.168.178.112:54089?rtcpport=54089&pkt_size=188 -loglevel level -progress pipe:1 Garten false
[11/29/2021, 4:14:12 PM] [EufySecurity-1.0.6] ERROR: FFmpeg exited with code: 1 and signal: null (Error) Garten
[11/29/2021, 4:14:12 PM] [EufySecurity-1.0.6] INFO:  Stopped video stream. Garten
github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

fullphat commented 2 years ago

Something seems to have gone wrong with the plugin as I'm sure there should be a URI after the "-i" option that's sent to ffmpeg.

gintonic4all commented 2 years ago

Something seems to have gone wrong with the plugin as I'm sure there should be a URI after the "-i" option that's sent to ffmpeg.

Already tried reinstalling, the eufy security plugin as well as ffmpeg for homebridge... but that doesn't seem to be a remedy against this. ☹️

schliemann commented 2 years ago

@gintonic4all Please retry with new version.

gintonic4all commented 2 years ago

jupp... tried the new version. seems to be fine now. thanks :-)

lenoxys commented 2 years ago

thanks for your feedback!