From 572cf7064638dc2e4fc89116e40e0b6c18a8c480 Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Fri, 12 Jun 2020 15:35:26 +0200 Subject: [PATCH] use md5 in file name --- start.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/start.php b/start.php index 28c9bf7..c7a2c47 100644 --- a/start.php +++ b/start.php @@ -12,8 +12,7 @@ while(TRUE) { if(($lastOnlineTime + 60) < time()) { - $fileName = "output-".time().".gif"; - $videoFileName = "record-".time().".dump"; + $fileName = "output-".md5(time().rand(11111,99999)).".gif"; echo "Checking stream and creating image...\n"; //system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName);