Skip to content

kasa stream not functioning #2035

Description

@fiveangle

I have a Kasa EC70 that ive been using with Frigate with a proxy https://github.com/kevdog114/kasa-cam-rtsp-streamer which uses a very simple method to collect/republish the stream:

#!/bin/sh
echo "Starting camera proxy."
echo " URL: $APP_CAM_URL"
echo " OUT: $APP_RTSP_URL"

curl "$APP_CAM_URL"  -k --ignore-content-length \
       	--output - | \
	ffmpeg -y -i - \
	-s 480x270 \
	-c:v copy -c:a copy \
	-f rtsp -rtsp_transport tcp $APP_RTSP_URL

That container publishes to a mediamtx container, which then frigate connects to directly. It's been working fine enough, but has no retry logic (or hadn't: kevdog114/kasa-cam-rtsp-streamer#1) . But any hiccup, and the streams would drop until re-kicked).

I had tried to get to work with the go2rtc builtin to Frigate a while back with no luck, but figured I'd give it another try. Unfortunately, still no love. Frigate ver is 1.9.9 (fa580c5). Also tried latest release: no better. So tried to recreate the curl=>ffmpeg pipeline that the working container uses, but within frigate/go2rtc but was not successful. Attempting various iterations of moving double-quotes and single-quotes around didn't change much.

Here's my attempt to recreate the functionality of the working setup within go2rtc by setting the go2rtc section in frigate for this camera to:

  hallway: exec:curl "https://davejohnson3000%40gmail.com:Hdw8p8qyNGwVnQe8L%21@192.168.50.12:19443/https/stream/mixed?video=h264&audio=g711"
    -k --no-progress-meter --ignore-content-length --output - |
    ffmpeg -hide_banner -y -i - -s 1920x10080 -c:v copy -c:a copy
    -f rtsp -rtsp_transport tcp {{output}}

But always got various 'command not foumd' type of entries in the log. So I figured it's high time to drop in here and see if we can't solve this within go2rtc directly.

All attempts to configure a "kasa://" camera stream in go2rtc would just not connect, and I'd watch Firgate keep re-spinnng it's ffmpeg proces.

-=dave

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions