FMost of video upload sites are using the ffmpeg and php for uploading and converting the video files. For converting you need to install the ffmpeg on your server. you can download and install ffmpeg from following location.
http://www.ffmpeg.org/download.html
For installting the ffmpeg on linux box I found following article very helpful
http://mysql-apache-php.com/ffmpeg-install.htm
After installing the ffmpeg on your system you can use following commands for converting the video files to flv format.
avi to flv convert through ffmpeg
ffmpeg -i 00138.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320×240 -f flv final.flv
For creating the thumbnail the from video file you can use the folowing command.
create thubnail from movie file
ffmpeg -y -i moviefile.avi -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110×90 new.png
In PHP you can use the following code easily.
$video_file = '/pathtovideo/test.avi';
$flvfile ='/pathtoflv/test.flv';
$png_path ='/pathtopng/test.png';
exec("ffmpeg -i ".$video_file." -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv ".$flvfile.");
//for thumbnail
exec("ffmpeg -y -i ".$video_file." -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110x90 ".$png_path.");
Above code with convert the video file to flv format but my suggestion is convertion of video files will take so much bandwidth on server so use cronjob for converting the video files in night time.
Incoming search terms:
- ffmpeg
- video convert flv php code
- ffmpeg icon
- ffmpeg php upload tutorial windows
- php upload video and convert to flv tutorials
- convert video to flv in php
- exec(ffmpeg -y -i $video_file -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110x90 $png_path);
- how to convert video file php
- video file convert in php
- Video FLV Converter WordPress
- php convert video
- php convert video to flv
- php convert video to flv on upload
- php convert flv to png
- php convert video format
- php upload and convert video to flv
- php upload flash video convert
- wordpress upload convert movie
- upload video file php mysql
- upload e converter flv php ffmpeg







Very efficiently written information. It will be valuable to everyone who usess it, as well as myself. Keep doing what you are doing – can’r wait to read more posts.
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
Great read. Thanks for the info!