use md5 in file name
This commit is contained in:
parent
9c3f764321
commit
572cf70646
|
@ -12,8 +12,7 @@ while(TRUE)
|
||||||
{
|
{
|
||||||
if(($lastOnlineTime + 60) < time())
|
if(($lastOnlineTime + 60) < time())
|
||||||
{
|
{
|
||||||
$fileName = "output-".time().".gif";
|
$fileName = "output-".md5(time().rand(11111,99999)).".gif";
|
||||||
$videoFileName = "record-".time().".dump";
|
|
||||||
|
|
||||||
echo "Checking stream and creating image...\n";
|
echo "Checking stream and creating image...\n";
|
||||||
//system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName);
|
//system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName);
|
||||||
|
|
Loading…
Reference in New Issue