开发者

How to encode uploaded video files to .flv format in PHP

My platform is PHP JOOMLA MYSQL. I want to encode and load uploaded video files of different formats to .flv, .mp4 & .avi

I want this process either done on the upload process or after completing the upload process as a separate process. I do use my ffmpeg code to may best but literally failed to encode some of the video files which says that the bitrate is 1/1000 and so the file cannot be encoded. some shows poor 开发者_开发百科in quality.

If anyone know the best practices which usually used to encode in these situations, please share with me.

Any help would be appreciated and thanks in advance to have a good reply for this


you can use http://www.ffmpeg.org/ for online video converting with php on any platform windows or linux

 exec("ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320x240 video.flv");

more read here

http://www.ffmpeg.org/ffmpeg-doc.html


You could check out a Joomla component called hwdVideoShare.

The server requirements look like this: FFMPEG, FLVTOOL2, MENCODER, GD, FREETYPE, PHP (installations should support exec, cURL & file_get_contents functions), PERL. So you need to make sure that your server has all these before installing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