installing ffmpeg
Date: January 09, 2011 10:37AM
Hi i wanted to install ffmpeg into wamp. after searching in several fora i found a process and followed it step by step.
A. have installed Wamp with setup: Apache 2.2.17, Php 5.2.16, MySQL 5.1.52
B. be aware that the current ffmpeg dll extension only works for PhP 5.2.xx
Steps to install ffmpeg:
1. activate GD2 Php Extension
2. Download ffmpeg.exe from [ffdshow.faireal.net]
3. Unpack the downloaded zip file. There will be three files inside: ffmpeg.exe, ffplay.exe, and pthreadGC2.dll
4. Download the FFMPEG windows dll files from [azzerti.free.fr]
5. Unpack the downloaded zip file. You will need three files: php_ffmpeg.dll, avcodec.dll and avformat.dll.
6. Copy php_ffmpeg.dll in your wamp php extension folder: bin\php\php5.2.16\ext
7. Add the line "extension=php_ffmpeg.dll" (without the quotes) into php.ini right on the end of the extension= section
8. Copy avcodec.dll and avformat.dll and pthreadGC2.dll to C:\windows\system32
9. Click on the WAMP icon and click restart all services. Wait for WAMP to restart.
10. Copy ffmpeg.exe to C:\wamp\bin (Note: If you have installed WAMP to a different directory, copy the file to the /bin folder in your WAMP directory).
11. The path to FFMPEG is now: C:\wamp\bin\ffmpeg.exe
NOW - In Phpinfo it shows that ffmpeg extension is installed.
The question is.in step 10 and 11 it says that if i just place ffmpeg into the bin it will automatically define a path for it. Is that right or do i have to configure the wampserver configuration files to designate where the path to ffmpeg.exe is ?
all the best
vasilis
以上就介绍了installing ffmpeg,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
上一篇: PHP 分析一个日志文件?