ffmpeg-php
Mai 29th, 2007 10:30 Uhr von
Ronald
Um die ffmpeg-Geschichte jetzt zu vervollständigen, präsentiere ich hier noch das entsprechende PHP-Modul ffmpeg-php.
Das Modul erweitert PHP um einige sehr schöne Funktionen, z.B. um aus Videos Screenshots oder gleich animierte GIFs zu erzeugen. Was benötigt man? ffmpeg sowie PHP4 oder PHP5 sind “natürlich” Voraussetzung. Für die Bildextraktion wird noch GD-Lib benötigt. Wenn man diese Voraussetzungen erfüllt, kann es eigentlich schon losgehen:
How to install ffmpeg-php4 on Debian 4.0 (Etch)
1. Downloading the archive via Subversion
2. Now change to the directory and execute “phpize”. Maybe you do not have installed it and then you can reinstall it with apt.
phpize
3. After a short period the system will throw you back to prompt. No it’s time to configure and build the extension.
4. Checking for existing ini file! In some cases installation will not create a PHP-extension ini-file by itself, so you have to do the work. The directory where to find it depends on your configuration (PHP and Apache versions). In my case it’s “/etc/php4/apache2/conf.d/”
There you have to create a file named “ffmpeg.ini” an fill it with:
extension=ffmpeg.so
5. After all just restart apache with
Try it by checking your “phpinfo()”-output or by testing a function directly, i.e.:
(C) 2007 by Ronald Vilbrandt
Aktualisiert zuletzt am: 30.10.2007
Geschrieben in PHP |
2 Kommentare »







Juli 24th, 2009 um 11:37
Danke Ronald, hast mir mit der ANleitung sehr geholfen
) Mike.
November 24th, 2009 um 11:26
[...] [...]