Frequently Asked Questions
How do I remove .ts, .m3u8, HLS, and others, after they have been uploaded to my S3 bucket?
QUESTION:
How do I remove .ts, .m3u8, HLS, and others, after they have been uploaded to my S3 bucket?
ANSWER:
Red5 Pro post-processing does not automatically remove recordings after they are copied up to the S3, in part because when a recording is played back via Red5 Pro, the files are copied back to the server if they are not already there.
If you want to regularly remove these files, it is recommended that you set up a cron job to delete them from local storage.
To edit the crontab, type:
sudo crontab -e
# SAMPLE CRONTAB TO DELETE RECORDED STREAMS OVER 2 DAYS OLD; run every day at 2:00a.m.
0 2 * * * /usr/bin/find /tmp/live/streams/ -type f -mtime +2 -exec rm -rf {} \;
0 2 * * * /usr/bin/find /usr/local/red5pro/webapps/live/streams/ -type f -mtime +2 -exec rm -rf {} \;
Verified 09/18/2019 RM/JP