Foros del Web » Programando para Internet » PHP »

ffmpeg

Estas en el tema de ffmpeg en el foro de PHP en Foros del Web. hola ! a todos, quisiera saber si alguno de ustedes ha logrado poder instalar este software en un server remoto linux creo haber instalado todos ...
  #1 (permalink)  
Antiguo 16/05/2007, 13:55
Avatar de santoinocente  
Fecha de Ingreso: agosto-2006
Ubicación: buenos aires. argentina.
Mensajes: 59
Antigüedad: 17 años, 9 meses
Puntos: 0
ffmpeg

hola ! a todos,

quisiera saber si alguno de ustedes ha logrado poder instalar este software en un server remoto linux

creo haber instalado todos los paquetes de forma correcta

pero al momento de hacer el MAKE me da el siguiente error:


make -C libavcodec all
make[1]: Entering directory `/home/secreto/tmp/ffmpeg-0.4.9-pre1/libavcodec'
gcc -O3 -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
In file included from avcodec.h:14,
from common.c:28:
common.h:67: error: el tipo matriz tiene tipo de elemento incompleto
common.h:71: error: el tipo matriz tiene tipo de elemento incompleto
make[1]: *** [common.o] Error 1
make[1]: Leaving directory `/home/secreto/tmp/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Error 2
[root@secreto /home/secreto/tmp/ffmpeg-0.4.9-pre1] # make install
make -C libavcodec all
make[1]: Entering directory `/home/secreto/tmp/ffmpeg-0.4.9-pre1/libavcodec'
gcc -O3 -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
In file included from avcodec.h:14,
from common.c:28:
common.h:67: error: el tipo matriz tiene tipo de elemento incompleto
common.h:71: error: el tipo matriz tiene tipo de elemento incompleto
make[1]: *** [common.o] Error 1
make[1]: Leaving directory `/home/secreto/tmp/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Error 2


----------------------------------------------------------------


ojala alguno pueda darme una mano, es muy importante

gracias
  #2 (permalink)  
Antiguo 16/05/2007, 14:37
Avatar de claudiovega  
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Re: ffmpeg

Que distribución de Linux usas?
  #3 (permalink)  
Antiguo 16/05/2007, 15:43
Avatar de santoinocente  
Fecha de Ingreso: agosto-2006
Ubicación: buenos aires. argentina.
Mensajes: 59
Antigüedad: 17 años, 9 meses
Puntos: 0
Re: ffmpeg

en realidad yo uso windows...
pero en el server que intento compilar este soft, si mal no recuerdo, es fedora...
puede tener algo que ver la distribución ¿?

muchas gracias por tu respuesta
  #4 (permalink)  
Antiguo 16/05/2007, 16:19
Avatar de claudiovega  
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Re: ffmpeg

La distribución tiene algo que ver en el tema de instalar de manera mas fácil el software y no pelear con las dependencias, al usar gestores de pquetes.
Ejemplo, en ubuntu haces: sudo apt-get install ffmpeg y ya lo tienes, deja ver si existe en fedora el paquete como para instalarlo con yum.
  #5 (permalink)  
Antiguo 16/05/2007, 16:21
Avatar de claudiovega  
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Re: ffmpeg

Me parece que existe, segun esto (un ejemplo para centos, que es un clon de redhat)

http://www.centos.org/modules/newbb/...?topic_id=3660

Es decir, instala/configura yum y haz lo que allí te sugiere.

En todos los foros te dirán esto: no es recomendable andar compilando, existiendo gestores de paquetes.
  #6 (permalink)  
Antiguo 17/05/2007, 09:04
Avatar de santoinocente  
Fecha de Ingreso: agosto-2006
Ubicación: buenos aires. argentina.
Mensajes: 59
Antigüedad: 17 años, 9 meses
Puntos: 0
Re: ffmpeg

muchas gracias!

