FFmpeg wapmaster script prob plz help

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

#ffmpeg

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

2 participants
mafia28 Newbie · 9 posts #1
$file=htmlspecialchars(@$_GET['file']);

/*
* Withdrawal of a screenshot from the video 3gp
* 12.02.2011
*
*/

if (!class_exists(ffmpeg_movie))
{
die('This script wont work, you need to ffmpeg hosting !! Try ');
}

//creating an object (a test file test.3gp)

if (file_exists($file))
{
$mov = new ffmpeg_movie($file);
}
else
{
die('Error !! Can not find file !!');
}

//frame number
$frame = 10;

//width
$w = $mov->GetFrameWidth();

//height
$h = $mov->GetFrameHeight();

//extract frame
$ff_frame = $mov->getFrame($frame);

if ($ff_frame)
{
//format GD
$gd_image = $ff_frame->toGDImage();

if ($gd_image)
{
//output (for example, in the gif)
header('Content-type: image/gif');
imagegif($gd_image);

/*You can make a change in size, causing copyrights and watermarks, in general all that apply for GD*/
}
else
{
die('cannot be converted to GD');
}
}
else
{
die('can not extract frame');
}

/*
descriptions of all methods ffmpeg_movie look here
http://ffmpeg-php.sourceforge.net/doc/api/ffmpeg_movie.php
*/

i am getting this error msg in ffmpeg script for video preview i got this error msg, "Fatal error: Call to undefined method ffmpeg_frame::toGDImage() " ffmpeg php- gd alredy installed, plz help

subzero Super moderator Fellow · 3,954 posts #2

You will need to find the path of FFMPEG

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

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