Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kasa source doesn't work for old models - KC120, KC200 #725

Closed
unknown1818 opened this issue Nov 1, 2023 · 6 comments
Closed

Kasa source doesn't work for old models - KC120, KC200 #725

unknown1818 opened this issue Nov 1, 2023 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@unknown1818
Copy link

unknown1818 commented Nov 1, 2023

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

@AlexxIT AlexxIT added the question Further information is requested label Nov 11, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Nov 11, 2023

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

@charlieamer
Copy link

charlieamer commented Apr 11, 2024

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

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 20, 2024

@charlieamer you can find my contacts inside github profile

@charlieamer
Copy link

charlieamer commented Apr 20, 2024 via email

@AlexxIT AlexxIT added bug Something isn't working and removed question Further information is requested labels May 10, 2024
@AlexxIT AlexxIT self-assigned this May 10, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 10, 2024

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

@AlexxIT AlexxIT changed the title Tp-Link Kasa KC120 ----> go2rtc Kasa source doesn't work for old models - KC120, KC200 May 10, 2024
@AlexxIT AlexxIT added this to the v1.9.2 milestone May 15, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 18, 2024

@AlexxIT AlexxIT closed this as completed May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants