PHP uploads video and automatically transcoding to FLV function!
Recently do school TV site, want to develop to let students upload their own DV work function, with PHP implementation, transcoding into FLV format, like Youku,tudou, looked for relevant information, found ffmpeg this software seems to be possible to achieve, but said is very simple, only give some parameters, Did not give an example, and how to combine with PHP, I hope someone can teach me:
1, Installation and configuration ffmpeg (or other feasible software)
2, give a simple example (example: Upload and transcode test.rmvb to FLV, and then add to the database)
------Solution--------------------
There is a more orthodox approach, basically: Install a software that converts many formats of video files to FLV files on your server, study the various parameters of its command-line invocation, and then invoke the System command in your PHP code.
Refer to:
http://blog.csdn.net/chinalinuxzend/article/details/1828451
------Solution--------------------
You can download and install the php_ffmpeg extension