How would I easily send a download link to the person who recorded the call?

I put the recording directory behind a web server so all I need now is to get rid of the random directories that are created, how would I go about doing that?

You can add the logic to move the recording from a random directory to a specific directory in finalize.sh.

for example

mv "$RECORDINGS_DIR/*.mp4" "custom_dir/myrecording.mp4"

This var RECORDINGS_DIR holds the path of the random directory(like xvsdjdsjsdj/)

1 Like

Thanks! Where do I find this script?

I believe you have to create the script. Place it anywhere accessible by Jibri and specify it in jibri.conf

A very basic example of the script here:

1 Like

or more complicated one https://github.com/jitsi/jitsi-upload-integrations/blob/master/jitsi_uploader.sh

2 Likes

So I ended up writing this:

#!/bin/bash

RECORDINGS_DIR=$1

for entry in "$search_dir"$RECORDINGS_DIR/*
do
  if [ "${entry: -4}" == ".mp4" ]
  then
    filename="${entry##*/}"
    arrIN=(${filename//_/ })
    mkdir -p -- /config/recordings_moved/${arrIN[0]}
  fi
done

MOVE_FROM="$RECORDINGS_DIR/*.mp4"
MOVE_TO=/config/recordings_moved/${arrIN[0]}/recording.mp4

mv -- $MOVE_FROM $MOVE_TO

exit 0

Thanks so much for the help!