Results 1 to 8 of 8

Thread: Upload fatal error

  1. #1
    Join Date
    May 2008
    Posts
    9

    Default Upload fatal error

    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 :(

  2. #2

    Default Re: Upload fatal error

    When the time of uploading
    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
    This error is due to ffmpeg or ffmpeg-php not installed properly.
    You need to Reinstall ffmpeg and ffmpeg-php

  3. #3
    Join Date
    May 2008
    Posts
    9

    Default Re: Upload fatal error

    Quote Originally Posted by buyscripts
    When the time of uploading
    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
    This error is due to ffmpeg or ffmpeg-php not installed properly.
    You need to Reinstall ffmpeg and ffmpeg-php
    Where is the ffmpeg located? I cant find the file.

  4. #4

    Default Re: Upload fatal error

    Please contact your webhsoting compant to check the vShare requirements.

    http://docs.buyscripts.in/Server_Setup

  5. #5
    Join Date
    May 2008
    Posts
    9

    Default Re: Upload fatal error

    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 see

    FFMpeg binary
    Mencoder binary
    Mplayer binary
    FLVTool binary

    I left those blank when I ran installation, what would I put in those places?

  6. #6

    Default Re: Upload fatal error

    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";

  7. #7
    Join Date
    May 2008
    Posts
    9

    Default Re: Upload fatal error

    Quote Originally Posted by buyscripts
    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:

    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

  8. #8
    Join Date
    May 2008
    Posts
    9

    Default Re: Upload fatal error

    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;
    	}
    }

Similar Threads

  1. Fatal error: Error can't find imagecreatetruecolor
    By damen in forum Installation Support
    Replies: 8
    Last Post: 07-21-2010, 09:02 PM
  2. fatal error after upload
    By mizzy in forum Bug Reports
    Replies: 4
    Last Post: 05-13-2008, 03:50 PM
  3. Fatal error: Smarty error:
    By megavideos.in in forum Installation Support
    Replies: 1
    Last Post: 11-25-2007, 08:16 PM
  4. Fatal Error
    By khsoh in forum Installation Support
    Replies: 0
    Last Post: 11-05-2007, 06:34 AM
  5. fatal error
    By pataylo in forum Installation Support
    Replies: 2
    Last Post: 07-08-2007, 09:31 AM

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
  •