[How-to] Instalar codecs en Moblin 2.1

Caso que a alguien le interese :p llevo tiempo peleándome con ello y al final parece que lo he conseguido.
Es una putada que no se puedan instalar los codecs fácilmente desde los repositorios pero algo es algo, al menos ya puedo hacer algo más con el moblin.

1) Instalar dependencias:
sudo yum install gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel

2) Descargar fuentes de gstreamer:
Ir a http://gstreamer.freedesktop.org/src y descargar los siguientes paquetes:

· gstreamer-0.10.25.tar.gz
· gst-plugins-base-0.10.25.tar.gz
· gst-plugins-good-0.10.16.tar.gz
· gst-plugins-bad-0.10.16.tar.gz
· gst-plugins-ugly-0.10.16.tar.gz
· gst-ffmpeg-0.10.9.tar.gz

Una vez descargados, extraerlos todos. Nos quedarán 6 carpetas, cada una con el código fuente de cada uno de los paquetes.

3) Entrar en la carpeta del primer paquete (gstreamer) y ejecutar:
./configure --prefix=/usr
make
sudo make install

4) Repetir esos tres pasos en las carpetas de base, good, bad, ugly y ffmpeg.

5) Ya está. Por alguna razón no funcionó hasta que reinicié, pero ahora ya reproduce videos y mp3 perfectamente.
Muchisimas gracias, es una cagada tremenda que esto no venga de serie en una distribución como Moblin.

SaluDos!!
Por mi parte tengo muy poca idea de linux, asi que si lo que pregunto es una obviedad, lo siento...

el caso es que cuando paso a efectuar el ./configure --prefix=/usr
me sale un error como de que no encuentra ningun compilador de c

hay que poner alguna variable de entorno, especificar un path o bajarse en compilador de C?

Mis disculpas.
Que me corrijan si me equivoco pero deberías instalar gcc, si el problema es que necesitas un compilador de c [sonrisa]
Gracias rcaba

pero ahi tengo otro problema, es que no se como hacerlo.

Antes con knoppix lo hacia asi sudo apt-get install libc6-dev

pero ahora me dice el moblin que ese comando no lo conoce.

Lastima, con lo que me gusta este moblin y la guerra que da.

Gracias por vuestra ayuda. Pero sigo sin poder instalar los codecs. XD
Has hecho el primer paso del manual de instalar las dependencias?
rcaba escribió:Has hecho el primer paso del manual de instalar las dependencias?


Si, por supuesto, mira todo el proceso:

