1
0
Fork 0

compress image

This commit is contained in:
Christopher Latza 2020-06-12 17:18:55 +02:00
parent 81a3e927ce
commit ab7501ef08
1 changed files with 2 additions and 1 deletions

View File

@ -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))
{