From 9c3f7643212d606eefbdb5f7a46b472f5b211fb9 Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Fri, 12 Jun 2020 15:30:38 +0200 Subject: [PATCH] try to get the gif smaler --- start.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.php b/start.php index 7af2f9c..28c9bf7 100644 --- a/start.php +++ b/start.php @@ -17,7 +17,7 @@ while(TRUE) echo "Checking stream and creating image...\n"; //system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName); - system('ffmpeg -t 5 -i '.$StreamURL.' -t 5 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 '.$fileName); + system('ffmpeg -t 3 -i '.$StreamURL.' -t 3 -vf "fps=5,scale=535:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 '.$fileName); if(is_file($fileName)) {