Add ability to use conversion specifiers for target_dir
Question
This is an enhancement request. Please make it so that target_dir will accept date conversion specifiers, such as %Y, %m, and %d, so that I can store motion results by calendar date. In other words, it would be great if I can use this setting:
target_dir /path/
m%d
Of course, this means that motion will need automatically increment the date (as it now does with files) and create the new path at the start of each day.
Thank you for considering this request.
Paste in your error messages, config settings, terminal window output etc in this text field.
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
0.8.13-6:0.8.13-1+rpi1 |
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Raspbian GNU/Linux 7 (wheezy) |
--
DavidYancey - 19 Aug 2014
Answer
You can use macros in picture_filename, like this:
picture_filename %Y/%m/%d/%H-%M
This will create all needed subdirs and put there jpg, like 2014/09/30/18-17.jpg
--
TosiaraT - 30 Sep 2014