PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
ffmpeg_animated_gif error Posted by omkargupta on 15 Feb 2010 at 11:18 PM
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;$i<count($frameNo);$i++){

$img1 = $movie1->getFrame($frameNo[$i]);
$gif1->addFrame($img1);

}

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

$gif1->addFrame($mkNewImg1);



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.