FFmpeg-php installieren

jojojan

Mitglied
Hallo Gemeinde,
ich versuche jetzt schon seit gestern ffmpeg-php zum laufen zu bringen,ader ich scheiter jedesmal. In der Anleitung steht folgendes:
Code:
 Building into the PHP binary
Unpack the archive and copy the ffmpeg-php extension directory into your the PHP sources extensions directory.

1. tar -xjf ffmpeg-php-X.x.x.tar.gz
2. cp ffmpeg-php /path/to/php_sources/ext

Run autoconf in your php source directory to update the configure script.

1. cd /path/to/php_sources
2. autoconf

Configure PHP with the ffmpeg option.

1. ./configure [other options...] --with-ffmpeg=yes

Now build and install PHP. If everything went as planned, ffmpeg-php is now built into the PHP binary and no further configuration is required.
Building as an Extension
Build and install PHP if it is not already installed
Unpack the archive

1. tar -xjf ffmpeg-php.X.x.x.tar.gz

Change to the ffmpeg-php extension directory and run phpize (included with your PHP installation) to build configuration files.

1. cd ffmpeg-php
2. phpize

Configure and build the extension.

1. ./configure && make

Install the shared extension.

1. make install (as root)
Aber es fängt schon bei dem Befehl autoconf. den will er gar nicht annehmen dann kommt immer command not found. Als System benutze ich Suse 10.3, Xampp + developer package.Achja und das normale FFmpeg habe ich bereits installiert und es läuft auch einwandfrei doch mit PHP will es nicht klappen :(
Ich bin langsam echt am verzweifeln,ich hoffe mir kann jemand ein paar Tipps geben.
Denn ich hab von Linux null Ahnung :(
 
Hallo,

Aber es fängt schon bei dem Befehl autoconf. den will er gar nicht annehmen dann kommt immer command not found.

Diese Fehlermeldung ist doch eigtl. selbsterklärend ;)
Du gehst in Yast, suchst nach dem Paket autoconf und installierst es.

Gruß,
RedWing
 
Selbst dazu bin ich zu blöd. Ich find das unter Yast nicht. Könntest du mir das vielleicht erklären?
Das ist mir alles so peinlich :(
 
Naja peinlich muss es dir nicht gleich sein, dazu ist ja ein Forum da um zu helfen...

Unter yast denk ich müßtest du nur nach autoconf suchen und dann sollte es eigtl. Treffer geben, vorrausgesetzt du hast auch gültige Installationsquellen eingetragen...
Ansonsten schau mal da:

http://rpmseek.com/rpm-dl/autoconf-2.60-21.i586.html?hl=com&cs=autoconf:PN:0:0:0:0:3457782

ist zwar für Suse 10.2 sollte aber evtl. auch funktionieren.
Downloaden und dann mit
Code:
rpm -i paketname.rpm

installieren.

Gruß,
RedWing
 
Vielen Dank für deine schnelle Antwort. Doch jetzt hab ich ein neues Problem, diesmal sagt er no input file. Egal ob ich direkt im ffmpeg-php Ordner bin oder im lib oder sonst wo.
Woran kann das jetzt noch liegen dass er keine Datei findet?
 
Vielen Dank für deine schnelle Antwort. Doch jetzt hab ich ein neues Problem, diesmal sagt er no input file. Egal ob ich direkt im ffmpeg-php Ordner bin oder im lib oder sonst wo.
Woran kann das jetzt noch liegen dass er keine Datei findet?

Wann sagt er das? Wenn du autoconf ausführst?
Run autoconf in your php source directory to update the configure script.

1. cd /path/to/php_sources
2. autoconf
Du musst im Toplevel Verzeichnis deiner PHP Sourcen sein und dann autoconf ausführen. Ansonsten findet er die Datei configure.ac (bzw .in) nicht.

Gruß,
RedWing
 
Ja wenn ich autoconf eingeben sagt er immer no input file.
Den ffmpeg Ordner habe ich jetzt nach
Code:
/opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php
kopiert.
Wenn ich da autoconf ausführe tut er das auch,jedenfalls gibts keine Fehlermeldung ;).
Wenn ich dann aber phpsize ausführen möchte gibt es wieder einen Error:
Code:
 configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.See autoconf documentation.
So und wenn ich dann versuche ./configure auszuführen sagt er mir:
Code:
configure: error: cannot run /bin/sh ./configure.sub
Langsam bin ich echt am verzweifeln :(
 
So jetzt bin ich wieder ein stück weiter.Phpize funktioniert soweit. Nur wenn ich ./configure eingebe krieg ich jetzt den Fehler
Code:
configure:error: no accetable C compiler found in $PATH See config.log for more details,
Langsam aber sicher komme ich meinem Ziel immer näher ;)
 
Ja wenn ich autoconf eingeben sagt er immer no input file.
Den ffmpeg Ordner habe ich jetzt nach
Code:
/opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php
kopiert.
Wenn ich da autoconf ausführe tut er das auch,jedenfalls gibts keine Fehlermeldung ;).
Wenn ich dann aber phpsize ausführen möchte gibt es wieder einen Error:
Code:
 configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.See autoconf documentation.

Also soweit ich die Anleitung verstanden habe, solltest du
1.) die ffmpeg extension nicht in dein Installationspfad von php kopieren
2.) autoconf nicht im ffmpeg-php Ordner aufrufen.

Stattdessen solltest du
1.) Dir den PHP source holen
2.) Ihn entpacken
3.) die ffmpeg extension dorthin kopieren
4.) dort (also im TOP-LEVEL Verzeichnis deines PHP sources) autoconf aufrufen.
Wenn ich dann aber phpsize ausführen möchte gibt es wieder einen Error:
Code:
 configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.See autoconf documentation.
Du brauchst phpize nicht aufzurufen. So wie ich das verstanden habe ist das mit dem phpize ein alternativer Weg die extension zu installieren, nämlich als shared library. Falls du diesen Weg dennoch gehen willst deutet die Fehlermeldung darauf hin das du libtool nicht installiert hast. Auf obiger Seite (rpmseek) sollte das Paket zu finden sein.

Gruß,
RedWing
 
So jetzt bin ich wieder ein stück weiter.Phpize funktioniert soweit. Nur wenn ich ./configure eingebe krieg ich jetzt den Fehler
Code:
configure:error: no accetable C compiler found in $PATH See config.log for more details,
Langsam aber sicher komme ich meinem Ziel immer näher ;)

Das deutet ganz stark darauf hin das du den gcc nicht installiert hast. Zu finden entweder in Yast oder bei rpmseek.

Gruß,
RedWing
 
Zurück