1.3 KiB
Post-Processing
The post-processing gives you the possibility to run any script / program after a recording has finished. You can use that to convert
the files to another format, create preview images, rename / move the file etc.
There are example scripts included in the distribution zip (pp.bat
, pp.ps1
, pp.sh
). See also the comments in those files.
Local Recording
If you are using the local recording mode, you can set the post-processing script / program on the settings tab under Recorder -> Post-Processing. ctbrec will call the selected script after the recording has finished with the following parameters:
- directory (absolute path)
- file (absolute path)
- model name
- site name
- unixtime (seconds since 1/1/1970 00:00)
Remote Recording (server)
If you are running the server and want to run a post-processing script, you have to edit the configuration file. Just set the absolute path to an executable script / program for the setting postProcessing. Since the recordings look a bit different for the server, the parameters, which are passed to the script are a bit different, too:
- parent directory (absolute path)
- directory of the recording (absolute path) - this directory contains the segments and the playlist
- model name
- site name
- unixtime (seconds since 1/1/1970 00:00)