кусок кода:
$res_type = '.'.$type;
if(move_uploaded_file($file_tmp, $video_dir.$file_rename.$res_type)){
$result_video = $config['home_url'].'uploads/videos/'.$user_id.'/'.$file_rename.$res_type;
// $ffmpeg = '/usr/bin/ffmpeg';
// кадр который будем выхватывать
$frame = 350;
// Instantiates the class ffmpeg_movie so we can get the information you want the video
$movie = new ffmpeg_movie($result_video);
$image = $movie->getFrame($frame);
$image_original = $movie->getFrame($frame);
//Need to create a GD image ffmpeg-php to work on it
$image = imagecreatetruecolor($width, $height);
//Create an instance of the frame with the class ffmpeg_frame
$frame = new ffmpeg_frame($Image);
$frame = new ffmpeg_frame($image_original);
//Choose the frame you want to save as jpeg
// echo $thumbnailOf = $movie->getFrameRate() * 5;
$thumbnailOf = (int) round($movie->getFrameCount() / 4);
//Receives the frame
$frameImg = $movie->GetFrame($thumbnailOf);
$frameImgOr = $movie->GetFrame($thumbnailOf);
// Resizes the frame to 200, 100
$frameImg-> resize(180, 140);
$frameImgOr-> resize();
//Convert to a GD image
$image = $frameImg->toGDImage();
$image_original = $frameImgOr->toGDImage();
//Save to disk.
imagejpeg($image, 'uploads/videos/'.$user_id.'/'.$file_rename.'.jpeg');
imagejpeg($image_original, 'uploads/videos/'.$user_id.'/original_'.$file_rename.'.jpeg');
// Освобождаем память
imagedestroy($image);
imagedestroy($image_original);
в чем может быть проблема