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)
Reply to discussion (solution)
If I remember correctly, there is such a framework abroad but it seems to be a charge.
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
You can download and install the php_ffmpeg extension
2 floor of the method can be a try
Is it solved now? I've been in this situation, too.
Solved, interested in the word of origin code to you see 10628520 in qq.com
Ask for help, see how it's solved.