1
0
Fork 0

try use mp4

This commit is contained in:
Christopher Latza 2020-06-12 17:30:59 +02:00
parent f0286b220a
commit e6967ab8cb
1 changed files with 3 additions and 2 deletions

View File

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