roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
835 stars 110 forks source link

Problem with overwriting files on ftp upload without directory tree #479

Closed Klay4 closed 2 months ago

Klay4 commented 1 year ago

When you enable the upload of the recordings to FTP, if you don’t enable the directory tree then the FTP server will only keep the recordings for one hour, because each time it will overwrite the previous files since the file name format is MinuteSeconds60.mp4

Exemple:

00M00S60.mp4
...
03M00S60.mp4
04M00S60.mp4
...
59M00S60.mp4
denven commented 1 year ago

I guess it's not the issue of an FTP server, it is because the files you upload contain the same file names as some you've already uploaded. Due to the naming rule of a video record file, I think you have to upload files by separating their directories to avoid the file overwrite behavior and loss.

The suggestion is to upload your files by directories named by their generated dates instead of by files to the same directory. Otherwise, you can only keep the latest files uploaded, or the ones not overwritten, and 60 files at most on your FTP server.

When you enable the upload of the recordings to FTP, if you don’t enable the directory tree then the FTP server will only keep the recordings for one hour, because each time it will overwrite the previous files since the file name format is MinuteSeconds60.mp4

Exemple:

00M00S60.mp4
...
03M00S60.mp4
04M00S60.mp4
...
59M00S60.mp4
github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.