cómo te habras dado cuenta soy novato en lo que respecta a linux
yum es un gestor de paquetes ¿?

en las pruebas que hice utilice yum...

adjunto los pasos que segui para intentar instalar ffmpeg, antes te comento que anteriormente, intente instlarlo sin antes instalar ningún paquete, y lo extraño es que me continua dando el mismo error !


FFMPEG INSTALLATION FROM SOURCE
installed by:
Robertas Dereskevicius
Edited by Jon Nikolakakis
OS/ Fedora Core 5

Summary
download and install:
libffac
libffad2
xvid
libogg,libvorbis
mp3lame
ffmpeg

Setting Up Install Folder, Logging and download Packages
1)Log into ssh
2) cd /usr/src && mkdir install && cd install
3) Download faad2 and faac
from http://faac.sourceforge.net/oldsite/download.php get Faad2 and faac (new versions)

wget http://prdownloads.sourceforge.net/f...ar.gz?download
wget http://prdownloads.sourceforge.net/f...ar.gz?download

4) Verify that you have these components are installed
rpm -qa automake
rpm -qa autoconf
rpm -qa libtool
rpm -qa m4
rpm -qa gcc-c++

If any are missing than simply yum install (packagename), if you dont have a package manager than get one, it will save you alot of time
and headaches.

Installing Faac
5)tar -zxvf faac-1.24.tar.gz && cd faac
6) sh bootstrap
7) ./configure
8) make
9) make install
10) cd ..

Installing Faad2
11) tar -zxvf faad2-2.0.tar.gz
12) cd faad2 && less README.linux
13) There is 2 bugs with this package, so need to manually edit these files
14) nano Makefile.am
Edit the file to look like this
SUBDIRS = libfaad common frontend plugins
EXTRA_DIST = faad2.spec

15) cd common/mp4ff && nano mp4ffint.h
16) Comment out this line
//void mp4ff_track_add(mp4ff_t *f);

17)Save file and cd ../..
18)autoreconf -vif
19) ./configure
20) make
21) make install

Installing Libogg and Libvorbis
22)cd .. and then Check to see if libogg and libvorbs
rpm -qa libogg-devel
rpm -qa libvorbis-devel
rpm -qa libncurses-devel

If not installed then simply Package Install (replace yum and install settings with your package manager)
yum install libogg-devel
yum install libvorbis-devel
yum install libncurses-devel

Installing LAME (for audio)
23)go into lame sourceforge - http://sourceforge.net/project/showf...package_id=309
24)wget http://mesh.dl.sourceforge.net/sourc...me-3.97.tar.gz
25)tar -zxvf lame-3.97.tar.gz
26)cd lame*
27) ./configure; make;make install

Installing Xvid
28) cd .. && wget http://downloads.xvid.org/downloads/...e-1.1.2.tar.gz
29)tar -zxvf xvidcore-1.1.2.tar.gz && cd xvid*/build/generic/
30) ./configure; make; make install;
31) cd ../../..

Installing ffmpeg
32) rpm -q subversion If not install, then install subversion
33)svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg && cd ffmpeg
34) ./configure --enable-shared --enable-xvid --enable-vorbis --enable-libogg --enable-mp3lame --enable-gpl --enable-faad --enable-faac --enable-a52
35)make
36)make install

If Installation went ok, run
ldd ./ffmpeg
If Path to Lib Libraries are not ok

37)Check to see if /usr/local/lib exists on this file
cat /etc/ld.so.conf

If not
echo /usr/local/lib >>/etc/ld.so.conf

38) cat/etc/ld.so.conf Now check to see if (/usr/local/lib exist)
39) save file
40) ldconfig
41) run ldd ./ffmpeg

FFmpeg should be complete and installed. On some servers you may need to add Disable Shared and enable flags.

---------------------------------------------------------------------------

te agradezco,
voy a el link que me adjuntaste !

vuelvo a escribir

un abrazo
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:09.