Welcome Guest, Not a member yet? Register   Sign In
How to remove error of uploading limit
#11

[eluser]Milind[/eluser]
pls somebody tell where i found ffmpeg_movie class in my wamp folder or CI folder on window-xp

pls help me ?
#12

[eluser]Milind[/eluser]
please somebody tell how to solved these error
" Can't open movie file funny dogs.wmv Filename: controllers/video.php Line Number: 30" my code is
function load_vedio()
{
$srcFile=$_FILES['upload_file']['name'];
$destFile="out.flv";
$ffmpegPath="c:/wamp/www/codeigniter/system/plugins/ffmpeg.exe";
$ffmpegTool="c:/wamp/www/codeigniter/system/plugins/flvtool2.exe";

$ffmpegobj = new ffmpeg_movie($srcFile);
$srcwidth = $ffmpegobj->getFrameWidth();
echo $srcwidth;
//$srcwidth -= $srcwidth & 1;
// $srcheight = $ffmpegobj->getFrameHeight();
// $srcheight -= $srcwidth & 1;
// $srcsize=$srcwidth.'x'.$srcheight;


// $config['upload_path'] = 'c:/wamp/www/CodeIgniter/system/application/ffmpeg/';
// $config['allowed_types'] = 'avi|dat|flv|mp3|mp4|MPEG|rm|wmv';
// $config['max_size'] = '112400 ';


$this->load->library('upload', $config);

// echo "Mime uploaded: ".$this->upload->file_type."<br>";
// foreach ($this->upload->allowed_types as $val)
// {
// echo "allowed: "; var_dump($this->upload->mimes_types(strtolower($val))); echo "<br>";
// }

if ( ! $this->upload->do_upload('upload_file'))
{
$error = array('error' => $this->upload->display_errors());
echo $error['error'];
$this->load->view('upload_video', $error);
}
else
{ //exec("$ffmpegPath -i {$srcFile} -sameq -acodec libmp3lame -ar 22050 -ab 32 -f flv -s {$srcSize} {$destFile}");
// $data = array('upload_data' => $this->upload->data()Wink;
// $this->load->view('upload_suceess');
//printf("frame height = %d pixels\n", $ffmpegobj->getFrameHeight());
// printf("frame width = %d pixels\n", $ffmpegobj->getFrameWidth());
echo "hi ";

}
}

pls help me
#13

[eluser]TheFuzzy0ne[/eluser]
Check file permissions, and ensure that the path you're supplying is correct.
#14

[eluser]Milind[/eluser]
I am checking that file has all(read and write) permission and also file browsing path is also correct and i am sorry i am not mension one more error in above post is
"Call to a member function getFrameWidth() on a non-object in c:\wamp\www\CodeIgniter\system\application\controllers\video.php on line 31"
where i am wrong pls tell me

I need help




Theme © iAndrew 2016 - Forum software by © MyBB