Solve the Problem of ffmpeg installation and configuration in PHP5.3.x

Source: Internet
Author: User
My environment: OS: windows764-bit WAMP: 2.1 aPHP: 5.3.3 (previously 5.3.13) requires the use of ffmpeg-php to upload Video Transcoding and other functions, however, I have not configured ffmpeg-php for many documents. Therefore, write this blog to help you solve this problem. I have also found documents to configure ffmpeg-php in windows.

My environment: OS: windows 7 64-bit WAMP: 2.1a PHP: 5.3.3 (previously 5.3.13) requires the use of ffmpeg-php to upload Video Transcoding and other functions, however, I have not configured ffmpeg-php for many documents. Therefore, write this blog to help you solve this problem. I have also found documents to configure ffmpeg-php in windows.

My environment:

OS: windows 7 64-bit

WAMP: 2.1a

PHP: 5.3.3 (earlier than 5.3.13)

The project needs to use ffmpeg-php to upload Video Transcoding and other functions, but ffmpeg-php is not configured for many materials. Therefore, write this blog to help you solve this problem.

I have also found information about how to configure ffmpeg-php in windows. Later, we found that the most important version is the PHP version and the version corresponding to ffmpeg-php is inconsistent. For example. I used to be 5.3.13because ffmpeg-php-5.3-win32-all.zip won't go wrong. The problem persists. phpinfo () does not contain ffmpeg information. After a long time, I finally solved the problem.

Solution:

I believe most of them use WAMP, And the PHP version is 5.3.x. Therefore, ffmpeg-php of a higher version cannot be found, and the compiled version is also divided into VC6 and VC9. The PHP5.3.13 used previously is VC9, and the current 5.3.3 is VC6. The configuration is not mainly caused by the PHP version. We recommend that you downgrade the wamp or php version (ffmpeg-PHP is not suitable for later versions of php ).

Wamp2.1a (php is 5.3.3): http://pan.baidu.com/s/1i3wybAH recommended

Ffmpeg-php: http://pan.baidu.com/s/1vqxzC

WAMP installation is not much said, and the next step is the next step. After decompressing ffmpeg-php, there are nine dll files. Put php_ffmpeg.dll under ext of php (for example, E: \ wamp \ bin \ php \ php5.3.3 \ ext ), the remaining 8 dll files are stored in windows \ system32. Then open php. ini (E: \ wamp \ bin \ apache \ Apache2.2.17 \ bin \ php. ini), ctril + f find extension = find the extension configuration location, then add extension = php_ffmpeg.dll at the bottom, and remove the semicolon ';' before extension = php_gettext.dll to save php. ini (php is also available under E: \ wamp \ bin \ php \ php5.3.3. ini ). Restart WAMP. If phpinfo () has ffmpeg information, the installation and configuration are successful! Please use Baidu for details.

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.