ffmpeg-php $frame->gdimage(); Images are created with a green/blue tint
Posted
by dropson
on Stack Overflow
See other posts from Stack Overflow
or by dropson
Published on 2010-06-13T21:17:21Z
Indexed on
2010/06/13
21:22 UTC
Read the original article
Hit count: 279
I'm trying to create stillimages with PHP-FFMPEG; but suddenly after installing FFMPEG and FFMPEG-PHP from scratch on a brand new server, all images are created with a green and blueish tint.
<?PHP
$flvmov = new ffmpeg_movie("test.mp4");
$flvframe = $flvmov->getFrame(50);
$flvgd = $flvframe->toGDImage();
imagepng($flvgd, "test.png", 0);
imagedestroy($flvgd);
?>
I've tried imagejpeg, and other video inputs without luck. Previously this worked perfectly. But now I'm stuck, and I've tried all revs between FFMPEG-PHP-0.5.1 -> 0.6.1.
Anyone that could think of what this could be?
© Stack Overflow or respective owner