AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
7.2k stars 516 forks source link

Kasa error="streams: unexpected EOF" stream=kc401 #1288

Open Frazou1 opened 4 months ago

Frazou1 commented 4 months ago

Hi, i follow the instruction to add my KD110 doorbell into Frigate and always receive this error: "streams: unexpected EOF" stream=kc401.

I found another issue like this and for resolved AlexxIT said to change password to base64encoded. Wha ti did. I still have problem with it.

Here is the log from go2rtc :

2024-07-31 18:18:12.862057278  [INFO] Preparing new go2rtc config...
2024-07-31 18:18:13.334780229  [INFO] Starting go2rtc...
2024-07-31 18:18:13.444426143  18:18:13.444 INF go2rtc version 1.8.4 linux/amd64
2024-07-31 18:18:13.445126927  18:18:13.445 INF [rtsp] listen addr=:8554
2024-07-31 18:18:13.445375287  18:18:13.445 INF [webrtc] listen addr=:8555
2024-07-31 18:18:13.445913412  18:18:13.445 INF [api] listen addr=:1984
2024-07-31 18:18:14.688440428  18:18:14.688 TRC [streams] check cons=0 media=video, sendonly, H264, H265
2024-07-31 18:18:15.247474024  18:18:15.247 TRC [streams] skip prod=kasa://xxx%40hotmail.com:base64password@192.168.2.77:19443/https/stream/mixed error="unexpected EOF"
2024-07-31 18:18:15.247532494  18:18:15.247 TRC [streams] check cons=0 media=audio, sendonly, MPEG4-GENERIC
2024-07-31 18:18:15.747626590  18:18:15.747 TRC [streams] skip prod=kasa://xxx%40hotmail.com:base64password@192.168.2.77:19443/https/stream/mixed error="unexpected EOF"
2024-07-31 18:18:15.747634116  18:18:15.747 DBG [streams] can't stop none producer
2024-07-31 18:18:15.747643496  18:18:15.747 WRN [rtsp] error="streams: unexpected EOF" stream=kc401

Log from frigate : 2024-07-31 18:21:58.261153348 [2024-07-31 18:21:58] frigate.video ERROR : kc401: Unable to read frames from ffmpeg process.

And my Frigate config file :

go2rtc:
  log:
    streams: trace
  streams:
      kc401: 
        - kasa://xxx%40hotmail.com:base64password@192.168.2.77:19443/https/stream/mixed
cameras:
  kc401: # <------ Name the camera
      ffmpeg:
        hwaccel_args: ""
        input_args: preset-rtsp-restream
        inputs:
          - path: rtsp://127.0.0.1:8554/kc401
            roles:
              - detect
              - record
      motion:
          mask:
            - 120,63,856,56,860,129,122,134
      zones:
        kc401_motion:
          coordinates: 865,612,854,1296,1895,1296,1736,554
          objects:
            - person
            - dog
            - cat 
      detect:
        enabled: True
        fps: 5

      record:
        enabled: True
        retain:
          days: 3
          mode: motion
        events:
          required_zones:
            - kc401_motion
          pre_capture: 3
          post_capture: 3
          retain:
            default: 5
            mode: motion

      snapshots:
        enabled: True
        required_zones:
          - kc401_motion
        retain:
          default: 5
AlexxIT commented 4 months ago

You can try to open your link in any browser or ffplay (use https:// at start). So you will know if user/pass correct. Also you can try latest go2rtc version. It has some fixed for some kasa cameras.

Frazou1 commented 4 months ago

I tried different combined. when i use directly the @ in email and base64password i got this : image

When im using the % in the email and base64password i got this : image