try use mp4
This commit is contained in:
parent
f0286b220a
commit
e6967ab8cb
|
@ -12,12 +12,13 @@ while(TRUE)
|
||||||
{
|
{
|
||||||
if(($lastOnlineTime + 60) < time())
|
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";
|
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 -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=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))
|
if(is_file($fileName))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue