Newbies For FFMPEG!!

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

    Newbies For FFMPEG!!

    Here is a code for you to get image from a video

    Most users that hosted with me and only 1 compliant about it

    Here mate test this out on your hosting ;)

    As i said start learning to code son other coding is crap lol

    PHP Code:
    <?php

    $video 
    'movie.3gp';

    $filename "$video.jpg";
    if (
    file_exists($filename)) {
            
    make("$video");
    }else{
            
    $fh fopen("$video.jpg""w");
            if(
    $fh==false) die("unable to create file");
            
    fputs ($fh1);
            
    fclose ($fh);

            
    make("$video");
    }

    function 
    make($video){

    // where ffmpeg is located
    $ffmpeg '/usr/local/bin/ffmpeg';


    //where to save the image
    $image "$video.jpg";

    //time to take screenshot at
    $interval 5;

    //screenshot size
    $size '640x480';

    //ffmpeg command
    $cmd "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1";
    $return = `$cmd`;

    echo 
    $return;

    }
    ?>
    Thank me Or Else !!

    You will be frozen!
    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

    #2
    Is ffmpeg enabled in my server?

    Comment


      #3
      No sorry but you can try it lmao

      Added after 20 minutes:

      have you ever tryed

      <?php
      phpinfo();
      ?>

      Or look at Host4u.com.au - Shared Hosting or http://247hosting.in/hosting.php

      Added after 8 minutes:

      @jervy

      Any help or On topic about our services please use this Official Support/Sales Forums - Index

      Make sure you do not post any private cards or paypal email as we will delete it but mostly i will as im only staff to check the forums sean is in billing and support ticket and sue in both but i do check the forum alot ....

      So if we fixed your problem others will know the error and they can be fixed as well ;)
      Last edited by subzero; 05.03.11, 05:16.
      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

      Working...
      X