PHP uploads video and automatically transcoding to FLV performance

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

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:
You can download and install the php_ffmpeg extension

  • 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: 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.