Fatal error Cannot instantiate non-existent class
Posted: Fri Oct 20, 2006 8:22 am
Hi Guys
I have a script that converts any video format into a flv file using ffmpeg,
the issues is I have installed it, here is the config
running on windows , apache, php and mysql.
I can open the website fine, I can login, when I try to upload a video i get the following error.
"Fatal error: Cannot instantiate non-existent class: ffmpeg_movie in C:\Program Files\Apache Group\Apache2\htdocs\testtube\upload.php on line 83"
here is the section of upload.php that has line 83.
--------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------
All help is appreiciated.
Thanks
I have a script that converts any video format into a flv file using ffmpeg,
the issues is I have installed it, here is the config
running on windows , apache, php and mysql.
I can open the website fine, I can login, when I try to upload a video i get the following error.
"Fatal error: Cannot instantiate non-existent class: ffmpeg_movie in C:\Program Files\Apache Group\Apache2\htdocs\testtube\upload.php on line 83"
here is the section of upload.php that has line 83.
--------------------------------------------------------------------------------------------------------------------------------------------------
Code: Select all
if(isset($_FILES['field_uploadfile']['tmp_name']) && is_uploaded_file($_FILES['field_uploadfile']['tmp_name']))
{
$ff = $config[vdodir]."/".$vdoname;
if(move_uploaded_file($_FILES['field_uploadfile']['tmp_name'], $ff))
(THIS IS LINE 83)------------------->>> { $mov = new ffmpeg_movie($ff);
video_to_frame($ff,$vid,&$mov,$listch[0]);
$duration=$mov->getDuration();
//exec("$config[ffmpeg] -i $config[vdodir]/$vdoname -acodec mp3 -ar 22050 -ab 32 -f flv $config[flvdodir]/".$vid.".flv");
exec("c:/ffmpeg/ffmpeg -i $config[vdodir]/$vdoname -acodec mp3 -ar 22050 -ab 32 -f flv $config[flvdodir]/".$vid.".flv");All help is appreiciated.
Thanks