kopiro / homebridge-tapo-camera

Homebridge plugin for TP-Link TAPO security cameras
ISC License
127 stars 11 forks source link

Device appears to be inactive. Stopping stream. #30

Closed MonStar1 closed 2 years ago

MonStar1 commented 2 years ago

Stream is always stopping after 2-3 seconds. It happens on Raspberry Pi 4b (raspberian os). But it has worked correctly when I use my setup on macos

[1/11/2022, 10:21:06 AM] [TAPO-CAMERA] [Camera в зале] Video stream requested: 1280 x 720, 30 fps, 299 kbps [1/11/2022, 10:21:06 AM] [TAPO-CAMERA] [Camera в зале] Starting video stream: native x native, native fps, ??? kbps (AAC-eld) [1/11/2022, 10:21:06 AM] [TAPO-CAMERA] [Camera в зале] Stream command: /usr/local/lib/node_modules/homebridge-tapo-camera/node_modules/ffmpeg-for-homebridge/ffmpeg -i rtsp://MonStar1:07760776@192.168.31.49:554/stream1 -an -sn -dn -codec:v copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 10246476 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params H823NKK7fXlUFicoOGmuwAjGGzgcS9y71k07pB4n srtp://192.168.31.5:54227?rtcpport=54227&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 -payload_type 110 -ssrc 11656784 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params KWivLkx+TYOGSDe8inPNS+6WwHlXIKZ/OkMu6df2 srtp://192.168.31.5:57671?rtcpport=57671&pkt_size=188 -loglevel level -progress pipe:1

[1/11/2022, 10:21:09 AM] [TAPO-CAMERA] [Camera в зале] Getting the first frames took 2.725 seconds.

[1/11/2022, 10:21:18 AM] [TAPO-CAMERA] [Camera в зале] Device appears to be inactive. Stopping stream. [1/11/2022, 10:21:18 AM] [TAPO-CAMERA] [Camera в зале] Stopped video stream. [1/11/2022, 10:21:18 AM] [TAPO-CAMERA] [Camera в зале] FFmpeg exited with code: 0 and signal: null (Expected)

MonStar1 commented 2 years ago

think found an issue. I had two instances of homebridge with the plugin installed