Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

ffmpeg_animated_gif error

omkarguptaomkargupta Posts: 1Member
Hello everyone

i use following code for creating a animated gif of video file using following code but it give a error.
plz tell me how to use ffmpeg_animated_gif class file.

$destinationgif='/jupload/files/video/video/test.gif';
$frameNo=array(5,16,27,39,51);

$movie1 = new ffmpeg_movie($source, false);
$gif1 = new ffmpeg_animated_gif($agif, 450, 370, 3, 0);
for($i=0;$igetFrame($frameNo[$i]);
$gif1->addFrame($img1);

}

$mkNewImg1 = new ffmpeg_frame($img1,1);

$gif1->addFrame($mkNewImg1);
Sign In or Register to comment.