FFmpeg wapmaster script prob plz help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    FFmpeg wapmaster script prob plz help

    PHP Code:
    $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
    Last edited by mafia28; 08.06.12, 12:55.

    #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...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      Originally posted by subzero View Post
      You will need to find the path of FFMPEG
      i now path then what to do??

      Comment

      Working...
      X