ctbrec/client/src/main/resources/html/docs/PostProcessing.md

9.9 KiB

Post-Processing

The post-processing gives you the possibility to execute different actions after a recording has finished. You can use that to convert the files to another format, create preview images, rename / move the file etc.

Available Steps
  • create a copy - Creates a copy of the original recording. All following post-processing steps are executed on the copy, not on the original recording. This means, that the post-processing can be rerun in case a step failed, because the original recording is still available.
  • rename - Renames the recording with the help of variables. See Variables
  • move - Moves the recording with the help of variables. See Variables
  • remux / transcode - Executes FFmpeg with the given arguments on the recording. This step can be used to convert a recording to MP4 or re-encode it to a different format / resolution. The input and output file don't have to be defined. If the step was successful the input file gets deleted.
  • execute script - Executes a script or program with the given arguments. You can use the variables to define what to pass over to the script.
  • delete too short - Delete a recording, if it is shorter than the given duration. This post-processing step has replaced the setting, which was available in the post-processing category before
  • delete original - This is a companion step for "create a copy". If you use the copy step and all other steps are successful, you probably want to get rid of the original file and just keep the result of the post-processing. That's what this step does.
  • remove recording, but keep the files - Removes the recording from the recordings list, but keeps the files untouched.
  • create contactsheet - create a contact sheet with preview images of the recording

Planned for future releases

  • call a webhook - call a URL once a recording is finished
  • create timeline thumbnails - create a small thumbnail for every second or every few seconds, which can be used to very fast scan through a recording

How to configure the server to do post-processing

There is currently no user interface to configure the post-processing for the server. It has to be added manually to the server config. I suggest to start the app and configure the post-processing steps in the settings. Afterwards you close the app and copy the post-processing section from the settings.json to your server.json file. To find out, where these files are on your system, read Configuration File.

The part you have to copy is

  postProcessors: [
    ...
  ],

Variables

Available variables: