40
Votes

Save Videos on FTP Server / SMB share

 
40
Votes

Save Videos on FTP Server / SMB share

44 Reply
Re:Save Videos on FTP Server / SMB share
a week ago

Hi all,

 

Because we have no feedback from Tp-link for years, I suggest you to put here what alternatives camera did you find to work on FTP/SMB.

 

Regards,

GND

#43
Options
Re:Save Videos on FTP Server / SMB share
a week ago

  @GNDmen 

 

I did not find any way to use FTP or SMB.  

 

I'm experimenting with using a Raspberry PI 4 with NVME storage.   I've picked up some python scripts that use ONVIF to grab videos when motion is detected:

 

https://github.com/peterstamps/TAPO-camera-ONVIF-RTSP-and-AI-Object-Recognition

 

I've been hacking the myMPTapoDetectCaptureVideo.py script.  The script uses ONVIF to pull motion events.  Simultaniously the script is buffering frames.  If a motion event comes through it saves a series of frames as a video. 

 

But things are a bit complicated...

 

The scripts as they are have some issues, the author is not a programmer, but is obviously quite bright and has managed to build something that kind of works.  They work best for 1280x720, but that may be a mater of doing some further optimisation. The author also has some C++ code, but I haven't looked at that (I've sworn off of C++, C is OK though).

 

The scripts are very CPU intensive, unecessaily so.  There are several loops that rapidly re-test if any data is ready.  I've added 10 ms sleeps when the loops are idling. This got the CPU consumption down from 100%+ to around 10%.    I think they could be simplified further, but theres quite a bit to tease out.  I also need to see if they can be tweaked to handle the 2560x1440 stream, it may just be a mater of doing less computationally (at the expense of larger video files).

 

I've lost some interest when I found that ONVIF only supplies motion-events and does not get person-detection-events.

 

It's possible person-detection-events might be able to be monitored by having them trigger power-plugs or light-bulbs.  I'm pondering whether I write a virtual-power-switch that home-automation would see as a real switch?  Or maybe I should just buy a power-plug and experiment.  As I mentioned, it gets complicated.

 

Currently I'm paused, thinking about the best way forward.  

#44
Options
RE:Save Videos on FTP Server / SMB share
Sunday
good idea!
#45
Options
Re:Save Videos on FTP Server / SMB share
Monday - last edited Monday

> I've lost some interest when I found that ONVIF only supplies motion-events and does not get person-detection-events.

 

I raised the lack of person detection events elsewhere, it was passed to tech support, and they quickly responded with a firmware update to the C225 that does pass though person-detection events.

#46
Options