From ab7501ef0881218133370d3568cf87982de2adab Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Fri, 12 Jun 2020 17:18:55 +0200 Subject: [PATCH] compress image --- start.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start.php b/start.php index ff4c04a..959a015 100644 --- a/start.php +++ b/start.php @@ -16,7 +16,8 @@ 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 -r 90 -t 4 -i '.$StreamURL.' -vf "fps=10,scale=400:-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=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=10,scale=400:-1" -pattern_type glob -loop 0 '.$fileName); if(is_file($fileName)) {