samemory / homebridge-eufy-security

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

[Bug]: ERROR: FFmpeg process creation failed: spawn ffmpeg ENOENT 'camera name' #301

Closed akrtek closed 2 years ago

akrtek commented 2 years ago

What happened?

ERROR: FFmpeg process creation failed: spawn ffmpeg ENOENT

I get this error on all of my cameras. I am currently running homebridge on an M1 Mac Mini using MacOS Monterey.

I have tried to install ffmpeg by installing homebrew (brew install ffmpeg) as well as from ffmpeg.org. Perhaps I am not installing it to the correct directory? I have the Eufy Security Plugin debug turned on and it is running an ffmpeg -1 command to https://zhixin-security-pr.s3.us-west-2.... right before throwing the error. I didnt copy the whole line as it looks like it is trying to access my eufy feed.

Device Type

Indoor Camera (Supported)

Plugin Version

v1.0.x (Supported)

HomeBridge Version

v1.3.x (Supported)

NodeJS Version

v16 (Supported)

Operating System

Mac OS X

Relevant log output

[12/17/2021, 9:34:44 PM] [EufySecurity-1.0.6] DEBUG: Fetching snapshot took 0.006 seconds. Carport Dos false
[12/17/2021, 9:34:48 PM] [EufySecurity-1.0.6] DEBUG: Video stream requested: 1280 x 720, 30 fps, 299 kbps Front false
[12/17/2021, 9:34:48 PM] [EufySecurity-1.0.6] INFO:  Starting video stream: 1280 x 720, 30 fps, 299 kbps (AAC-eld) Front
[12/17/2021, 9:34:48 PM] [EufySecurity-1.0.6] DEBUG: Stream command: 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 12399697 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params aYeXzJzZJ2rEbZIT9QDhpmXH3eqSYpcmoUztbCNJ srtp://192.168.50.165:60345?rtcpport=60345&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 6649202 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params Xvz4Xp7IamZMxRUP9xxzgz4lEqmyw/0QfPaKYDJb srtp://192.168.50.165:58492?rtcpport=58492&pkt_size=188 -loglevel level -progress pipe:1 Front false
github-actions[bot] commented 2 years ago

Did you check this Common Issues pages ?

schliemann commented 2 years ago

Temp fix described here:

https://github.com/samemory/homebridge-eufy-security/issues/295

Permanent fix when bropat releases new client.

akrtek commented 2 years ago

Thans @schliemann

I removed "User-Agent": "okhttp/3.12.1 using terminal but am still getting "ERROR: FFmpeg process creation failed: spawn ffmpeg ENOENT Cam name"

Any other suggestions? Switch to Beta?

I am using the IndoorCam2k which has native Homekit support but makes me lose Eufy Cloud features. I wasnt ready to commit to Apple HomeKit as my primary security cam service but maybe that is the route I should go to make this easier. Any thoughts?