Здравствуйте.
Уже давно занимался созданием и настройкой Веб сервера. Но все время делал это на Windwos server. Но тут по техническим причинам пришлось перейти на linux. Mandriva linux выбрал потому что с ней уже работал и ориентировался нормально в ней. Но тут у меня возникла проблема с настройкой FFMPEG на сервере. Оно установлено но я понял что его как в Windows нужно прописывать в php.ini и добавлять соответствующую библиотеку(так она звалась в Windows). Как я увидел все extensions здесь представлены в расширении so как в Windows они были dll. В долгих поисках по интернету я не нашел соответствующего дополнения и инструкции как можно его "прикрутить" к серверу. Возможно вы знаете решение этой проблемы.
Сервер Apache2 интерпретатор PHP5. Остальное думаю не нужно.
Установка и настройка FFMPEG на Linux Mandriva 2010
Про вашу проблему я не понял. Про расширения - у нас их нет. Просто так файл называется с точкой посередине.
Повторюсь немного. Сервер при помощи FFMPEG должен конвертировать видео..... вообще это видео хостинг. Но в Windows в директорию ext(по умолчанию она так зовется) добавляется библиотека php_ffmpeg.dll. В Linux я увидел что тоже есть такая же директория только там другие виды файлов. Ведь если не подключить этот модуль в PHP то сервер не сможет работать с FFMPEG. Только я не нашел инструкции где взять необходимый модуль и нужно ли еще какие то дополнительные компоненты добавлять.
Все находится в репозиториях - с ними поняли как работать?. Как подключать - читайте описание программы или может вам здесь подскажут.
у меня этот пакте зовёться php5-ffmpeg, ищите в системе с помощью пакетного менеджера.
у меня этот пакте зовёться php5-ffmpeg, ищите в системе с помощью пакетного менеджера.
Поискал в системе так как Вы и говорили. Не нашел. Возможно у него есть и какие то другие названия. Искал в интернете но не нашел все равно подходящего материала. Может кто настраивал напишет как. Буду благодарен за любую помощь.
http://rpm.pbone.net/index.php3/stat/4/idpl/4313436/dir/mandriva_2006/com/php-ffmpeg-5.0.4_0.4.2-1mdk.i586.rpm.html
ProKosmos, я даже не имея мандривы под рукой нашел, может попробуете поискать еще раз?
Спасибо. Благодарен. Искал по тому запросу что Вы написали PHP5 вот по этому видно и не нашел.
Вот так и не смог настроить. Как я понял ему не хватает enable shared option. Но FFMPEG собран с этой опцией. Вот код. Не могу понять в чем проблема.
ffmpeg
[root@localhost ffmpeg]# ffmpeg
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --enable-x11grab --enable-swscale
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Sep 2 2009 04:51:23, gcc: 4.4.1
At least one output file must be specified
Когда собираю ffmpeg-php
[root@localhost ffmpeg]# phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: You should add the contents of the following files to `aclocal.m4':
libtoolize: `/usr/share/aclocal/libtool.m4'
libtoolize: `/usr/share/aclocal/ltoptions.m4'
libtoolize: `/usr/share/aclocal/ltversion.m4'
libtoolize: `/usr/share/aclocal/ltsugar.m4'
libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
[root@localhost ffmpeg]# ./configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/extensions
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers...
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option