diff --git a/start.php b/start.php index 2ab1d4b..fa55740 100644 --- a/start.php +++ b/start.php @@ -12,12 +12,13 @@ while(TRUE) { if(($lastOnlineTime + 60) < time()) { - $fileName = "output-".md5(time().rand(11111,99999)).".gif"; + $fileName = "output-".md5(time().rand(11111,99999)).".mp4"; echo "Checking stream and creating image...\n"; //system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName); //system('ffmpeg -r 90 -t 4 -i '.$StreamURL.' -vf "fps=10,scale=350:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 '.$fileName); - system('ffmpeg -r 90 -t 4 -i '.$StreamURL.' -vf "fps=8,scale=400:-1" -loop 0 -pix_fmt yuv420p '.$fileName); + //system('ffmpeg -r 90 -t 4 -i '.$StreamURL.' -vf "fps=8,scale=420:-1" -loop 0 -pix_fmt yuv420p '.$fileName); + system('ffmpeg -r 90 -t 6 -i '.$StreamURL.' -vf "fps=8,scale=420:-1" '.$fileName); if(is_file($fileName)) {