[Usuario1@Usuario1-desktop ~]$ sudo yum install gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for Usuario1:
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package gcc-4.3-1.80.moblin2.i586 already installed and latest version
Package flex-2.5.35-6.84.moblin2.i586 already installed and latest version
Package bison-2.4.1-3.25.moblin2.i586 already installed and latest version
Package make-3.81-19.3.moblin2.i586 already installed and latest version
Package diffutils-2.8.1-25.104.moblin2.i586 already installed and latest version
Package glib2-devel-2.20.1-4.3.moblin2.i586 already installed and latest version
Package pango-devel-1.24.1-1.6.moblin2.i586 already installed and latest version
Package cairo-devel-1.8.6-1.12.moblin2.i586 already installed and latest version
Package liboil-devel-0.3.15-1.19.moblin2.i586 already installed and latest version
Package alsa-lib-devel-1.0.20-1.3.moblin2.i586 already installed and latest version
Package libtheora-devel-1.0-6.20.moblin2.i586 already installed and latest version
Package libvorbis-devel-1.2.0-11.12.moblin2.i586 already installed and latest version
Package libogg-devel-1.1.3-15.24.moblin2.i586 already installed and latest version
Nothing to do
[Usuario1@Usuario1-desktop ~]$ cd Descargas
[Usuario1@Usuario1-desktop Descargas]$ ls -la
total 32
drwxr-xr-x  8 Usuario1 Usuario1 4096 ene 12 10:15 .
drwx------ 32 Usuario1 Usuario1 4096 ene 12 23:21 ..
drwxrwxrwx  8 Usuario1 Usuario1 4096 ene 12 23:19 gst-ffmpeg-0.10.9
drwxrwxrwx 12 Usuario1 Usuario1 4096 nov 17 02:24 gst-plugins-bad-0.10.17
drwxrwxrwx 14 Usuario1 Usuario1 4096 oct  5 14:52 gst-plugins-base-0.10.25
drwxrwxrwx 14 Usuario1 Usuario1 4096 nov 17 02:22 gst-plugins-good-0.10.17
drwxrwxrwx 11 Usuario1 Usuario1 4096 oct 21 18:07 gst-plugins-ugly-0.10.13
drwxrwxrwx 12 Usuario1 Usuario1 4096 oct  5 13:38 gstreamer-0.10.25
[Usuario1@Usuario1-desktop Descargas]$ cd gst-ffmpeg-0.10.9
[Usuario1@Usuario1-desktop gst-ffmpeg-0.10.9]$ ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking nano version... 0 (release)
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/i586-moblin-linux/bin/ld
checking if the linker (/usr/i586-moblin-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/i586-moblin-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i586-moblin-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: Using GStreamer FFMpeg source release as package name
configure: Using Unknown package origin as package origin
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether byte ordering is bigendian... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for valgrind... no
checking whether to build gtk-doc documentation... no
checking for gtkdoc-check... no
configure: Looking for Python version >= 2.1
checking for python... /usr/bin/python
checking "/usr/bin/python":... okay
checking local Python configuration... looks good
checking whether to build plugin documentation... no (gtk-doc disabled or not available)
checking for cos in -lm... yes
checking for ANSI C header files... (cached) yes
checking for GST... no
no
configure: No package 'gstreamer-0.10' found
configure: error: no gstreamer-0.10 >= 0.10.22 (GStreamer) found
[Usuario1@Usuario1-desktop gst-ffmpeg-0.10.9]$ ls -la
total 1404
drwxrwxrwx 8 Usuario1 Usuario1   4096 ene 12 23:24 .
drwxr-xr-x 8 Usuario1 Usuario1   4096 ene 12 10:15 ..
-rw-r--r-- 1 Usuario1 Usuario1  36878 oct  5 16:16 aclocal.m4
-rw-r--r-- 1 Usuario1 Usuario1     14 ene 21  2009 AUTHORS
-rwxr-xr-x 1 Usuario1 Usuario1   4194 sep 11 17:35 autogen.sh
-rw-r--r-- 1 Usuario1 Usuario1 162285 oct  5 16:30 ChangeLog
drwxrwxrwx 4 Usuario1 Usuario1   4096 oct  5 16:30 common
-rwxr-xr-x 1 Usuario1 Usuario1   3707 ene 21  2009 compile
-rwxr-xr-x 1 Usuario1 Usuario1  44892 mar 21  2009 config.guess
-rw-r--r-- 1 Usuario1 Usuario1   3555 ene 21  2009 config.h.in
-rw-rw-r-- 1 Usuario1 Usuario1  30991 ene 12 23:24 config.log
-rwxr-xr-x 1 Usuario1 Usuario1  33387 mar 21  2009 config.sub
-rwxr-xr-x 1 Usuario1 Usuario1 599003 oct  5 16:16 configure
-rw-r--r-- 1 Usuario1 Usuario1  13834 oct  5 16:28 configure.ac
-rw-r--r-- 1 Usuario1 Usuario1  18092 sep 11 23:32 COPYING
-rw-r--r-- 1 Usuario1 Usuario1  25265 sep 11 23:34 COPYING.LIB
-rwxr-xr-x 1 Usuario1 Usuario1  17867 ene 21  2009 depcomp
drwxrwxrwx 2 Usuario1 Usuario1   4096 oct  5 16:30 docs
drwxrwxrwx 5 Usuario1 Usuario1   4096 oct  5 16:30 ext
-rw-r--r-- 1 Usuario1 Usuario1    459 sep 11 17:35 ffmpegrev
-rw-r--r-- 1 Usuario1 Usuario1   8789 oct  5 16:28 gst-ffmpeg.doap
-rw-r--r-- 1 Usuario1 Usuario1   2113 oct  5 16:17 gst-ffmpeg.spec
-rw-r--r-- 1 Usuario1 Usuario1   2152 jun  5  2009 gst-ffmpeg.spec.in
drwxrwxrwx 3 Usuario1 Usuario1   4096 oct  5 16:30 gst-libs
-rw-r--r-- 1 Usuario1 Usuario1   9512 ene 21  2009 INSTALL
-rwxr-xr-x 1 Usuario1 Usuario1  13620 ene 21  2009 install-sh
-rwxr-xr-x 1 Usuario1 Usuario1 243454 oct  5 16:16 ltmain.sh
-rw-r--r-- 1 Usuario1 Usuario1    512 mar  6  2009 Makefile.am
-rw-r--r-- 1 Usuario1 Usuario1  27787 oct  5 16:17 Makefile.in
-rwxr-xr-x 1 Usuario1 Usuario1  11135 ene 21  2009 missing
-rw-r--r-- 1 Usuario1 Usuario1  10514 oct  5 16:28 NEWS
-rw-r--r-- 1 Usuario1 Usuario1    669 sep 11 23:35 README
drwxrwxrwx 4 Usuario1 Usuario1   4096 oct  5 16:30 tests
-rw-r--r-- 1 Usuario1 Usuario1    381 ene 21  2009 TODO
drwxrwxrwx 3 Usuario1 Usuario1   4096 oct  5 16:30 win32
[Usuario1@Usuario1-desktop gst-ffmpeg-0.10.9]$
[Usuario1@Usuario1-desktop gst-ffmpeg-0.10.9]$ make
make: *** No se especificó ningún objetivo y no se encontró ningún makefile.  Alto.
[Usuario1@Usuario1-desktop gst-ffmpeg-0.10.9]$ sudo make install
[sudo] password for Usuario1:
make: *** No hay ninguna regla para construir el objetivo `install'.  Alto.
[Usuario1@Usuario1-desktop gst-ffmpeg-0.10.9]$
zlagos escribió:Antes con knoppix lo hacia asi sudo apt-get install libc6-dev

pero ahora me dice el moblin que ese comando no lo conoce.




Es que Moblin no tiene aptitude. Sólo los basados en Debian lo tienen. Aptitude (apt-get) es un gestor de paquetes propios de los basados en Debian (como Ubuntu, Mint, Knoppix....)

Moblin usa yum. Si hubieras leído bien el primer mensaje, los habrías conseguido instalar:

sudo yum install gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel


kornshell, es importante que expliques los comandos, para que estas cosas no pasen.

sudo ejecuta la tarea con privilegios de administrador (evitad usar sudo para cosas que no hagan falta).
yum es el gestor de paquetes de Red Hat, y moblin, al estar basada en éste, usa yum (yum -> Yellow dog Updater Modified)
install el operador para el comando yum, le dice a yum que lo que quiere es instalar los paquetes escritos a continuación
gcc flex bison make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel los paquetes a instalar
Si te fijas maeseoki es lo que ha hecho [sonrisa] [sonrisa]
Me retracto de mi error entonces. Ahora lo que sí me parece raro es que pregunte por aptitude...
No si el instalar gcc lo he conseguido (al menos eso creo), pero si mirais el codigo que os pegue un poco mas arriba, pues luego no me deja seguir haciendo nada.

Ahi he puesto todo el proceso, con los aciertos y los fallos.

Gracias por la ayuda.
y no se puede instalar xine en vez de gstreamer?
pues no se, pero no lo he intentado
creo que al final ire a por el ubuntu moblin noseque que hay por ahi...

perdon, ubuntu moblin remix 9.10, ese es su nombre exacto...


ya os contare...
Existe un ubuntu moblin? que es ubuntu con la interfaz de moblin o que?
rcaba escribió:Existe un ubuntu moblin? que es ubuntu con la interfaz de moblin o que?

sip, espera, si lo busco, te doy el enlace...


aqui lo tienes


http://cdimage.ubuntu.com/ubuntu-moblin ... x-i386.iso

me lo baje y mañana lo probare, ya te cuento...
Muchas gracias zlagos, yo no soy usuario para este tipo de escritorios, utilizo escritorios normales ahora mismo KDE4.3, pero de todas maneras le echaré un vistazo ya que tiene una buena interfaz habrá que verla en funcionamiento.

PD: Me gustaría tener un netbook para meterle distribuciones de estas [poraki] [poraki]
15 respuestas