cURL based Monitors - How?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
garfin
Posts: 1
Joined: Wed Jun 05, 2024 12:47 am

cURL based Monitors - How?

Post by garfin »

Hi all, a total newbie here, I've had a look around the online doco and forums, but not finding an answer that helps.

Bare with me while i explain.. I'm trying to get some Kasa KC100 working.. I CAN get them to write out an .mp4 by issuing a cURL command such as this..

Code: Select all

curl -vv -k -u Kasa@anon.com:UGFzc3dvcmQ= --ignore-content-length "https://192.168.1.38:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" --output - | ffmpeg -y -i - frontdoor.mp4
Where the username is the username as created in the Kasa App that the camera was initialised as , and the password is its password in base64.


Now, further to this , i am then also able to make the 3 KC100's i have , work in 'Home Asssistant' , by using 'Kasa Cameras' add-on , which then enables a couple of output streams within Home Assistant, for the cameras, at ...

HLS ->

Code: Select all

http://<Homeassistant IP>:43330/hls/<CAMERA NAME>.m3u8
RTMP ->

Code: Select all

rtmp://<Homeassistant IP>:43331/live/<CAMERA NAME>
Image

which i 'can' then plug that rtmp url into ZoneMinder as an ffmpeg monitor.. (Which works)!Image

BUT.. what i would like to do , is bypass the whole need for HomeAssistant.. while its an impressive product, i dont want yet another machine in the loop. But i cant for the life of me, figure out a way to add the cURL command/url (eg)

Code: Select all

curl -vv -k -u Kasa@anon.com:UGFzc3dvcmQ= --ignore-content-length "https://192.168.1.38:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" --output - | ffmpeg -y -i - frontdoor.mp4
..and go directly from camera, into a monitor, that ZM understands.

Any thoughts?
Thanks in Advance.
Attachments
ZoneMinder.JPG
ZoneMinder.JPG (125.48 KiB) Viewed 1368 times
HomeAssistant.JPG
HomeAssistant.JPG (89 KiB) Viewed 1368 times
Post Reply