-
Hallo Gemeinde,
ich versuche jetzt schon seit gestern ffmpeg-php zum laufen zu bringen,ader ich scheiter jedesmal. In der Anleitung steht folgendes:
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 klappenCode :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
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)

Ich bin langsam echt am verzweifeln,ich hoffe mir kann jemand ein paar Tipps geben.
Denn ich hab von Linux null Ahnung
-
Hallo,
Diese Fehlermeldung ist doch eigtl. selbsterklärendAber es fängt schon bei dem Befehl autoconf. den will er gar nicht annehmen dann kommt immer command not found.
Du gehst in Yast, suchst nach dem Paket autoconf und installierst es.
Gruß,
RedWing"I'm not deaf, I'm ignoring you"
----
-
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...:0:0:0:3457782
ist zwar für Suse 10.2 sollte aber evtl. auch funktionieren.
Downloaden und dann mit
Code :1
rpm -i paketname.rpm
installieren.
Gruß,
RedWing"I'm not deaf, I'm ignoring you"
----
-
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?
Du musst im Toplevel Verzeichnis deiner PHP Sourcen sein und dann autoconf ausführen. Ansonsten findet er die Datei configure.ac (bzw .in) nicht.Run autoconf in your php source directory to update the configure script.
1. cd /path/to/php_sources
2. autoconf
Gruß,
RedWing"I'm not deaf, I'm ignoring you"
----
-
Ja wenn ich autoconf eingeben sagt er immer no input file.
Den ffmpeg Ordner habe ich jetzt nachkopiert.Code :1
/opt/lampp/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg-php
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:
So und wenn ich dann versuche ./configure auszuführen sagt er mir:Code :1 2
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.
Langsam bin ich echt am verzweifelnCode :1
configure: error: cannot run /bin/sh ./configure.sub
-
So jetzt bin ich wieder ein stück weiter.Phpize funktioniert soweit. Nur wenn ich ./configure eingebe krieg ich jetzt den Fehler
Langsam aber sicher komme ich meinem Ziel immer näherCode :1
configure:error: no accetable C compiler found in $PATH See config.log for more details,
-
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.
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.Wenn ich dann aber phpsize ausführen möchte gibt es wieder einen Error:
Code :1 2
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.
Gruß,
RedWing"I'm not deaf, I'm ignoring you"
----
-
"I'm not deaf, I'm ignoring you"
----
-
Ich hab den gcc jetzt nachinstalliert. Wenn ich jetzt ./configure eingebe kommt:
Wenn ich dann ./configure --enable-shared --prefix=/usr angebe kommt genau das gleiche.Code :1
configure: error: ffmpeg headers not found. Make sure you have built ffmpeg as shared libs using the --enable-shared option
-
Hallo,
dir fehlt höchstwahrsch. folgendes Paket
http://rpm.pbone.net/index.php3/stat....i586.rpm.html
Gruß,
RedWing"I'm not deaf, I'm ignoring you"
----
-
So ich hab nun ffmpeg und ffmpeg-php installiert,also jedenfalls gabs keiner Fehler bei der Installation
.
Aber da kommt auch schon mein neues Problem(tut mir leid)
Wenn ich jetzt ffmpeg in die Konsole eingebe kommt:
Was hat das nun zu sagen?Code :1
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: sws_getContext
Ich hab ffmpeg jetzt auch mal deinstalliert und wieder installiert doch keine Änderung.Bevor ich ffmpeg-php installiert hab lief es noch.Geändert von jojojan (02.01.08 um 22:51 Uhr)
-
So das Problem hab ich nun auch gelöst.Es lag daran dass ich zwei verschiedene Ffmpeg Versionen laufen hatte.Die eine in /usr/bin/ und die andere in /local/usr/bin. Also das läuft jetzt wieder.
Aber wie immer hab ich jetzt wieder ein neues Problem.
Ich habe mir ein Youtube Clone Script bei ebay gekauft, wenn ich jetzt ein Video uploade, erzeugt er mir auch die thumbs aber nicht das Video.Bei der Installation musste ich ein Ffmpeg Binary angeben, dafür hab ich /usr/bin genommen weil dort ja die Ffmpeg Datei drin ist. Oder muss ich vielleicht was anderes angeben?
Und in der log von Xampp steht dann folgendes
Laut der Fehlermeldung ist wohl die bitrate zu niedrig eingestellt,aber wo kann ich die ändern?Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14
FFmpeg version SVN-r11346, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaad --enable-libfaac --enable-libxvid --enable-liba52 --enable-swscaler --enable-pp --enable-gpl --enable-vhook --enable-x11grab --enable-libgsm --enable-libx264 --enable-libamr-nb --enable-libamr-wb --enable-libdc1394 libavutil version: 49.6.0 libavcodec version: 51.49.0 libavformat version: 52.3.0 built on Dec 29 2007 07:56:38, gcc: 4.2.1 (SUSE Linux) Input #0, mpeg, from '/opt/lampp/htdocs/videoportal/video/13.avi': Duration: 00:00:09.6, start: 0.177778, bitrate: 183 kb/s Stream #0.0[0x1c0]: Audio: mp2, 32000 Hz, mono, 32 kb/s Stream #0.1[0x1e0]: Video: mpeg1video, yuv420p, 160x112 [PAR 1:1 DAR 10:7], 104857 kb/s, 25.00 tb(r) WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s Unknown encoder 'mp3' [Thu Jan 03 01:28:53 2008] [error] [client **.**.**.**] File does not exist: /opt/lampp/htdocs/videoportal/flvideo/13.jpg [Thu Jan 03 01:28:54 2008] [error] [client **.**.**.**] File does not exist: /opt/lampp/htdocs/videoportal/flvideo/13.flv
Geändert von jojojan (03.01.08 um 00:47 Uhr)
-
So den Fehler konnte ich nun auch beheben,es lag daran das kein MP3 Codec installiert war. Aber jetzt funktioniert es einwandfrei.
Nochmals vielen Dank für deine hilfe RedWing.
Echt SUPER NETT VON DIR!!
Ähnliche Themen
-
ffmpeg + aac
Von OnlyFoo im Forum Videoschnitt, Videotechnik & -produktionAntworten: 1Letzter Beitrag: 07.08.09, 20:03 -
ffmpeg in PHP?
Von jackie05 im Forum PHPAntworten: 0Letzter Beitrag: 21.12.08, 13:58 -
Problem mit FFMPEG
Von Lyria im Forum Videoschnitt, Videotechnik & -produktionAntworten: 0Letzter Beitrag: 19.08.08, 17:27 -
ffmpeg-php installationsproblem
Von smart001 im Forum Linux & UnixAntworten: 1Letzter Beitrag: 11.10.07, 19:24 -
Ffmpeg
Von Kurt Cobain im Forum Linux & UnixAntworten: 5Letzter Beitrag: 06.12.06, 16:30



2Danke

Zitieren
Login





