What camera are you talking about? All that should be possible depending on the camera.
The Dahua API will let you make all of those calls to the camera. @nayr has a thread on it somewhere here. Write up a simple script or batch file to send all the commands at the appropriate times.
NodeJS Module: node-dahua-api
Try that thread
http://contenidosdigitales.net/plan...entas/api/DAHUA_HTTP_API_FOR_IPC&SD-V1.36.pdf
And that link. Props to @nayr for that one too.