Results 1 to 9 of 9

Thread: Video not processing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default

    Edit include/settings/video_conversion.php replace the content with following

    HTML Code:
    <?php
    
    $cmd_ffmpeg = "$config[ffmpeg] -i '$video_src' -acodec libmp3lame -ar 22050 -ab 32 -f flv $video_flv";
    
    # For old version of mplayer
     $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_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 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames";
    
    # For latest version of mplayer
    #$cmd_mencoder = "$config[mencoder] '$video_src' -o $video_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";
    
    $cmd_all = $cmd_mencoder;
    
    $convert_3gp = $cmd_all;
    $convert_mp4 = $cmd_all;
    $convert_mov = $cmd_all;
    $convert_asf = $cmd_all;
    $convert_mpg = $cmd_all;
    $convert_avi = $cmd_all;
    $convert_mpeg = $cmd_all;
    $convert_wmv = $cmd_all;
    $convert_rm = $cmd_all;
    $convert_dat = $cmd_all;
    upload a test video and check the status

  2. #2
    Join Date
    Sep 2007
    Posts
    906

    Default

    Look like mplayer is not properly installed on your server, verify with your server admin following command can convert video into FLV format.

    Code:
    /usr/bin/mencoder '/home/heyaheyc/public_html/video/test.mpg' -o /home/heyaheyc/public_html/flvideo/4ca4238a0b/12484961921289958177.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
    If not, your mencoder or other related software installation is faulty.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  3. #3

    Default

    Quote Originally Posted by buyscripts View Post
    Edit include/settings/video_conversion.php replace the content with following

    HTML Code:
    <?php
     
    $cmd_ffmpeg = "$config[ffmpeg] -i '$video_src' -acodec libmp3lame -ar 22050 -ab 32 -f flv $video_flv";
     
    # For old version of mplayer
     $cmd_mencoder = "$config[mencoder] '$video_src' -o $video_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 -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames";
     
    # For latest version of mplayer
    #$cmd_mencoder = "$config[mencoder] '$video_src' -o $video_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";
     
    $cmd_all = $cmd_mencoder;
     
    $convert_3gp = $cmd_all;
    $convert_mp4 = $cmd_all;
    $convert_mov = $cmd_all;
    $convert_asf = $cmd_all;
    $convert_mpg = $cmd_all;
    $convert_avi = $cmd_all;
    $convert_mpeg = $cmd_all;
    $convert_wmv = $cmd_all;
    $convert_rm = $cmd_all;
    $convert_dat = $cmd_all;
     
    upload a test video and check the status
    I did it, still not working,

    Also, there is something unusual, when i click "site software" on heyahey cpanel, this does apear, is that normal? or it means that a directory is missing from the server ? See atached...

  4. #4
    Join Date
    Sep 2007
    Posts
    906

    Default

    You need to verify mplayer/mencoder is properly installed on the server. Contact server admin/web host and ask them if the convert command is able to convert video to FLV format, if not installation is faulty. There is two different convert commands, one for release (old version) and one for SVN, you use SVN version.

    Cpanel, i don't know why the first permission error. May be cpanel addons are not enabled on the server. It can be enabled or disabled through WHM when logged in as user root.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  5. #5

    Default

    Quote Originally Posted by hostonnet View Post
    You need to verify mplayer/mencoder is properly installed on the server. Contact server admin/web host and ask them if the convert command is able to convert video to FLV format, if not installation is faulty. There is two different convert commands, one for release (old version) and one for SVN, you use SVN version.

    Cpanel, i don't know why the first permission error. May be cpanel addons are not enabled on the server. It can be enabled or disabled through WHM when logged in as user root.

    this is the reply i have received from the guys with the hosting, when they try the code bellow,

    "/usr/bin/mencoder '/home/heyaheyc/public_html/video/test.mpg' -o /home/heyaheyc/public_html/flvideo/4ca4238a0b/12484961921289958177.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 error comes out:

    "MEncoder SVN-r28661-4.1.2 (C) 2000-2009 MPlayer Team
    Option lavcopts: Unknown suboption l
    Error parsing option on the command line: -lavcopts

    Exiting... (error parsing command line)"

    Do you have any idea why that is?

    thanks,
    Last edited by heyahey; 07-26-2009 at 11:11 AM.

  6. #6

    Default

    Changed server, and now everything works perfect, but still have no idea what the problem was.

    However thanks to everyone who was trying to help, in one way or another…


    Regards,

    Heyahey.com

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
  •