Today, I will show, how can we upload and convert a video file to flv using FFmpeg in CodeIgniter website. FFmpeg commands runs in Linux but in Window server we need to download FFmpeg.exe file from its site. Which we have to put in our site root folder. IF your server is Linux then you also need verify that your hosting server has FFmpeg installed or you need it to be installed. For checking FFmpeg availability print phpinfo() in any file and run this command on server where you will get PHP version and other server settings. Find FFmpeg on that window if it doesn’t found then it means server has no FFmpeg installed.
Similar Posts
Learn Codeigniter PHP framework: Basic working Structure
Codeigniter is very light and fully featured framework which gives you every thing which you want in web development. It is a powerful PHP framework with very small footprint….
How To: Use Re-Captcha in Codeigniter based website?
Re-captcha is a free web service to add a secured captcha on your website to avoid spams. Spams filled up your inboxes with unnecessary emails or messages which you…
New Digg Style Follow Unfollow Application Using jQuery and PHP
You know Digg has changed its style and layout and now I think it looks awesome. This time on 99Points, I create Digg Style follow/unfollow application. I tried to…
New Twitter Like Application with JQuery and PHP
Are you looking for a New Twitter design clone? Then you are at the right place here at 99points.info I have created a new Twitter-style header with a fancy…
30 Top Codeigniter best Tutorials You must want to know.
Code Igniter is best framework and has an extensive community to help you always. Lot of tutorials are available online. Here i have given some best tutorials.
Live Username Availability Checking using Ajax and jQuery. Demo Available
Simple script to check username availability using jQuery and Ajax. Try out demo and use it. I used gif loader and jquery fade in effects to make it fit….
2 Comments
Comments are closed.
Hi i put this code in controller but i am unable to upload plz tell me how i do this. plz tell me step by step i am new………
load->model(‘files_model’);
$this->load->database();
$this->load->helper(‘url’);
}
public function index()
{
$this->load->view(‘upload’);
}
public function upload_file()
{
$status = “”;
$msg = “”;
$file_element_name = ‘userfile’;
$filename = $_FILES[‘userfile’][‘name’];
if ($status != “error”)
{
$config[‘upload_path’] = ‘./uploads/’;
$config[‘allowed_types’] = ‘*’;
$config[‘max_size’] = 1024 * 8;
$config[‘encrypt_name’] = TRUE;
$this->load->library(‘upload’, $config);
if (!$this->upload->do_upload($file_element_name))
{
$status = ‘error’;
$msg = $this->upload->display_errors(”, ”);
}
else
{
$data = $this->upload->data();
// echo “
I used this code but the converter is not worked what to do now…. Please help me…