Finalize.sh creating

Hi,

I’m wanting to rename my folder and filename after I finish the record, but I didn’t find any instructions about how I can configure the finalize.sh file. The global variables, etc…

Can someone help me with this?

There is a sample script in this post

Thank you @emrah

I wrote my finalize.sh simpliest as possible:

#!/bin/bash
rm -rf $FOLDER

Only for a test.

This is the configuration:
JIBRI_RECORDING_DIR=/config/recordings
JIBRI_FINALIZE_RECORDING_SCRIPT_PATH=/config/finalize.sh

The videos are recording in /srv/jitsi/jibri/recordings, then I putted the finalize.sh file in /srv/jitsi/jibri/.

I readed the log and nothing strange happened, but the folder was not deleted.

Did I do something wrong?

You’re missing FOLDER=$1 to assign the FOLDER variable to the first argument.