Php uploads videos and automatically transcodes them into FLV!

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.