record as avi 720p
This commit is contained in:
parent
1a962969ad
commit
f1ae22bf98
|
@ -13,7 +13,7 @@ while(TRUE)
|
|||
if(($lastOnlineTime + 60) < time())
|
||||
{
|
||||
$fileName = "output-".md5(time().rand(11111,99999)).".gif";
|
||||
$videoFileName = md5(time().rand(11111,99999)).".webp";
|
||||
$videoFileName = md5(time().rand(11111,99999)).".avi";
|
||||
|
||||
echo "Checking stream and creating image...\n";
|
||||
//system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName);
|
||||
|
@ -54,7 +54,7 @@ while(TRUE)
|
|||
$result = file_get_contents($DiscordWebhook, false, stream_context_create($startOptions));
|
||||
echo "done.\n";
|
||||
|
||||
system('screen -dm ffmpeg -i '.$StreamURL.' tmp/rtmp/'.$videoFileName);
|
||||
system('screen -dm ffmpeg -i '.$StreamURL.' "fps=24,scale=-1:720" tmp/rtmp/'.$videoFileName);
|
||||
sleep(1);
|
||||
|
||||
$lastOnlineTime = time();
|
||||
|
|
Loading…
Reference in New Issue