urgent

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

    urgent

    hi friends

    i have all sea script and all script are fine working except video preview. ffmpeg.php are not working in sea script on our site for videos but themes preview is ok. how can i fix it.
    HTML Code:
    <?php
    #-----------------------------------------------------#
    #             Sharing is Caring....                   #
    #              www.share4m.com                        #
    #        Script is translated by admin@share4m.com    #
    #-----------------------------------------------------#
    
    
    require 'moduls/ini.php';
    require 'moduls/connect.php';
    
    //header('Content-type: image/gif');
    
    $W = intval($_GET['W']);
    $H = intval($_GET['H']);
    $id = intval($_GET['id']);
    
    $file_info = mysql_fetch_row(mysql_query('SELECT TRIM(`path`) FROM `files` WHERE `id` = '.$id.' LIMIT 1'));
    $pic = urldecode(htmlspecialchars($file_info[0]));
    
    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(!$W and !$H)
    {
    $size = explode('*',$setup['prev_size']);
    $W = round(intval($size[0])); // ширина картинки
    $H = round(intval($size[1])); // высота картинки
    }
    $new = imageCreateTrueColor($W, $H);
    imageCopyResized($new, $gd, 0, 0, 0, 0, $W, $H, $wn, $hn);
    imageGif($new,null,100);
    
    }
    ?>

    #2
    do u have ffmpeg installed ?
    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
      yes ffmpeg installed

      yes , FFMPEG already installed and path is /usr/local/bin/ffmpeg

      Comment


        #4
        Originally posted by videodesihot View Post
        hi friends

        i have all sea script and all script are fine working except video preview. ffmpeg.php are not working in sea script on our site for videos but themes preview is ok. how can i fix it.
        HTML Code:
        <?php
        #-----------------------------------------------------#
        #             Sharing is Caring....                   #
        #              www.share4m.com                        #
        #        Script is translated by admin@share4m.com    #
        #-----------------------------------------------------#
        
        
        require 'moduls/ini.php';
        require 'moduls/connect.php';
        
        //header('Content-type: image/gif');
        
        $W = intval($_GET['W']);
        $H = intval($_GET['H']);
        $id = intval($_GET['id']);
        
        $file_info = mysql_fetch_row(mysql_query('SELECT TRIM(`path`) FROM `files` WHERE `id` = '.$id.' LIMIT 1'));
        $pic = urldecode(htmlspecialchars($file_info[0]));
        
        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(!$W and !$H)
        {
        $size = explode('*',$setup['prev_size']);
        $W = round(intval($size[0])); // ширина картинки
        $H = round(intval($size[1])); // вы�ота картинки
        }
        $new = imageCreateTrueColor($W, $H);
        imageCopyResized($new, $gd, 0, 0, 0, 0, $W, $H, $wn, $hn);
        imageGif($new,null,100);
        
        }
        ?>
        what have you translated in the script that you have placed such a large translatio copright? lol
        ps, you need to have php-ffmpeg to use this peace of code.
        Advertise your mobile site for FREE with AdTwirl

        Comment


          #5
          do you have full ffmpeg.php which will work on sea script. please post here. theme.php jar are fine working on my site

          Comment

          Working...
          X