Video upload functionality is needed in every networking site. I will give best option the create the thumbnail from video file and convert video file to flv format.
For conversion of video files and creating the thumbnail we need the ffmpeg software need to be installed on server. Here I used the linux server. For installing the FFmpeg I used following article.
http://mysql-apache-php.com/ffmpeg-install.htm
After installing the ffmpeg software in linux you can use the command prompt for converting the video file.
Use the following command for covert the avi or video file to flv format.
#ffmpeg -i VIDEOFILE.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320×240 -f flv final.flv
If you are using the PHP then you can use following code in your PHP script for converting the video file.
exec("ffmpeg -i VIDEOFILE.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv final.flv");
//For creating the thumbnail use the following code
exec("ffmpeg -y -i moviefile.avi -vframes 1 -ss 00:01:60 -an -vcodec png -f rawvideo -s 110x90 new.png");
converting the video files to flv format that takes some time. So I recommend not to convert the video file to flv while uploading.
Just create the thumbnail and show to use.
For converting the video file to flv format use the cronjob. Create two or One cronjob setting and daily two or more time through script convert the video files to flv.






I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
This post makes a lot of sense !
Awesome post. I so good to see someone taking the time to share this information
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
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.
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
Of course, what a great site and informative posts, I will add backlink – bookmark this site? Regards, Reader
I’ve been checking your blog for a while now, seems like everyday I learn something new
Thanks