With dvr recording you can set the time in wmspanel for overwriting a the recorded video after a few hours or minutes etc.
But is it also possible to delete a dvr video after a period of time, say 2 days automatically with wmspanel?
Now I trie it with a Cronjob, but people get a http 404 error in the player, because the content is deleted.
The purpose is to clear the dvr folder before the next live event start.
of course, after 2 days you can delete manually the video of the recorded dvr stream in the WMSPanel under DVR streams.
But is it possible That I can make a Cronjob for this to send a command to Nimble, to do the same as I can do in the WMSPanel, deleting a recorded DVR stream?
any idea or suggestions, to delete the recorded dvr video the right way, automatically?
Currently it is not possible to command Nimble to delete an archive via API, we'll consider implementing it.
As a workaround I'd suggest using "Update a DVR setting" WMSPanel API (https://wmspanel.com/api_info#toggler=dvr4), you can update a DVR archive path to a new one (e.g. live/stream-20160303) and delete an existing (previous) path.
all right, I'll trie that. I have sent a request to eable pull api for my account.
Api function works great to update the dvr settings of a stream.
But I can not use a variable path as recording path.
the directory will be the same.
It will be the same if you run updating the same day as previous archive is updated. If you're planning to delete/update it more often you can use hour/minute/seconds argument (%H-%M-%S).
All right I can use the same path and folder name again, and it will empty the dvr folder for me!? that will be perfect!
I also tried with %H-%M-%S
But is will give me the same folder name on the server: /var/cache/nimble/dvr/%H-%M-%S
No, it should not empty it for you if you just update it to the same name.
I meant using something like app/stream-`date +%F_%H-%M-%S` as a new folder name so you can delete older one (or keep it for history, it is up to you, actually).
and required to achieve the purposes illustrated in the
If you want to know more or withdraw your consent to all or some of the cookies, please
refer to the