Results 1 to 7 of 7

Thread: Error Converting. Please help?

  1. #1

    Default Error Converting. Please help?

    Hello,

    I've never had this problem before with my sites, but I've just installed vshare on this new site of mine and I'm having problems converting videos. As of right now, I've only tried converting .wmv files.

    Here is the error I get everytime I try to convert.

    Code:
    STARTING VIDEO CONVERSION (process_queue.id = 1)
    File: /home/valvideo/public_html/video/Hope-and-Faith---1.03---01.wmv
    ####################################################
    SELECT * FROM `video` WHERE `VID`=1
    ####################################################
    Video id: 1
    Find video duration - START
    Duration (ffmpeg-php): 55
    
    DURATION: 00:55
    Create Thumbnail - START
    Create Thumbnail with ffmpeg-php - END
    CONVERT COMMAND: /usr/bin/ffmpeg '/home/valvideo/public_html/video/Hope-and-Faith---1.03---01.wmv' -o /home/valvideo/public_html/flvideo/12569782321676529012.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup
    ####################################################
    Array
    (
    )
    ####################################################
    Return value:
    I'm not sure if there's any error message there. I've re-installed twice, by the way, but the problem still persists.

    Thank you in advance for any help.

  2. #2

    Default

    CONVERT COMMAND: /usr/bin/ffmpeg '/home/valvideo/public_html/video/Hope-and-Faith---1.03---01.wmv' -o /home/valvideo/public_html/flvideo/12569782321676529012.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -ofps 24 -vf harddup
    This command is not able to convert video to flv format. If you have ssh access, try running it in command prompt. If not ask the host to verify.

  3. #3
    Join Date
    Sep 2007
    Posts
    906

    Default

    When the script runs convert command

    /usr/bin/ffmpeg '/home/valvideo/public_html/video/Hope-and-Faith---1.03---01.wmv' -o /home/valvideo/public_html/flvideo/12569782321676529012.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -ofps 24 -vf harddup
    It got following result.

    Array
    (
    )
    Look like server is not able to execute commands from php scripts.

    Safe mode is on ? what is the local value of open_basedir ?
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  4. #4
    Join Date
    Sep 2007
    Posts
    906

    Default

    Also post content of include/config.php file after removing database details.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  5. #5

    Default

    Thank you for your reply.

    Here is the content of include/config.php:

    Code:
    <?php
    
    error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
    
    session_start();
    
    $db_host     = "";
    $db_name     = "";
    $db_user     = "";
    $db_pass     = "";
    
    $language = "en";
    
    $config = array();
    $config['ffmpeg']          =  "/usr/bin/ffmpeg";
    $config['mplayer']          =  "/usr/bin/ffmpeg";
    $config['mencoder']          =  "/usr/bin/ffmpeg";
    $config['flvtool']          =  "/usr/bin/ffmpeg";
    $config['basedir']        =  "/home/valvideo/public_html";
    $config['baseurl']        =  "http://videos.val-emmich.net";
    
    include($config['basedir'] . "/include/vshare.php");
    Hmm, are the paths wrong?
    Last edited by bangnificent; 10-31-2009 at 10:12 AM.

  6. #6

    Default

    You need to change the path in include/config.php same as

    $config['ffmpeg'] = "/usr/bin/ffmpeg";

    $config['mplayer'] = "/usr/bin/mplayer";

    $config['mencoder'] = "/usr/bin/mencoder";

    $config['flvtool'] = "/usr/bin/flvtool";


    Upload a test video and check its working or not

  7. #7
    Join Date
    Sep 2007
    Posts
    906

    Default

    You need to disbale open_basedir. Now it is set.

    None of your php.ini settings are proper. Set it as per

    YouTube Clone Server Requirements

    Also update path to binary files in include/config.php

    Look like requirements are not properly installed on your server.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •