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
Fancy Drop Down Menus Using CSS and JQuery.
Hi dear readers, I created fancy drop-down menus with CSS and JQuery. I have another tutorial on 99Points in which I used some animated navigation. I used jQuery animate…
12 Essential jQuery Plugins to Bookmark in 2017
jQuery is no doubt serving as the backbone of the web design and development industry. And in just a few years thousands of plugins have been developed by the…
How To: Create dynamic Content Loading using Ajax and jQuery
Create simple ajax base page loading using jQuery fadeIn effects. Put some awesome styles to your web pages using ajax base content loading. Demo and code available.
jQuery Validation Plugin – Learn How To Show Custom Messages
Every developer uses validations for HTML forms and it’s better to use plugins instead of custom validations because this way we will not only save time but also will…
Create Simple JQuery Voting Application for Multiple Records
This tutorial is very simple and I created it for those readers who feel some problems in creating or implementing a single voting or rating system for multiple records…
Ajax Rating System: Create Simple Ajax Rating System using jQuery AJAX and PHP.
Simply programmed, CSS based stylish Ajax rating system which you can use any where to put a stylish jquery effect based rating system.
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…