Jibri Recording file name with local time zone

Hi All,

I have installed jibri using quick install. Is there a parameter which can save my recording as

room-name_data-timestamp( in local time zone say IST).mp4

Thanks & Regards,
Rajeshkanna

Did you implement a finalize script? Jibri invokes that script (the path to which is set in the config) after a recording is done, you could rename it there.

Hi,

Is it possible to store the recorded filename with time stamp of IST time pickedup from systemtime?

I have the finalize_recording.sh script as follows:

#!/bin/bash

RECORDINGS_DIR=$1

echo “This is a dummy finalize script” > /tmp/finalize.out
echo “The script was invoked with recordings directory $RECORDINGS_DIR.” >> /tmp/finalize.out
echo “You should put any finalize logic (renaming, uploading to a service” >> /tmp/finalize.out
echo “or storage provider, etc.) in this script” >> /tmp/finalize.out

exit 0

Yes, customize the finalize script and perform the rename there

Hi,

I have embeded the timestamp renaming code in the finalize_recording.sh. The code worked locally but not changing from the script. Please suggest what is wrong.

#!/bin/bash

RECORDINGS_DIR=$1

#To change timestamp to IST
#--------------------------
cd $1
for file in find . -type f -name "*.mp4"
do
dt=date +'%Y-%m-%d-%T'
newfilename="${file%_*.mp4}_$dt.mp4"
cp $file $newfilename
done
#--------------------------
echo “This is a dummy finalize script” > /tmp/finalize.out
echo “The script was invoked with recordings directory $RECORDINGS_DIR.” >> /tmp/finalize.out
echo “You should put any finalize logic (renaming, uploading to a service” >> /tmp/finalize.out
echo “or storage provider, etc.) in this script” >> /tmp/finalize.out

I would log some information from your script, then you can have a better idea of what is happening.