Php uploads videos and automatically transcodes them into FLV! Solution
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, it seems that the ffmpeg software can be implemented, and how to use php to upload videos and automatically transcode them to 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)
------ Solution --------------------
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
------ Solution --------------------
You can download and install the php_ffmpeg extension
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.