Plz Help Fix The Error

Started on the old forum in September 2012 · view the original in the archive · old links redirect here

2 replies · 580 views · started 14 years ago · 1 min read

3 participants
jithuwap Newbie · 6 posts #1

Im getting the error:

[01-Sep-2012 00:11:28] PHP Fatal error: Class 'ffmpeg_movie' not found in /home/jithuwap/public_html/ffmpeg.php on line 9

Here Is The Php Code:

<?php
header('Content-type: image/gif');
$W = $_GET['w'];
$H = $_GET['h'];
$pic = urldecode(htmlspecialchars($_GET['c']));
$name =''.substr($pic,0,strrpos($pic,'.')).'-preview.gif';
if(substr($pic,0,1) != '.'){

$mov = new ffmpeg_movie($pic, false);
$wn = $mov->GetFrameWidth();
$hn = $mov->GetFrameHeight();

$frame = $mov->getFrame(3);

$gd = $frame->toGDImage();

if(empty($H))
$H=$hn;
if(empty($W))
$W=$wn;
$new = imageCreateTrueColor($W, $H);
imageCopyResized($new, $gd, 0, 0, 0, 0, $W, $H, $wn, $hn);
imageGif($new,null,100);
}
// header('Location: '.$name, true, 301);
?>
softwarefreak Senior · 349 posts #2

You need a ffmpeg enabled webhosting to make the script work.💀

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close