Video Not Getting Converted

When you upload, video will get converted to FLV format for viewing in flash player. This is done by mencoder/ffmpeg.

If you enabled debug in admin, you will be able to see debug information in templates_c/debug.txt file.

You will see the convert command used some thing like

/usr/bin/mencoder '/home/vshare/public_html/video/10commandments.wmv' -o /home/vshare/public_html/flvideo/12311637692026487648.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

You have have working mplayer installation, this command should convert the video to FLV format. If conversion fails, you have to fix your mplayer installation.

If you are on dedicated server, run the convert command on command prompt (ssh). On shared host, you can ask your web host why the convert command is not working.

To verify is mplayer/mencoder installed on your server can convert video to FLV format, create a PHP file with following content.

test.php

<html>
<body bgcolor="Black" text="White">
<?php

error_reporting(E_ALL);

$convert_command = "REPLACE WITH YOUR CONVERT COMMAND FROM templates_c/debug.txt";

$var = exec($convert_command,$exec_result);

for($i=0;$i<count($exec_result);$i++){
  echo $exec_result[$i] . "<br>";
}

?>
</body>
</html>

Now access the file with url

http://yoursiteurl/test.php

This will show out put of your convert command, if the command is not converting video to FLV format, then there should be problem with mplayer/mencoder installed on your server.


ERRORS
HOWTO