alguien lo ha probado en una raspberry pi 2 ?
saludos
Como instalar Ultrastar (clon de SingStar) en la raspberry pi
-
- Pi Alpha
- Mensajes: 24
- Registrado: 10 Ene 2017, 20:00
- Agradecido: 0
- Agradecimiento recibido: 0
Mirad lo que he encontrado
aqui: https://github.com/UltraStar-Deluxe/USDX/issues/229
Tiene pinta que con esa configuracion ya se podria ejecutar videos en 720p fluidos
(y cambiando las configuraciones de los encoders a --enable-enconders para poder ejecutar el script)
que os parece?
mañana si tengo tiempo lo pruebo, aunque igualmente dad vuestra opinion a ver si lo petamos ^^ :P
aqui: https://github.com/UltraStar-Deluxe/USDX/issues/229
Tiene pinta que con esa configuracion ya se podria ejecutar videos en 720p fluidos

que os parece?
mañana si tengo tiempo lo pruebo, aunque igualmente dad vuestra opinion a ver si lo petamos ^^ :P
- CapNida
- Pi Omega
- Mensajes: 96
- Registrado: 01 Dic 2016, 09:43
- Agradecido: 1 vez
- Agradecimiento recibido: 1 vez
Muchas Gracias @chuloplaya . A ver si lo puedo probar yo también y modifico el script incluyendo esa compilación.
Si esa configuración funciona, no sería necesario ejecutar el script para modificar los vídeos, ya que los movería sin problemas a buena calidad.
Si esa configuración funciona, no sería necesario ejecutar el script para modificar los vídeos, ya que los movería sin problemas a buena calidad.
-
- Pi Alpha
- Mensajes: 24
- Registrado: 10 Ene 2017, 20:00
- Agradecido: 0
- Agradecimiento recibido: 0
Bueno, depende, ya que si los videos estan a 1080P entonces no...
- CapNida
- Pi Omega
- Mensajes: 96
- Registrado: 01 Dic 2016, 09:43
- Agradecido: 1 vez
- Agradecimiento recibido: 1 vez
Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.
Código: Seleccionar todo
########################VARIABLES###############################
export ROJO="\033[1;31m"
export AZUL="\033[1;36m"
export VERDE="\033[1;32m"
export NEGRO="\033[0m"
INSTALAR_FFMPEG=s
INSTALAR_FREEPASCAL=s
MENU=100
################################################################
rm -Rf /tmp/*
while [ $MENU != 0 ]
do
clear
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${ROJO} MENU INSTALACION ${NEGRO}"
echo -e "${ROJO}------------------------${NEGRO}"
echo -e "${AZUL}1) Instalar dependencias${NEGRO}"
echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}"
echo -e "${AZUL}3) Instalar freepasacal${NEGRO}"
echo -e "${AZUL}4) Instalar ultrastar${NEGRO}"
echo -e "${AZUL}5) Crear acceso directo en el escritorio${NEGRO}"
echo -e "${AZUL}0) Salir${NEGRO}"
echo -e "${ROJO}Escoge una opcion:${NEGRO}"
read OPCION
case $OPCION in
1)
echo -e "${AZUL}--------------------${NEGRO}"
echo -e "${AZUL}Actualizando sistema${NEGRO}"
echo -e "${AZUL}--------------------${NEGRO}"
sudo apt-get -y update
echo -e "${AZUL}----------------------${NEGRO}"
echo -e "${AZUL}Instalando dependencia${NEGRO}"
echo -e "${AZUL}----------------------${NEGRO}"
sudo apt-get -y install automake
sudo apt-get -y install libpng12-0
sudo apt-get -y install libpng12-dev
sudo apt-get -y install libsdl2-dev
sudo apt-get -y install libsdl2-2.0-0
sudo apt-get -y install libsdl2-gfx-1.0-0
sudo apt-get -y install libsdl2-gfx-dev
sudo apt-get -y install libsdl2-image-2.0-0
sudo apt-get -y install libsdl2-image-dev
sudo apt-get -y install libsdl2-mixer-2.0-0
sudo apt-get -y install libsdl2-mixer-dev
sudo apt-get -y install libsdl2-net-2.0-0
sudo apt-get -y install libsdl2-net-dev
sudo apt-get -y install libsdl2-ttf-2.0-0
sudo apt-get -y install libsdl2-ttf-dev
sudo apt-get -y install portaudio19-dev
sudo apt-get -y install liblua5.1-0
sudo apt-get -y install liblua5.1-0-dev
sudo apt-get -y install libsqlite3-0
sudo apt-get -y install libsqlite3-dev
sudo apt-get -y install git
sudo apt-get -y install fpc
sudo apt-get -y install fpc-source
sudo apt-get -y install fpc-2.6.4
sudo apt-get -y install fpc-source-2.6.4
sudo apt-get -y install libass-dev
sudo apt-get -y install libmp3lame-dev
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx264-dev
sudo apt-get -y install libbz2-dev
sudo aptitude install build-essential
;;
2)
ffmpeg -version
FFMPEG_INSTALADO=$?
if [ $FFMPEG_INSTALADO -eq 0 ]
then
echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}"
echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
read INSTALAR_FFMPEG
case $INSTALAR_FFMPEG in
s)
wget -P /tmp/ http://ffmpeg.org/releases/
mv /tmp/index.html /tmp/ffmpeg_versions
cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
read FFMPEG_VERSION
cd /tmp/
wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
;;
*)
echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}"
;;
esac
else
wget -P /tmp/ http://ffmpeg.org/releases/
mv /tmp/index.html /tmp/ffmpeg_versions
cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}'
echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}"
read FFMPEG_VERSION
wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION}
fi
case $INSTALAR_FFMPEG in
s)
cd /tmp
tar -zxvf ${FFMPEG_VERSION}
#tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
echo -e "${AZUL}------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}"
echo -e "${AZUL}------------------------------${NEGRO}"
echo "Pulsa INTRO para continuar"
read TECLA
FFMPEG_DIR=`echo ${FFMPEG_VERSION} | sed 's/.tar.gz//g'`
cd /tmp/${FFMPEG_DIR}
#./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr
#./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr
#./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
make -j4
sudo make install
which ffmpeg
case $? in
0)
VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'`
VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'`
if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
then
echo -e "${ROJO}Error en la compilación de ffmpeg"
echo -e "Version instalada ${VERSION_INSTALADA}"
echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
exit 1
else
echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}"
fi
;;
*)
echo -e "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}"
;;
esac
;;
*)
echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}"
;;
esac
;;
3)
fpc -iV
FREEPASCAL_INSTALADO=$?
if [ $FREEPASCAL_INSTALADO -eq 0 ]
then
echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal"
echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}"
read INSTALAR_FREEPASCAL
case $INSTALAR_FREEPASCAL in
s)
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
mv /tmp/index.html /tmp/freepascal_versions
cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort
echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
read FREEPASCAL_VERSION
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
cd /tmp/
tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
;;
*)
echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}"
;;
esac
else
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/
mv /tmp/index.html /tmp/freepascal_versions
cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort
echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}"
read FREEPASCAL_VERSION
wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz
cd /tmp/
tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz
fi
case $INSTALAR_FREEPASCAL in
s)
echo -e "${AZUL}----------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}"
echo -e "${AZUL}----------------------------------${NEGRO}"
echo "Pulsa INTRO para continuar"
read tecla
cd /tmp/fpcbuild-${FREEPASCAL_VERSION}
make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build
sudo make NOGDB=1 install
sudo unlink /usr/bin/ppcarm
sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION}
sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm
which fpc
case $? in
0)
VERSION_INSTALADA=`fpc -iV`
VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}`
if [ $VERSION_INSTALADA != $VERSION_COMPILADA ]
then
echo -e "${ROJO}Error en la compilación de freepascal"
echo -e "Version instalada ${VERSION_INSTALADA}"
echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}"
exit 1
else
echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}"
fi
;;
*)
echo -e "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}"
;;
esac
;;
*)
echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}"
;;
esac
;;
4)
which ultrastardx
ULTRASTAR_INSTALADO=$?
case $ULTRASTAR_INSTALADO in
0)
echo -e "${ROJO}Ya hay una version de ultrastar instalada"
echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}"
read INSTALA_ULTRASTAR
;;
*)
INSTALA_ULTRASTAR=s
;;
esac
#if [ $INSTALA_ULTRASTAR == s ]
#then
echo -e "${AZUL}1) Version estable (Agosto 2017)"
echo -e "2) Ultima version (no estable)"
echo -e "3) Version diciembre 2016 (no estable)"
echo -e "Que version de Ultrastar quieres descargar?"
read VERSION
case $VERSION in
2)
echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}"
cd /tmp
git clone https://github.com/UltraStar-Deluxe/USDX.git
;;
3)
echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}"
cd /tmp
git clone https://github.com/UltraStar-Deluxe/USDX.git
cd /tmp/USDX
git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master`
;;
*)
echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}"
cd /tmp
wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz
tar -zxvf v2017.8.0.tar.gz
mv USDX-2017.8.0 USDX
;;
esac
echo -e "${AZUL}---------------------------------${NEGRO}"
echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}"
echo -e "${AZUL}---------------------------------${NEGRO}"
echo -e "Pulsa INTRO para continuar"
read TECCLA
cd /tmp/USDX
./autogen.sh
./configure --prefix=/usr
cd src
sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2
mv Makefile Makefile.orig
mv Makefile.mod2 Makefile
sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so
sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so
make -j4
cd /tmp/USDX
sudo make install
#else
# echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}"
#fi
;;
5)
wget -P /tmp/ http://i.imgur.com/JtmXso1.png
sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png
cd /home/pi/Desktop
touch ultrastar.desktop
echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop
echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop
echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop
echo "Terminal=false" >> /home/pi/Desktop/ultrastar.desktop
echo "Name=ultrastar" >> /home/pi/Desktop/ultrastar.desktop
echo "Categories=Games;" >> /home/pi/Desktop/ultrastar.desktop
echo "Exec=/usr/bin/ultrastardx" >> /home/pi/Desktop/ultrastar.desktop
echo "Comment=Ultrastar" >> /home/pi/Desktop/ultrastar.desktop
echo "Icon=/usr/share/icons/ultra.png" >> /home/pi/Desktop/ultrastar.desktop
chmod 755 /home/pi/Desktop/ultrastar.desktop
;;
0)
echo -e "${ROJO}Saliendo${NEGRO}"
exit 1
;;
esac
done
Última edición por CapNida el 28 Dic 2017, 09:10, editado 1 vez en total.
-
- Pi Alpha
- Mensajes: 14
- Registrado: 23 Dic 2017, 23:20
- Agradecido: 0
- Agradecimiento recibido: 0
hola a todos,
he intentado instalar ultrastar con los script....con el de menu, he hecho los 5 pasos...ha estado muuuucho tiempo haciendo cosas, pero al acabar, cuando ejecuto el icono de escritorio aparece el error que adjunto en la foto, a parte de esto...no encuentro ninguna carpeta ultrastar :'(
no se que es lo que estoy haciendo mal....alguna ayuda por favoorr???
muchas gracias!!
he intentado instalar ultrastar con los script....con el de menu, he hecho los 5 pasos...ha estado muuuucho tiempo haciendo cosas, pero al acabar, cuando ejecuto el icono de escritorio aparece el error que adjunto en la foto, a parte de esto...no encuentro ninguna carpeta ultrastar :'(
no se que es lo que estoy haciendo mal....alguna ayuda por favoorr???
muchas gracias!!
-
- Pi Alpha
- Mensajes: 24
- Registrado: 10 Ene 2017, 20:00
- Agradecido: 0
- Agradecimiento recibido: 0
Has intentado entrar desde terminal?
-
- Pi Newbie
- Mensajes: 7
- Registrado: 22 Sep 2017, 22:36
- Agradecido: 0
- Agradecimiento recibido: 0
me pasa lo mismo que al amigo masing.mansig escribió:hola a todos,
he intentado instalar ultrastar con los script....con el de menu, he hecho los 5 pasos...ha estado muuuucho tiempo haciendo cosas, pero al acabar, cuando ejecuto el icono de escritorio aparece el error que adjunto en la foto, a parte de esto...no encuentro ninguna carpeta ultrastar :'(
no se que es lo que estoy haciendo mal....alguna ayuda por favoorr???
muchas gracias!!
el mismo error.
hago tos los pasos OK
pero al iniciar me da error
"achivo de entrada de escritorio no valido"
y por terminal me da e que "no existe fichero o directorio"
instale raspbian desde NOOBS ...un menú donde venían 2 sistemas y al conectar a internet me daba mas opciones.
lo estoy haciendo desde un RASPBERRY PI2 B
Saludos y feliz navidad a todos.
-
- Pi Alpha
- Mensajes: 14
- Registrado: 23 Dic 2017, 23:20
- Agradecido: 0
- Agradecimiento recibido: 0
hola, he vuelto a instalar Raspbian de 0,yo uso BerryBoot, he hecho los pasos del #68236 de Fire_Fox pero usando el ultimo script de CapNida, y nada igual, mismo resultado.... he instalado todas las opciones del Menu, y aparentemente bien, pero no crea nada.... :(chuloplaya escribió:Has intentado entrar desde terminal?
he instalado el ffmpeg 3.3.3 y freepascal 3.0.0..........
intento seguir el script paso a paso de instalación de USDX, y da estos fallos:
pi@raspberrypi:/tmp/USDX $ ./configure --prefix=/usr
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for fpc... fpc
checking for fpcmake... fpcmake
checking version of fpc... [Error: ppcarm can't be executed, error message: Failed to execute "ppcarm", error code: 127]
./configure: line 2979: test: too many arguments
checking whether the Free Pascal Compiler works... no
configure: error: installation or configuration problem: Cannot create executables.
pi@raspberrypi:/tmp/USDX $ cd src
pi@raspberrypi:/tmp/USDX/src $ sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod
pi@raspberrypi:/tmp/USDX/src $ sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2
pi@raspberrypi:/tmp/USDX/src $ mv Makefile Makefile.orig
pi@raspberrypi:/tmp/USDX/src $ mv Makefile.mod2 Makefile
pi@raspberrypi:/tmp/USDX/src $ sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so
pi@raspberrypi:/tmp/USDX/src $ sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so
pi@raspberrypi:/tmp/USDX/src $ make -j4
make: *** No hay objetivos. Alto.
pi@raspberrypi:/tmp/USDX/src $ cd /tmp/USDX
pi@raspberrypi:/tmp/USDX $ sudo make install
make: *** No hay ninguna regla para construir el objetivo 'install'. Alto.
pi@raspberrypi:/tmp/USDX $
alguna idea?? :'(
-
- Pi Newbie
- Mensajes: 6
- Registrado: 20 Dic 2016, 09:51
- Agradecido: 0
- Agradecimiento recibido: 0
Luigui, a mi me pasaba lo mismo y se me arregló pasando el GL driver de full a fake KMS. Pruébalo a ver si te funciona.luigui escribió:Buenas a todos!
Gracias a vuestra ayuda ya he conseguido compilar el USDX y que funcione... bueno a medias, ¡le falta el audio! No se escucha nada, ¿se os ocurre qué puede ser? Fuera del juego el audio funciona sin problemas en la raspberry, pero dentro nada, ni los sonidos, canciones, música de fondo, nada, todo en silencio :(
Saludos!
-
- Pi Alpha
- Mensajes: 24
- Registrado: 10 Ene 2017, 20:00
- Agradecido: 0
- Agradecimiento recibido: 0
Que script estas usando, el de la portada o el último que postearon que arreglaba lo de los videos a 720?mansig escribió:he vuelto a instalar todo de 0 en una SD a parte con "2017-11-29-raspbian-stretch" y lo mismo... tan torpe soy?? solo es un script :'(
que puede estar pasando?
A mi con el original me iba, ayer con el modificado de los videos nada más me daba problemas y no tuve cojones. De hecho me daba varios problemas (uno de ellos parecidos al tuyo...
Por otro lado :
@CapNida Que has modificado en este script que no termina de irme con el y voy a mirar si lo puedo revisar teniendo en cuenta los cambios realizados para depurar lo más fácilmenteCapNida escribió:Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.Código: Seleccionar todo
########################VARIABLES############################### export ROJO="\033[1;31m" export AZUL="\033[1;36m" export VERDE="\033[1;32m" export NEGRO="\033[0m" INSTALAR_FFMPEG=s INSTALAR_FREEPASCAL=s MENU=100 ################################################################ rm -Rf /tmp/* while [ $MENU != 0 ] do clear echo -e "${ROJO}------------------------${NEGRO}" echo -e "${ROJO} MENU INSTALACION ${NEGRO}" echo -e "${ROJO}------------------------${NEGRO}" echo -e "${AZUL}1) Instalar dependencias${NEGRO}" echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}" echo -e "${AZUL}3) Instalar freepasacal${NEGRO}" echo -e "${AZUL}4) Instalar ultrastar${NEGRO}" echo -e "${AZUL}5) Crear acceso directo en el escritorio${NEGRO}" echo -e "${AZUL}0) Salir${NEGRO}" echo -e "${ROJO}Escoge una opcion:${NEGRO}" read OPCION case $OPCION in 1) echo -e "${AZUL}--------------------${NEGRO}" echo -e "${AZUL}Actualizando sistema${NEGRO}" echo -e "${AZUL}--------------------${NEGRO}" sudo apt-get -y update echo -e "${AZUL}----------------------${NEGRO}" echo -e "${AZUL}Instalando dependencia${NEGRO}" echo -e "${AZUL}----------------------${NEGRO}" sudo apt-get -y install automake sudo apt-get -y install libpng12-0 sudo apt-get -y install libpng12-dev sudo apt-get -y install libsdl2-dev sudo apt-get -y install libsdl2-2.0-0 sudo apt-get -y install libsdl2-gfx-1.0-0 sudo apt-get -y install libsdl2-gfx-dev sudo apt-get -y install libsdl2-image-2.0-0 sudo apt-get -y install libsdl2-image-dev sudo apt-get -y install libsdl2-mixer-2.0-0 sudo apt-get -y install libsdl2-mixer-dev sudo apt-get -y install libsdl2-net-2.0-0 sudo apt-get -y install libsdl2-net-dev sudo apt-get -y install libsdl2-ttf-2.0-0 sudo apt-get -y install libsdl2-ttf-dev sudo apt-get -y install portaudio19-dev sudo apt-get -y install liblua5.1-0 sudo apt-get -y install liblua5.1-0-dev sudo apt-get -y install libsqlite3-0 sudo apt-get -y install libsqlite3-dev sudo apt-get -y install git sudo apt-get -y install fpc sudo apt-get -y install fpc-source sudo apt-get -y install fpc-2.6.4 sudo apt-get -y install fpc-source-2.6.4 sudo apt-get -y install libass-dev sudo apt-get -y install libmp3lame-dev sudo apt-get -y install libopus-dev sudo apt-get -y install libtheora-dev sudo apt-get -y install libx64-dev sudo apt-get -y install libbz2-dev sudo aptitude install build-essential ;; 2) ffmpeg -version FFMPEG_INSTALADO=$? if [ $FFMPEG_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FFMPEG case $INSTALAR_FFMPEG in s) wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION cd /tmp/ wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} ;; *) echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}" ;; esac else wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} fi case $INSTALAR_FFMPEG in s) cd /tmp tar -zxvf ${FFMPEG_VERSION} #tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz echo -e "${AZUL}------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}" echo -e "${AZUL}------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read TECLA FFMPEG_DIR=`echo ${FFMPEG_VERSION} | sed 's/.tar.gz//g'` cd /tmp/${FFMPEG_DIR} #./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr #./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr #./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4 ./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4 make -j4 sudo make install which ffmpeg case $? in 0) VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'` VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de ffmpeg" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}" fi ;; *) echo -e "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}" ;; esac ;; *) echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}" ;; esac ;; 3) fpc -iV FREEPASCAL_INSTALADO=$? if [ $FREEPASCAL_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FREEPASCAL case $INSTALAR_FREEPASCAL in s) wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz cd /tmp/ tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz ;; *) echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}" ;; esac else wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz cd /tmp/ tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz fi case $INSTALAR_FREEPASCAL in s) echo -e "${AZUL}----------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}" echo -e "${AZUL}----------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read tecla cd /tmp/fpcbuild-${FREEPASCAL_VERSION} make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build sudo make NOGDB=1 install sudo unlink /usr/bin/ppcarm sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION} sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm which fpc case $? in 0) VERSION_INSTALADA=`fpc -iV` VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de freepascal" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}" fi ;; *) echo -e "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}" ;; esac ;; *) echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}" ;; esac ;; 4) which ultrastardx ULTRASTAR_INSTALADO=$? case $ULTRASTAR_INSTALADO in 0) echo -e "${ROJO}Ya hay una version de ultrastar instalada" echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}" read INSTALA_ULTRASTAR ;; *) INSTALA_ULTRASTAR=s ;; esac #if [ $INSTALA_ULTRASTAR == s ] #then echo -e "${AZUL}1) Version estable (Agosto 2017)" echo -e "2) Ultima version (no estable)" echo -e "3) Version diciembre 2016 (no estable)" echo -e "Que version de Ultrastar quieres descargar?" read VERSION case $VERSION in 2) echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git ;; 3) echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git cd /tmp/USDX git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master` ;; *) echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}" cd /tmp wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz tar -zxvf v2017.8.0.tar.gz mv USDX-2017.8.0 USDX ;; esac echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}" echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "Pulsa INTRO para continuar" read TECCLA cd /tmp/USDX ./autogen.sh ./configure --prefix=/usr cd src sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2 mv Makefile Makefile.orig mv Makefile.mod2 Makefile sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so make -j4 cd /tmp/USDX sudo make install #else # echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}" #fi ;; 5) wget -P /tmp/ http://i.imgur.com/JtmXso1.png sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png cd /home/pi/Desktop touch ultrastar.desktop echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop echo "Terminal=false" >> /home/pi/Desktop/ultrastar.desktop echo "Name=ultrastar" >> /home/pi/Desktop/ultrastar.desktop echo "Categories=Games;" >> /home/pi/Desktop/ultrastar.desktop echo "Exec=/usr/bin/ultrastardx" >> /home/pi/Desktop/ultrastar.desktop echo "Comment=Ultrastar" >> /home/pi/Desktop/ultrastar.desktop echo "Icon=/usr/share/icons/ultra.png" >> /home/pi/Desktop/ultrastar.desktop chmod 755 /home/pi/Desktop/ultrastar.desktop ;; 0) echo -e "${ROJO}Saliendo${NEGRO}" exit 1 ;; esac done

Gracias. Saludos
- CapNida
- Pi Omega
- Mensajes: 96
- Registrado: 01 Dic 2016, 09:43
- Agradecido: 1 vez
- Agradecimiento recibido: 1 vez
@chuloplaya las modificaciones del script son las siguientes:chuloplaya escribió:Que script estas usando, el de la portada o el último que postearon que arreglaba lo de los videos a 720?mansig escribió:he vuelto a instalar todo de 0 en una SD a parte con "2017-11-29-raspbian-stretch" y lo mismo... tan torpe soy?? solo es un script :'(
que puede estar pasando?
A mi con el original me iba, ayer con el modificado de los videos nada más me daba problemas y no tuve cojones. De hecho me daba varios problemas (uno de ellos parecidos al tuyo...
Por otro lado :
@CapNida Que has modificado en este script que no termina de irme con el y voy a mirar si lo puedo revisar teniendo en cuenta los cambios realizados para depurar lo más fácilmenteCapNida escribió:Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.Código: Seleccionar todo
########################VARIABLES############################### export ROJO="\033[1;31m" export AZUL="\033[1;36m" export VERDE="\033[1;32m" export NEGRO="\033[0m" INSTALAR_FFMPEG=s INSTALAR_FREEPASCAL=s MENU=100 ################################################################ rm -Rf /tmp/* while [ $MENU != 0 ] do clear echo -e "${ROJO}------------------------${NEGRO}" echo -e "${ROJO} MENU INSTALACION ${NEGRO}" echo -e "${ROJO}------------------------${NEGRO}" echo -e "${AZUL}1) Instalar dependencias${NEGRO}" echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}" echo -e "${AZUL}3) Instalar freepasacal${NEGRO}" echo -e "${AZUL}4) Instalar ultrastar${NEGRO}" echo -e "${AZUL}5) Crear acceso directo en el escritorio${NEGRO}" echo -e "${AZUL}0) Salir${NEGRO}" echo -e "${ROJO}Escoge una opcion:${NEGRO}" read OPCION case $OPCION in 1) echo -e "${AZUL}--------------------${NEGRO}" echo -e "${AZUL}Actualizando sistema${NEGRO}" echo -e "${AZUL}--------------------${NEGRO}" sudo apt-get -y update echo -e "${AZUL}----------------------${NEGRO}" echo -e "${AZUL}Instalando dependencia${NEGRO}" echo -e "${AZUL}----------------------${NEGRO}" sudo apt-get -y install automake sudo apt-get -y install libpng12-0 sudo apt-get -y install libpng12-dev sudo apt-get -y install libsdl2-dev sudo apt-get -y install libsdl2-2.0-0 sudo apt-get -y install libsdl2-gfx-1.0-0 sudo apt-get -y install libsdl2-gfx-dev sudo apt-get -y install libsdl2-image-2.0-0 sudo apt-get -y install libsdl2-image-dev sudo apt-get -y install libsdl2-mixer-2.0-0 sudo apt-get -y install libsdl2-mixer-dev sudo apt-get -y install libsdl2-net-2.0-0 sudo apt-get -y install libsdl2-net-dev sudo apt-get -y install libsdl2-ttf-2.0-0 sudo apt-get -y install libsdl2-ttf-dev sudo apt-get -y install portaudio19-dev sudo apt-get -y install liblua5.1-0 sudo apt-get -y install liblua5.1-0-dev sudo apt-get -y install libsqlite3-0 sudo apt-get -y install libsqlite3-dev sudo apt-get -y install git sudo apt-get -y install fpc sudo apt-get -y install fpc-source sudo apt-get -y install fpc-2.6.4 sudo apt-get -y install fpc-source-2.6.4 sudo apt-get -y install libass-dev sudo apt-get -y install libmp3lame-dev sudo apt-get -y install libopus-dev sudo apt-get -y install libtheora-dev sudo apt-get -y install libx64-dev sudo apt-get -y install libbz2-dev sudo aptitude install build-essential ;; 2) ffmpeg -version FFMPEG_INSTALADO=$? if [ $FFMPEG_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FFMPEG case $INSTALAR_FFMPEG in s) wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION cd /tmp/ wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} ;; *) echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}" ;; esac else wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} fi case $INSTALAR_FFMPEG in s) cd /tmp tar -zxvf ${FFMPEG_VERSION} #tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz echo -e "${AZUL}------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}" echo -e "${AZUL}------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read TECLA FFMPEG_DIR=`echo ${FFMPEG_VERSION} | sed 's/.tar.gz//g'` cd /tmp/${FFMPEG_DIR} #./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr #./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr #./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4 ./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4 make -j4 sudo make install which ffmpeg case $? in 0) VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'` VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de ffmpeg" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}" fi ;; *) echo -e "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}" ;; esac ;; *) echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}" ;; esac ;; 3) fpc -iV FREEPASCAL_INSTALADO=$? if [ $FREEPASCAL_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FREEPASCAL case $INSTALAR_FREEPASCAL in s) wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz cd /tmp/ tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz ;; *) echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}" ;; esac else wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz cd /tmp/ tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz fi case $INSTALAR_FREEPASCAL in s) echo -e "${AZUL}----------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}" echo -e "${AZUL}----------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read tecla cd /tmp/fpcbuild-${FREEPASCAL_VERSION} make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build sudo make NOGDB=1 install sudo unlink /usr/bin/ppcarm sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION} sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm which fpc case $? in 0) VERSION_INSTALADA=`fpc -iV` VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de freepascal" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}" fi ;; *) echo -e "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}" ;; esac ;; *) echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}" ;; esac ;; 4) which ultrastardx ULTRASTAR_INSTALADO=$? case $ULTRASTAR_INSTALADO in 0) echo -e "${ROJO}Ya hay una version de ultrastar instalada" echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}" read INSTALA_ULTRASTAR ;; *) INSTALA_ULTRASTAR=s ;; esac #if [ $INSTALA_ULTRASTAR == s ] #then echo -e "${AZUL}1) Version estable (Agosto 2017)" echo -e "2) Ultima version (no estable)" echo -e "3) Version diciembre 2016 (no estable)" echo -e "Que version de Ultrastar quieres descargar?" read VERSION case $VERSION in 2) echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git ;; 3) echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git cd /tmp/USDX git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master` ;; *) echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}" cd /tmp wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz tar -zxvf v2017.8.0.tar.gz mv USDX-2017.8.0 USDX ;; esac echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}" echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "Pulsa INTRO para continuar" read TECCLA cd /tmp/USDX ./autogen.sh ./configure --prefix=/usr cd src sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2 mv Makefile Makefile.orig mv Makefile.mod2 Makefile sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so make -j4 cd /tmp/USDX sudo make install #else # echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}" #fi ;; 5) wget -P /tmp/ http://i.imgur.com/JtmXso1.png sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png cd /home/pi/Desktop touch ultrastar.desktop echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop echo "Terminal=false" >> /home/pi/Desktop/ultrastar.desktop echo "Name=ultrastar" >> /home/pi/Desktop/ultrastar.desktop echo "Categories=Games;" >> /home/pi/Desktop/ultrastar.desktop echo "Exec=/usr/bin/ultrastardx" >> /home/pi/Desktop/ultrastar.desktop echo "Comment=Ultrastar" >> /home/pi/Desktop/ultrastar.desktop echo "Icon=/usr/share/icons/ultra.png" >> /home/pi/Desktop/ultrastar.desktop chmod 755 /home/pi/Desktop/ultrastar.desktop ;; 0) echo -e "${ROJO}Saliendo${NEGRO}" exit 1 ;; esac done
Gracias. Saludos
En las dependencias se ha añadido las siguiente:
Código: Seleccionar todo
sudo apt-get -y install libass-dev
sudo apt-get -y install libmp3lame-dev
sudo apt-get -y install libopus-dev
sudo apt-get -y install libtheora-dev
sudo apt-get -y install libx64-dev
sudo apt-get -y install libbz2-dev
Código: Seleccionar todo
./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4
-
- Pi Alpha
- Mensajes: 15
- Registrado: 25 Dic 2017, 09:53
- Agradecido: 0
- Agradecimiento recibido: 0
Buenas tardes. ¿Alguna imagen para una SD de 16 GB? Me encantaría ponerme a trastear y compilar (recuerdo mis años mozos de creación de distros de linux), pero es para fin de año y no me daría tiempo a hacerlo todo de cero.
-
- Pi Alpha
- Mensajes: 24
- Registrado: 10 Ene 2017, 20:00
- Agradecido: 0
- Agradecimiento recibido: 0
si consigo echarlo a andar te la paso por torrent.
Saludos
Saludos
-
- Pi Alpha
- Mensajes: 15
- Registrado: 25 Dic 2017, 09:53
- Agradecido: 0
- Agradecimiento recibido: 0
Muchas gracias amigo!chuloplaya escribió:si consigo echarlo a andar te la paso por torrent.
Saludos
-
- Pi Alpha
- Mensajes: 24
- Registrado: 10 Ene 2017, 20:00
- Agradecido: 0
- Agradecimiento recibido: 0
@CapNida que version de Raspbian usas como base?CapNida escribió:@chuloplaya las modificaciones del script son las siguientes:chuloplaya escribió:Que script estas usando, el de la portada o el último que postearon que arreglaba lo de los videos a 720?mansig escribió:he vuelto a instalar todo de 0 en una SD a parte con "2017-11-29-raspbian-stretch" y lo mismo... tan torpe soy?? solo es un script :'(
que puede estar pasando?
A mi con el original me iba, ayer con el modificado de los videos nada más me daba problemas y no tuve cojones. De hecho me daba varios problemas (uno de ellos parecidos al tuyo...
Por otro lado :
@CapNida Que has modificado en este script que no termina de irme con el y voy a mirar si lo puedo revisar teniendo en cuenta los cambios realizados para depurar lo más fácilmenteCapNida escribió:Este script tiene la configuracion para recompilar el ffmpeg para mover los videos en 720p.
He probado algunos videos sin recomprimir y parece que funcionan bien.
Es necesario ejecutar primero la instalcion de dependencias porque hay algunos paquetes extras necesarios.Código: Seleccionar todo
########################VARIABLES############################### export ROJO="\033[1;31m" export AZUL="\033[1;36m" export VERDE="\033[1;32m" export NEGRO="\033[0m" INSTALAR_FFMPEG=s INSTALAR_FREEPASCAL=s MENU=100 ################################################################ rm -Rf /tmp/* while [ $MENU != 0 ] do clear echo -e "${ROJO}------------------------${NEGRO}" echo -e "${ROJO} MENU INSTALACION ${NEGRO}" echo -e "${ROJO}------------------------${NEGRO}" echo -e "${AZUL}1) Instalar dependencias${NEGRO}" echo -e "${AZUL}2) Instalar ffmpeg${NEGRO}" echo -e "${AZUL}3) Instalar freepasacal${NEGRO}" echo -e "${AZUL}4) Instalar ultrastar${NEGRO}" echo -e "${AZUL}5) Crear acceso directo en el escritorio${NEGRO}" echo -e "${AZUL}0) Salir${NEGRO}" echo -e "${ROJO}Escoge una opcion:${NEGRO}" read OPCION case $OPCION in 1) echo -e "${AZUL}--------------------${NEGRO}" echo -e "${AZUL}Actualizando sistema${NEGRO}" echo -e "${AZUL}--------------------${NEGRO}" sudo apt-get -y update echo -e "${AZUL}----------------------${NEGRO}" echo -e "${AZUL}Instalando dependencia${NEGRO}" echo -e "${AZUL}----------------------${NEGRO}" sudo apt-get -y install automake sudo apt-get -y install libpng12-0 sudo apt-get -y install libpng12-dev sudo apt-get -y install libsdl2-dev sudo apt-get -y install libsdl2-2.0-0 sudo apt-get -y install libsdl2-gfx-1.0-0 sudo apt-get -y install libsdl2-gfx-dev sudo apt-get -y install libsdl2-image-2.0-0 sudo apt-get -y install libsdl2-image-dev sudo apt-get -y install libsdl2-mixer-2.0-0 sudo apt-get -y install libsdl2-mixer-dev sudo apt-get -y install libsdl2-net-2.0-0 sudo apt-get -y install libsdl2-net-dev sudo apt-get -y install libsdl2-ttf-2.0-0 sudo apt-get -y install libsdl2-ttf-dev sudo apt-get -y install portaudio19-dev sudo apt-get -y install liblua5.1-0 sudo apt-get -y install liblua5.1-0-dev sudo apt-get -y install libsqlite3-0 sudo apt-get -y install libsqlite3-dev sudo apt-get -y install git sudo apt-get -y install fpc sudo apt-get -y install fpc-source sudo apt-get -y install fpc-2.6.4 sudo apt-get -y install fpc-source-2.6.4 sudo apt-get -y install libass-dev sudo apt-get -y install libmp3lame-dev sudo apt-get -y install libopus-dev sudo apt-get -y install libtheora-dev sudo apt-get -y install libx64-dev sudo apt-get -y install libbz2-dev sudo aptitude install build-essential ;; 2) ffmpeg -version FFMPEG_INSTALADO=$? if [ $FFMPEG_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `ffmpeg -version | grep version | awk '{print $3}'` de ffmpeg${NEGRO}" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FFMPEG case $INSTALAR_FFMPEG in s) wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION cd /tmp/ wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} ;; *) echo -e "${VERDE}No se descargara otra version de ffmpeg${NEGRO}" ;; esac else wget -P /tmp/ http://ffmpeg.org/releases/ mv /tmp/index.html /tmp/ffmpeg_versions cat /tmp/ffmpeg_versions | grep tar.gz | grep -v .asc| awk -F\" '{print $6}' echo -e "${AZUL}Escoge la version de ffmpeg para descargar:${NEGRO}" read FFMPEG_VERSION wget -P /tmp/ http://ffmpeg.org/releases/${FFMPEG_VERSION} fi case $INSTALAR_FFMPEG in s) cd /tmp tar -zxvf ${FFMPEG_VERSION} #tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz echo -e "${AZUL}------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ffmpeg${NEGRO}" echo -e "${AZUL}------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read TECLA FFMPEG_DIR=`echo ${FFMPEG_VERSION} | sed 's/.tar.gz//g'` cd /tmp/${FFMPEG_DIR} #./configure --enable-shared --enable-pic --disable-encoders --disable-static --prefix=/usr #./configure --enable-shared --enable-pic --enable-encoders --disable-static --prefix=/usr #./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-vdpau --enable-vaapi --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4 ./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4 make -j4 sudo make install which ffmpeg case $? in 0) VERSION_INSTALADA=`ffmpeg -version | grep version | awk '{print $3}'` VERSION_COMPILADA=`echo $FFMPEG_DIR | awk -F- '{print $NF}'` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de ffmpeg" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de ffmpeg correcta${NEGRO}" fi ;; *) echo -e "${ROJO}Error en la instalacion de ffmpeg. Revisa el log de la compilacion${NEGRO}" ;; esac ;; *) echo -e "${VERDE}No se instalara el ffmpeg descargado${NEGRO}" ;; esac ;; 3) fpc -iV FREEPASCAL_INSTALADO=$? if [ $FREEPASCAL_INSTALADO -eq 0 ] then echo -e "${ROJO}Esta instalada la version `fpc -iV` de freepascal" echo -e "${AZUL}Quieres instalar otra version? s/n${NEGRO}" read INSTALAR_FREEPASCAL case $INSTALAR_FREEPASCAL in s) wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz cd /tmp/ tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz ;; *) echo -e "${VERDE}No se descargara otra version de freepascal${NEGRO}" ;; esac else wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/ mv /tmp/index.html /tmp/freepascal_versions cat /tmp/freepascal_versions | grep "\"name\":" | sed 's/name/\n/g' | awk '{print $2}' | sed 's/=//g' | awk -F\" '{print$2}' | sort echo -e "${AZUL}Escoge la version de freepascal para descargar:${NEGRO}" read FREEPASCAL_VERSION wget -P /tmp/ https://sourceforge.net/projects/freepascal/files/Source/${FREEPASCAL_VERSION}/fpcbuild-${FREEPASCAL_VERSION}.tar.gz cd /tmp/ tar -zxvf fpcbuild-${FREEPASCAL_VERSION}.tar.gz fi case $INSTALAR_FREEPASCAL in s) echo -e "${AZUL}----------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando freepascal${NEGRO}" echo -e "${AZUL}----------------------------------${NEGRO}" echo "Pulsa INTRO para continuar" read tecla cd /tmp/fpcbuild-${FREEPASCAL_VERSION} make NOGDB=1 OPT="-dFPC_ARMHF -CX -CfVFPV3_D16 -O- -XX -Xs" build sudo make NOGDB=1 install sudo unlink /usr/bin/ppcarm sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION} /usr/lib/fpc/${FREEPASCAL_VERSION} sudo ln -s /usr/local/lib/fpc/${FREEPASCAL_VERSION}/ppcarm /usr/bin/ppcarm which fpc case $? in 0) VERSION_INSTALADA=`fpc -iV` VERSION_COMPILADA=`echo ${FREEPASCAL_VERSION}` if [ $VERSION_INSTALADA != $VERSION_COMPILADA ] then echo -e "${ROJO}Error en la compilación de freepascal" echo -e "Version instalada ${VERSION_INSTALADA}" echo -e "Version compilada ${VERSION_COMPILADA}${NEGRO}" exit 1 else echo -e "${VERDE}Compilacion e instalacion de freepascal correcta${NEGRO}" fi ;; *) echo -e "${ROJO}Error en la instalacion de FreePascal. Revisa el log de la compilacion${NEGRO}" ;; esac ;; *) echo -e "${VERDE}No se instalara el freepascal descargado${NEGRO}" ;; esac ;; 4) which ultrastardx ULTRASTAR_INSTALADO=$? case $ULTRASTAR_INSTALADO in 0) echo -e "${ROJO}Ya hay una version de ultrastar instalada" echo -e "${AZUL}Quieres recompilar ULTRASTAR? s/n${NEGRO}" read INSTALA_ULTRASTAR ;; *) INSTALA_ULTRASTAR=s ;; esac #if [ $INSTALA_ULTRASTAR == s ] #then echo -e "${AZUL}1) Version estable (Agosto 2017)" echo -e "2) Ultima version (no estable)" echo -e "3) Version diciembre 2016 (no estable)" echo -e "Que version de Ultrastar quieres descargar?" read VERSION case $VERSION in 2) echo -e "${VERDE}Descargando la última version (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git ;; 3) echo -e "${VERDE}Descargando la versión de Diciembre de 2016 (no estable)${NEGRO}" cd /tmp git clone https://github.com/UltraStar-Deluxe/USDX.git cd /tmp/USDX git checkout `git rev-list -n 1 --before="2016-12-04 23:59" master` ;; *) echo -e "${VERDE}Descargando la version de Agosto de 2017 (estable)${NEGRO}" cd /tmp wget -P /tmp/ https://github.com/UltraStar-Deluxe/USDX/archive/v2017.8.0.tar.gz tar -zxvf v2017.8.0.tar.gz mv USDX-2017.8.0 USDX ;; esac echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "${AZUL}Compilando e instalando ULTRASTAR${NEGRO}" echo -e "${AZUL}---------------------------------${NEGRO}" echo -e "Pulsa INTRO para continuar" read TECCLA cd /tmp/USDX ./autogen.sh ./configure --prefix=/usr cd src sed 's/PFLAGS_RELEASE_DEFAULT := -Xs- -O2/PFLAGS_RELEASE_DEFAULT := -Xs- -O1/g' Makefile > Makefile.mod sed 's/LIBS ?=/LIBS ?= -lm -lgcc_s -llua5.1/g' Makefile.mod > Makefile.mod2 mv Makefile Makefile.orig mv Makefile.mod2 Makefile sudo unlink /lib/arm-linux-gnueabihf/libgcc_s.so sudo ln -s /lib/arm-linux-gnueabihf/libgcc_s.so.1 /lib/arm-linux-gnueabihf/libgcc_s.so make -j4 cd /tmp/USDX sudo make install #else # echo -e "${VERDE}No se instalara ULTRASTAR${NEGRO}" #fi ;; 5) wget -P /tmp/ http://i.imgur.com/JtmXso1.png sudo mv /tmp/JtmXso1.png /usr/share/icons/ultra.png cd /home/pi/Desktop touch ultrastar.desktop echo "[Desktop Entry]" >> /home/pi/Desktop/ultrastar.desktop echo "Version=1.0" >> /home/pi/Desktop/ultrastar.desktop echo "Type=Application" >> /home/pi/Desktop/ultrastar.desktop echo "Terminal=false" >> /home/pi/Desktop/ultrastar.desktop echo "Name=ultrastar" >> /home/pi/Desktop/ultrastar.desktop echo "Categories=Games;" >> /home/pi/Desktop/ultrastar.desktop echo "Exec=/usr/bin/ultrastardx" >> /home/pi/Desktop/ultrastar.desktop echo "Comment=Ultrastar" >> /home/pi/Desktop/ultrastar.desktop echo "Icon=/usr/share/icons/ultra.png" >> /home/pi/Desktop/ultrastar.desktop chmod 755 /home/pi/Desktop/ultrastar.desktop ;; 0) echo -e "${ROJO}Saliendo${NEGRO}" exit 1 ;; esac done
Gracias. Saludos
En las dependencias se ha añadido las siguiente:
En la compilación del ffmpeg se ha modificado la orden por la siguiente:Código: Seleccionar todo
sudo apt-get -y install libass-dev sudo apt-get -y install libmp3lame-dev sudo apt-get -y install libopus-dev sudo apt-get -y install libtheora-dev sudo apt-get -y install libx64-dev sudo apt-get -y install libbz2-dev
Código: Seleccionar todo
./configure --enable-shared --enable-pic --disable-static --prefix=/usr --arch=arm --enable-pthreads --enable-runtime-cpudetect --enable-neon --enable-bzlib --enable-libfreetype --enable-gpl --shlibdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=armv7-a --extra-cflags='-mfpu=neon -fPIC -DPIC' --enable-libx264 --enable-mmal --enable-hwaccel=h264_mmal --enable-omx-rpi --enable-omx --enable-opengl --enable-nonfree --enable-libtheora --enable-decoder=h264_mmal --enable-decoder=mpeg2_mmal --enable-decoder=mpeg4_mmal --enable-encoder=h264_omx --enable-encoder=h264_omx --enable-avresample --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libopus --disable-decoder=h264 --disable-decoder=mpeg4 --disable-encoder=libx264 --disable-encoder=mpeg4