jymbob / chuangmi-720-hack

Collection of modifications for the Xiaomi Chuangmi 720 WiFi Camera
25 stars 8 forks source link

RTSP and SD card at the same time? #7

Open jdluzen opened 5 years ago

jdluzen commented 5 years ago

After reading the README, I'm not sure if RTSP and saving to the SD card works at the same time. Does it? I do not need the cloud services.

jymbob commented 5 years ago

Disabling cloud streaming currently disables saving locally too. I'm not sure if @fliphess has looked into this at all. I've found it simpler to simply record the trap stream on a separate server. VLC or ffmpeg both have one line commands that can handle this

On Sun, 18 Nov 2018, 16:46 jdluzen, notifications@github.com wrote:

After reading the README, I'm not sure if RTSP and saving to the SD card works at the same time. Does it? I do not need the cloud services.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jymbob/chuangmi-720-hack/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AD9NFU2PFpfJMh2WBa4f0bMhZ7sWkub7ks5uwY73gaJpZM4YoBqs .

fliphess commented 5 years ago

Due to a limited amount of resources, it's recommended to turn record-on-motion-detection (which is part of the cloud enabled software stack developed by xiaomi), off when using the rtsp service.

For now you could use external software to accomplish a similar result: zoneminder and home-assistant for example can both record parts of the stream or create an image of the rtsp stream when motion is detected.

In the foreseeable future I hope we'll be able to extend the current rtspd service to bring back the record on motion detection functionality, but it'll take some time as we're still figuring out how the gmlib api works.

fliphess commented 5 years ago

I'm working on a newer version of the rtsp service that enabled motion detection over MQTT. It will take a few weeks/months to implement this, but eventually I'll get there ;)