tutorials.de Buch-Aktion 05/2012
Seite 1 von 2 12 LetzteLetzte
ERLEDIGT
JA
ANTWORTEN
15
ZUGRIFFE
5399
EMPFEHLEN
  • An Twitter übertragen
  • An Facebook übertragen
AUF DIESES THEMA
ANTWORTEN
  1. #1
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    Hallo Gemeinde,
    ich versuche jetzt schon seit gestern ffmpeg-php zum laufen zu bringen,ader ich scheiter jedesmal. In der Anleitung steht folgendes:
    Code :
    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)
    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
     

  2. #2
    Registriert seit
    Oct 2003
    Beiträge
    1.706
    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
     
    "I'm not deaf, I'm ignoring you"
    ----

  3. #3
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    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
     

  4. #4
    Registriert seit
    Oct 2003
    Beiträge
    1.706
    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"
    ----

  5. #5
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    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?
     

  6. #6
    Registriert seit
    Oct 2003
    Beiträge
    1.706
    Zitat Zitat von jojojan Beitrag anzeigen
    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
     
    "I'm not deaf, I'm ignoring you"
    ----

  7. #7
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    Ja wenn ich autoconf eingeben sagt er immer no input file.
    Den ffmpeg Ordner habe ich jetzt nach
    Code :
    1
    
    /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 :
    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.
    So und wenn ich dann versuche ./configure auszuführen sagt er mir:
    Code :
    1
    
    configure: error: cannot run /bin/sh ./configure.sub
    Langsam bin ich echt am verzweifeln
     

  8. #8
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    So jetzt bin ich wieder ein stück weiter.Phpize funktioniert soweit. Nur wenn ich ./configure eingebe krieg ich jetzt den Fehler
    Code :
    1
    
    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
     

  9. #9
    Registriert seit
    Oct 2003
    Beiträge
    1.706
    Zitat Zitat von jojojan Beitrag anzeigen
    Ja wenn ich autoconf eingeben sagt er immer no input file.
    Den ffmpeg Ordner habe ich jetzt nach
    Code :
    1
    
    /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 :
    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.
    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 :
    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.
    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
     
    "I'm not deaf, I'm ignoring you"
    ----

  10. #10
    Registriert seit
    Oct 2003
    Beiträge
    1.706
    Zitat Zitat von jojojan Beitrag anzeigen
    So jetzt bin ich wieder ein stück weiter.Phpize funktioniert soweit. Nur wenn ich ./configure eingebe krieg ich jetzt den Fehler
    Code :
    1
    
    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
    vault-tec bedankt sich. 
    "I'm not deaf, I'm ignoring you"
    ----

  11. #11
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    Ich hab den gcc jetzt nachinstalliert. Wenn ich jetzt ./configure eingebe kommt:
    Code :
    1
    
    configure: error: ffmpeg headers not found. Make sure you have built ffmpeg as shared libs using the --enable-shared option
    Wenn ich dann ./configure --enable-shared --prefix=/usr angebe kommt genau das gleiche.
     

  12. #12
    Registriert seit
    Oct 2003
    Beiträge
    1.706
    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"
    ----

  13. #13
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    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:
    Code :
    1
    
    ffmpeg: symbol lookup error: ffmpeg: undefined symbol: sws_getContext
    Was hat das nun zu sagen?
    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)
     

  14. #14
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    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
    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
    Laut der Fehlermeldung ist wohl die bitrate zu niedrig eingestellt,aber wo kann ich die ändern?
    Geändert von jojojan (03.01.08 um 00:47 Uhr)
     

  15. #15
    jojojan jojojan ist offline Mitglied Bronze
    Registriert seit
    Nov 2007
    Beiträge
    48
    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!!
    vault-tec bedankt sich. 

Ähnliche Themen

  1. ffmpeg + aac
    Von OnlyFoo im Forum Videoschnitt, Videotechnik & -produktion
    Antworten: 1
    Letzter Beitrag: 07.08.09, 20:03
  2. ffmpeg in PHP?
    Von jackie05 im Forum PHP
    Antworten: 0
    Letzter Beitrag: 21.12.08, 13:58
  3. Problem mit FFMPEG
    Von Lyria im Forum Videoschnitt, Videotechnik & -produktion
    Antworten: 0
    Letzter Beitrag: 19.08.08, 17:27
  4. ffmpeg-php installationsproblem
    Von smart001 im Forum Linux & Unix
    Antworten: 1
    Letzter Beitrag: 11.10.07, 19:24
  5. Ffmpeg
    Von Kurt Cobain im Forum Linux & Unix
    Antworten: 5
    Letzter Beitrag: 06.12.06, 16:30