go2rtc icon indicating copy to clipboard operation
go2rtc copied to clipboard

Tp-Link Kasa KC120 ----> go2rtc

Open unknown1818 opened this issue 1 year ago • 4 comments

Hi,

Cant integrate to go2rtc KC120 camera when im using that code:

curl -vv -k -u <login>:<base64pass> --ignore-content-length "https://192.168.0.x:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" --output - | ffmpeg -y -i - test.mp4

its working and saving output test.mp4 but with link

'kasa://<login>:<base64pass>@192.168.0.x:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd'

i got error on go2rtc "invalid byte on chunk length...HTTP 1 transport connection broken, bad content length -1"

im using latest frigate beta 3 + go2rtc 1.8.1

unknown1818 avatar Nov 01 '23 17:11 unknown1818

Can check it if you provide external access https://github.com/AlexxIT/go2rtc/wiki/Tunnel-RTSP-camera-to-Intenet

AlexxIT avatar Nov 11 '23 10:11 AlexxIT

Hello. I have same problem in frigate the issue seems to be related to go2rtc. The full error is: WRN [rtsp] error="streams: Get \"https://XXX:XXX@CAMERA_IP:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd\": net/http: HTTP/1.x transport connection broken: bad Content-Length \"-1\", exec: exit status 1" stream=outside_go2rtc

My frigate config:

go2rtc:
  streams:
    outside_go2rtc:
      - "kasa://EMAIL:BASE64PASS@CAMERA_IP:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd"
      - "ffmpeg:outside_go2rtc#video=h264#audio=opus"

I can give privately external access to my camera to @AlexxIT . Is there a private way I can sand you link with external access ? Maybe email or something like that ?

EDIT: My camera is kasa KC200, but i think protocol is probably the same as KC120

charlieamer avatar Apr 11 '24 18:04 charlieamer

@charlieamer you can find my contacts inside github profile

AlexxIT avatar Apr 20 '24 11:04 AlexxIT

I have added you to discord. Charliemaer is my username Sent from Android deviceOn Apr 20, 2024 13:11, Alex X @.***> wrote: @charlieamer you can find my contacts inside github profile

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

charlieamer avatar Apr 20 '24 14:04 charlieamer

Fixed in latest master version https://github.com/AlexxIT/go2rtc?tab=readme-ov-file#go2rtc-dev-version

AlexxIT avatar May 10 '24 20:05 AlexxIT

https://github.com/AlexxIT/go2rtc/releases/tag/v1.9.2

AlexxIT avatar May 18 '24 14:05 AlexxIT