解决PHP5.3.x下ffmpeg安装配置问题
本人的环境: OS : windows 7 64位 WAMP:2.1a PHP:5.3.3(之前是5.3.13) 项目需要用ffmpeg-php实现上传视频转码截图等功能,但是找了很多资料都没有把ffmpeg-php配置上。故,写本博文帮助大家解决这问题。 前言:之前我也找了资料在windows下配置ffmpeg-php
本人的环境:
OS : windows 7 64位
WAMP:2.1a
PHP:5.3.3(之前是5.3.13)
项目需要用ffmpeg-php实现上传视频转码截图等功能,但是找了很多资料都没有把ffmpeg-php配置上。故,写本博文帮助大家解决这问题。
前言:之前我也找了资料在windows下配置ffmpeg-php,结果都配置不上。后来发现最主要的是PHP版本以及ffmpeg-php所对应的版本不一致。比如http://sergey89.ru/files/ffmpeg-php/这个网站发布的ffmpeg-php针对的是PHP5.2.x的版本,但最上面有PHP5.3.1的版本。原来我的是5.3.13版本的,一开始以为下ffmpeg-php-5.3-win32-all.zip不会出问题。结果还是出问题了,phpinfo()没有ffmpeg的信息。琢磨了很久,终于解决了。
解决方案:
相信大部分是用WAMP的,而且PHP的版本也是5.3.x的。所以造成了高版本的ffmpeg-php找不到,而且编译版本还分VC6和VC9。之前用的PHP5.3.13是VC9,现在的5.3.3是VC6的。配置不上主要是PHP版本的问题了。所以建议降级wamp或者php版本(适配高版本PHP的ffmpeg-php不好找)。
推荐用wamp2.1a(php是5.3.3的):http://pan.baidu.com/s/1i3wybAH
ffmpeg-php:http://pan.baidu.com/s/1vqxzC
WAMP的安装就不多说了,直接下一步下一步。ffmpeg-php解压后有9个dll文件,把php_ffmpeg.dll放到php的ext下(比如:E:\wamp\bin\php\php5.3.3\ext),其余的8个dll放到windows\system32下。然后打开php.ini(E:\wamp\bin\apache\Apache2.2.17\bin\php.ini),ctril+f查找extension=找到扩展配置的位置,然后在最下面添加extension=php_ffmpeg.dll,然后把extension=php_gettext.dll前面的‘;’分号除掉,保存php.ini(在E:\wamp\bin\php\php5.3.3下也有php.ini,我把这里的也改了)。重开WAMP。phpinfo()有ffmpeg信息说明安装配置成功啦!具体怎么使用请自行百度。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



As smartphone technology continues to develop, mobile phones play an increasingly important role in our daily lives. As a flagship phone focusing on gaming performance, the Black Shark phone is highly favored by players. However, sometimes we also face the situation that the Black Shark phone cannot be turned on. At this time, we need to take some measures to solve this problem. Next, let us share five tips to teach you how to solve the problem of Black Shark phone not turning on: Step 1: Check the battery power. First, make sure your Black Shark phone has enough power. It may be because the phone battery is exhausted

With the continuous development of social media, Xiaohongshu has become a platform for more and more young people to share their lives and discover beautiful things. Many users are troubled by auto-save issues when posting images. So, how to solve this problem? 1. How to solve the problem of automatically saving pictures when publishing on Xiaohongshu? 1. Clear the cache First, we can try to clear the cache data of Xiaohongshu. The steps are as follows: (1) Open Xiaohongshu and click the "My" button in the lower right corner; (2) On the personal center page, find "Settings" and click it; (3) Scroll down and find the "Clear Cache" option. Click OK. After clearing the cache, re-enter Xiaohongshu and try to post pictures to see if the automatic saving problem is solved. 2. Update the Xiaohongshu version to ensure that your Xiaohongshu

Everyone knows that if the computer cannot load the driver, the device may not work properly or interact with the computer correctly. So how do we solve the problem when a prompt box pops up on the computer that the driver cannot be loaded on this device? The editor below will teach you two ways to easily solve the problem. Unable to load the driver on this device Solution 1. Search for "Kernel Isolation" in the Start menu. 2. Turn off Memory Integrity, and it will prompt "Memory Integrity has been turned off. Your device may be vulnerable." Click behind to ignore it, and it will not affect the use. 3. The problem can be solved after restarting the machine.

If you have successfully downloaded the installation file of Baidu Netdisk, but cannot install it normally, it may be that there is an error in the integrity of the software file or there is a problem with the residual files and registry entries. Let this site take care of it for users. Let’s introduce the analysis of the problem that Baidu Netdisk is successfully downloaded but cannot be installed. Analysis of the problem that Baidu Netdisk downloaded successfully but could not be installed 1. Check the integrity of the installation file: Make sure that the downloaded installation file is complete and not damaged. You can download it again, or try to download the installation file from another trusted source. 2. Turn off anti-virus software and firewall: Some anti-virus software or firewall programs may prevent the installation program from running properly. Try disabling or exiting the anti-virus software and firewall, then re-run the installation

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

Understanding Linux Bashrc: Function, Configuration and Usage In Linux systems, Bashrc (BourneAgainShellruncommands) is a very important configuration file, which contains various commands and settings that are automatically run when the system starts. The Bashrc file is usually located in the user's home directory and is a hidden file. Its function is to customize the Bashshell environment for the user. 1. Bashrc function setting environment

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system
