add video record
This commit is contained in:
parent
f1b94c82aa
commit
aac0dc2b13
|
@ -54,8 +54,12 @@ while(TRUE)
|
|||
$result = file_get_contents($DiscordWebhook, false, stream_context_create($startOptions));
|
||||
echo "done.\n";
|
||||
|
||||
system('screen -dm ffmpeg -i '.$StreamURL.' tmp/rtmp/'.$videoFileName);
|
||||
|
||||
$lastOnlineTime = time();
|
||||
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
|
||||
|
||||
system("killall -9 ffmpeg");
|
||||
|
||||
if(($lastOnlineTime + 10) < time())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue