try to convert to gif
This commit is contained in:
parent
ad56dd4195
commit
6ba0094666
|
@ -12,11 +12,12 @@ while(TRUE)
|
||||||
{
|
{
|
||||||
if(($lastOnlineTime + 60) < time())
|
if(($lastOnlineTime + 60) < time())
|
||||||
{
|
{
|
||||||
$fileName = "output-".time().".jpg";
|
$fileName = "output-".time().".gif";
|
||||||
$videoFileName = "record-".time().".dump";
|
$videoFileName = "record-".time().".dump";
|
||||||
|
|
||||||
echo "Checking stream and creating image...\n";
|
echo "Checking stream and creating image...\n";
|
||||||
system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName);
|
//system("ffmpeg -i ".$StreamURL." -vframes 1 -q:v 2 -vf scale=535:346 ".$fileName);
|
||||||
|
system('ffmpeg -i '.$StreamURL.' -vframes 150 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 '.$fileName);
|
||||||
|
|
||||||
if(is_file($fileName))
|
if(is_file($fileName))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue