-
Notifications
You must be signed in to change notification settings - Fork 585
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 KC200 no video using config.yaml and No Audio with workaround script. #1006
Comments
Thought I would add some extra information, hopefully its helpful, this is scrapped from fiddler. Request Header
Response Header + data boundary
|
Was able to successfully get a video output with curl, still no luck with go2rtc :(
Hopefully this is helpful in some way :) |
Have created a ngrok tunnel for the camera if that helps. |
Well I bodged my way around some of my issues, I now have some video, not perfect so would still be keen to have this issue resolved if that's possible? It feels like the current go2rtc implementation is very close but I get the feeling the issue is with the --data-boundary-- and the weird issues with audio being mixed into the same stream as its very intermittent, I assume its only sending audio through when there is something over a certain db level. I tried to create some rather elaborate bash scripts to split out the audio and video into separate FIFO's but I think along with the overhead its just to slow and ffmpeg didn't seem to like it when I was trying to recombine it and the FIFO's were flaky at best. I have settled on the following script which loads the video relatively quickly compared to previous attempts, I have the codec for audio in it but it doesn't work :(
Using the docker version of go2rtc so created a script folder in config and mapped the path across, dumped the script in there and ran Audio data boundary below, there are some odd things going on, its almost like it finishes the audio then starts the video again without a new --data-boundary-- though this may be my noob knowledge of audio\video streams.
Some additional information I found in my travels
|
I believe go2rtc doesn't perfectly handle streams for kasa. There is homeassistant addon which I believe handles it much better, but it has its own flaws. https://github.com/joshgetter/hassio-addons/tree/master/kasa-camera . This one is splitting and recombining streams properly though. I am considering to sell the KC200 camera and buy a different one with better support, one that's less propriatory 😅 |
Thanks @charlieamer its funny you say that as I have just ordered two new (less known brand) onvif based cameras, hopefully I dont regret this purchase, guess I will find out soon, I don't have a lot of money though so my options were slim. |
I found a way to connect go2rtc/frigate with kasa! It requires a custom python script. I'll send details soon. I am certain the solution could be integrated in golang as well, as part of native go2rtc ecosystem. |
You can send the accesses to your camera to me in PM. |
Any updates? I can potentially help if useful :) |
I'm waiting PMs |
I've added you as a friend on Discord. I have a spare KC200 we can play about with 👍 Edit: KC420WS works perfectly with go2rtc including audio! |
This is duplicate #725 |
Been trying to get this going for a couple of days, I can see the video stream in Fiddler but can't seem to get it working in go2rtc, i'm running a container with 1.8.5 so looks to be supported.
Getting this error:
undefined error=streams: Get "https://[email protected]:***@192.168.1.19:19443/https/stream/mixed?video=H264&audio=G711": net/http: HTTP/1.x transport connection broken: bad Content-Length "-1" caller=github.com/AlexxIT/go2rtc/internal/mjpeg/init.go:166
my config is basic and as follows
reponse header contains the following
Content-Type: multipart/x-mixed-replace;boundary=data-boundary--
This seems to correspond to the body which contains --data-boundary-- prior to the av content.
Any help would be much appreciated as feel like I'm so close
The text was updated successfully, but these errors were encountered: