When I upload a video that is 90 MB ..after the upload is complete it just goes back to the form to fill up..when I upload a video under 5 mb I get a fatal error. http://ethixproductions.com/machinima - Please tell me why I cant upload videos :(
Printable View
When I upload a video that is 90 MB ..after the upload is complete it just goes back to the form to fill up..when I upload a video under 5 mb I get a fatal error. http://ethixproductions.com/machinima - Please tell me why I cant upload videos :(
When the time of uploading
This error is due to ffmpeg or ffmpeg-php not installed properly.Code:Fatal error: Cannot instantiate non-existent class: ffmpeg_movie in /home/wczqluvy/public_html/machinima/include/classes/class.video_duration.php on line 54
You need to Reinstall ffmpeg and ffmpeg-php
Where is the ffmpeg located? I cant find the file.Quote:
Originally Posted by buyscripts
Please contact your webhsoting compant to check the vShare requirements.
http://docs.buyscripts.in/Server_Setup
On installation page I seeQuote:
Originally Posted by buyscripts
FFMpeg binary
Mencoder binary
Mplayer binary
FLVTool binary
I left those blank when I ran installation, what would I put in those places?
Edit include/config.php ,check following details are there.
Code:$config['ffmpeg'] = "/usr/bin/ffmpeg";
$config['mplayer'] = "/usr/bin/mplayer";
$config['mencoder'] = "/usr/bin/mencoder";
$config['flvtool'] = "/usr/bin/flvtool2";
I filled them in but I get fatal error again:Quote:
Originally Posted by buyscripts
Fatal error: Cannot instantiate non-existent class: ffmpeg_movie in /home/wczqluvy/public_html/machinima/include/classes/class.video_duration.php on line 54
I use cpanel
If this helps, this is the whole file... I think I need to edit the last 4th line..But im not php capable :lol:
Code:<?php
class video_duration {
function find_video_duration_ffmpeg($duration_arr) {
global $config;
$video = $duration_arr['src'];
$debug = isset($duration_arr['debug']) ? $duration_arr['debug'] : 0;
$cmd = $config['ffmpeg'] . " -i " . $video;
@exec("$cmd 2>&1", $output);
$output_all = implode("\n",$output);
if ($debug) {
echo "
$cmd</p>";
echo "<pre>"; print_r($output_all);
echo "</pre>";
}
if (@preg_match('/Duration: ([0-9][0-9]:[0-9][0-9]:[0-9\.]+), .*/', $output_all, $regs)) {
$sec = $regs[1];
$duration_array = split(":",$sec);
$sec = ($duration_array[0] * 3600) + ($duration_array[1] * 60) + $duration_array[2];
$sec = (int) $sec;
} else {
$sec = 0;
}
return $sec;
}
function find_video_duration_mplayer($duration_arr) {
global $config;
$video = $duration_arr['src'];
$debug = isset($duration_arr['debug']) ? $duration_arr['debug'] : 0;
$cmd = $config['mplayer'] . " -vo null -ao null -frames 0 -identify " . $video;
@exec("$cmd 2>&1", $output);
$output_all = implode("\n",$output);
if ($debug) {
echo "
$cmd</p>";
echo "<pre>"; print_r($output_all);
echo "</pre>";
}
if (@preg_match('/ID_LENGTH=([0-9\.]+)/', $output_all, $regs)) {
$sec = (int) $regs[1];
} else {
$sec = 0;
}
return $sec;
}
function find_video_duration_ffmpeg_php($duration_arr) {
$video = $duration_arr['src'];
$output = new ffmpeg_movie($video);
$sec = $output->getDuration();
return (int)$sec;
}
}