Php uploads videos and automatically transcodes them into FLV! Recently, I worked as a school TV website and wanted to develop a function for students to upload their DVSs. I used php to convert them into the flv format and found related materials like youku and tudou, I found that the ffmpeg software can be implemented, but it is very simple. I only gave some parameters, and did not give examples, and how to combine it with php. I hope someone can teach me:
1. install and configure ffmpeg (or other feasible software)
2. a simple example is provided (for example, upload and transcode test. rmvb to flv, and then add it to the database)
Reply to discussion (solution)
If you remember correctly, there is a foreign framework, but it seems to be charged.
There is a more orthodox approach, the principle is roughly like this: install a software on your server that can convert many formats of video files into FLV files, study the parameters called by the command line, and then use the system command in your PHP code to call them.
Refer:
Http://blog.csdn.net/chinalinuxzend/article/details/1828451
You can download and install the php_ffmpeg extension
You can try the method on the second floor.
Is it solved now? I have encountered this situation too.
Solve the problem. if you are interested, send the source code to you to see that 10628520 is on QQ.com.
Let's also ask for help and see how it works.