1
0
Fork 0

use md5 in file name

This commit is contained in:
Christopher Latza 2020-06-12 15:35:26 +02:00
parent 9c3f764321
commit 572cf70646
1 changed files with 1 additions and 2 deletions

View File

@ -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);