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
Live Query Plugin: Solution of your problems in jQuery
Some one asked me about the solution of binding events to dynamically generated elements. And one name came in my mind that is LiveQuery. If you have used jQuery…
How can We Create Cron Jobs and Add them in Cpanl.
Creating cron jobs and implementing them on server is little bit tricky for web beginners. Here i will elaborate a simple example for creating and implementing crons on PHP…
Learn some Best Tips for doing SEO of Your websites.
SEO is most important part for any website. SEO depends on how your website has been developed. Many things we have to keep in mind while developing a site….
PHP Encrypt/Decrypt: Simple class to encrypt url data
Encryption is useful where critical data is being transferred in url. I have found a simple and secure encryption class with some changes to make it fit for new…
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 Alert Dialog Boxes With Simple Demo
Browsers alert boxes are simple and they look different from browser to browser and while sometimes this is a good thing as the user is used to their browser’s…
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…