btidey wrote: ↑Sun Feb 25, 2018 9:30 pm
quavoce wrote: ↑Sun Feb 25, 2018 6:44 pm
Hi Robert,
Would it be possible to support browsing folder structures on the "Download Images and Videos" page by any chance please?
At the moment I use a custom script to put .mp4 files into days/months/years within the media folder. e.g.
/var/www/media/2017
/var/www/media/2017/Oct
/var/www/media/2017/Oct/01
/var/www/media/2017/Oct/01/vi_3509_20171001_083802.mp4
...
/var/www/media/2017/Oct/02
/var/www/media/2017/Oct/03
...
/var/www/media/2017/Nov
/var/www/media/2017/Nov/01
...
/var/www/media/2017/Dec
The downside is I can't view the videos via the web interface as it just shows an empty page.
No worries if it's easier said than done, it's just a "nice to have" request.
Thanks!
You don't need a script to organise the storage into folders. You can use the %Y %M and %D variables into the media paths in the config. This will cause the capture files to be placed into calculated folder. The thumbnails will still be in the root and this is what then allows the captures to be seen in the download page. Playing, deleting, downloading etc will then reference the file in its subfolder correctly.
The download page does currently have simple filters to only show captures by a simple time period (e.g. last 24 hours). It would be possible to expand this to allow selection by a date.
Ohhhhh! Sometimes I just don't see the obvious, simple answer, and instead try to make things more complicated! heh, thanks Robert, I'll have a play with setting that up.
So, I'm going to simplify my set up so that h264 videos are initially stored in a separate folder on the SD card and then use boxing mode to save .mp4 files in my remote media server using the folder naming method you mentioned. Do you know if the disk space purging method would still work with sub-folders within media? (I'm using an NFS mount)
If it does work, may I suggest another purging method based on number of days please? At the moment you have "Min Space %, Max Usage %, etc", but could there be a "Max Days" option as well? This is because my remote media HD is 8TB which allows me to store many days worth of 24/7 recordings, but tbh I just want to only keep the last 60 days worth.
Thanks!