Hi tomaz! XBMC works fine with MPEG-2 on Ubuntu 12_04_LTS.tomaz wrote:Hi Mertz,
maybe XBMC doesn't support MPEG-2 ?
Tomaz.
Mertz wrote:Hello! Thank you for your excellent work, but I do when receiving channels of MPEG-2 from Tvheadend, only sound no picture. MPEG-4 channels, including HD, works fine. Who knows how to fix this problem?
Code: Select all
#!/bin/sh
#idea of payneardo on http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=10$
#idea of tomaz, try to mount sda1 and sdb1 devices
#if you want to mount something else you can simply chang variable usb1 or usb2$
usb1="/dev/sda"
usb2="/dev/sdb"
if [ -e ~/.automountUSBforXBMC ]
then
echo "Trying to mount $usb1 and $usb2"
if [ ! -d /mnt/xbmc1 ] ; then
sudo mkdir /mnt/xbmc1 >/dev/null 2>&1
fi
if [ ! -d /mnt/xbmc2 ] ; then
sudo mkdir /mnt/xbmc2 >/dev/null 2>&1
fi
sudo mount hfsplus $usb1 /mnt/xbmc1 >/dev/null 2>&1
sudo mount hfsplus $usb2 /mnt/xbmc2 >/dev/null 2>&1
fi
mode=`fbset|grep "mode "|sed -e "s/.*\"\(.*\)\"/\1/"`
ps=$PS1
export PS1=''
setterm -cursor off
clear ; sudo /usr/lib/xbmc/xbmc.bin
export PS1=$ps
setterm -cursor on
xres=`echo $mode|sed -e "s/x.*//"`
yres=`echo $mode|sed -e "s/.*x\([0-9]*\)-\?.*/\1/"`
fbset -fb /dev/fb0 -xres $xres -yres $yres
sudo chvt 2
sudo chvt 1
if [ -e ~/.autoumountUSBforXBMC ]
then
echo "Trying to unmount /mnt/xbmc1($usb1) and /mnt/xmbc2($usb2)"
sudo umount /mnt/xbmc1 >/dev/null 2>&1
sudo umount /mnt/xbmc2 >/dev/null 2>&1
fi
r0nnie wrote:hello im using this deb but im trying to edit the automount letter and type
at the moment i have to ssh from laptop and type sudo mount -t hfsplus -o rw,users /dev/sda /mnt/xbmc1
ive tried editing /usr/bin/xbmc but not sure what else is missing cause its still not automounting
...
thanks
hello thanks for pointing that post out, at first i thought it was gonna be super hard but it was really easy!tomaz wrote:Hi r0nnie,
if it works like you wrote:
mount -t hfsplus -o rw,users /dev/sda /mnt/xbmc1
than change line:
sudo mount hfsplus $usb1 /mnt/xbmc1 >/dev/null 2>&1
to:
sudo mount -t hfsplus -o rw,users $usb1 /mnt/xbmc1 >/dev/null 2>&1
Or use automounting as chochis has explained here.
Tomaz.
gabello wrote:Tomaz, thanks so much for the hard work on this project.
I have only one minor issue with the xbmc installation. Sometimes when the movie is not the same resolution as the monitor, when it starts playing I see the background (lxde) desktop for some time (a few minutes) and after that the space turns to black (as expected). Note that in the mean time the subtitles appear on the are where I see the desktop, so it is not like xbmc player is opened in a window or smth.
Code: Select all
pi@raspberrypi ~ $ ps aux | grep X
root 1547 0.7 10.5 48484 13056 tty7 Ss+ 21:54 0:02 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitchgabello wrote:I'm connecting over ssh and start xmbc remotely. As for X
Code: Select all
pi@raspberrypi ~ $ ps aux | grep X root 1547 0.7 10.5 48484 13056 tty7 Ss+ 21:54 0:02 /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
Hi JollyRoger! All files, except the image is intended to record the SD in Windows, I wrote earlier that this is for the lazy and do not have something to look elsewhere ...JollyRoger wrote:Thanks Mertz. I've downloaded and unpacked Tomaz's .rar file. I must say his version of XBMC seems to work pretty well - thanks Tomaz. My question is, there are a number of files besides the .img file included in the .rar (e.g. libgcc_s_dw2-1.dll). Do I need to do anything with these other files? So far I've ignored them and simply written the .img to an sd card which I've then successfully used on my Pi.
Hi! I have no control. Maybe you forgot to include support for CEC in XBMC?alias_neo wrote:Hi, nice work.
Quick question, did you compile this with CEC support?
I was running Raspbmc and OpenELEC which both support CEC so I could control them from my TV remote, but I wanted Raspbian, so when I switched I found an XBMC package elsewhere on the forum but it doesn't support CEC. I really don't want to have to try compile this myself, it takes 12+ hours I believe on the Pi.
Actually, I don't think this will help, when compiled with CEC support, XBMC detects the TV on start and shows a toast at the bottom. I manually compiled and installed libcec but still no joy since XBMC is compiled without support for it, I haven't tried this version here yet, but unless Tomaz explicitly enabled it, the instructions he followed default to building without it.Mertz wrote:Hi! I have no control. Maybe you forgot to include support for CEC in XBMC?alias_neo wrote:Hi, nice work.
Quick question, did you compile this with CEC support?
I was running Raspbmc and OpenELEC which both support CEC so I could control them from my TV remote, but I wanted Raspbian, so when I switched I found an XBMC package elsewhere on the forum but it doesn't support CEC. I really don't want to have to try compile this myself, it takes 12+ hours I believe on the Pi.
Go to System = Settings = System = Input devices = Remote control sends keyboard presses = ON
Code: Select all
pi@raspberrypi ~ $ sudo find / | grep libEGL.so
/root/.rpi-firmware/vc/hardfp/opt/vc/lib/libEGL.so
/root/.rpi-firmware/vc/softfp/opt/vc/lib/libEGL.so
/opt/vc/lib/libEGL.so
Code: Select all
pi@raspberrypi /usr/lib/xbmc $ ldd xbmc.bin | grep "not found"
libEGL.so => not found
libGLESv2.so => not found
libbcm_host.so => not found
libvcos.so => not found
libvchiq_arm.so => not found
Make the symlinks again, that will fix it. Just copy paste them all into a terminal, might have to hit enter on the last one.gabello wrote:Hi, I manged to break the xbmc install (i did a apt-get upgrade as well as installed/removed a few packages). Now, when I try to run xbmc I get:
/usr/lib/xbmc/xbmc.bin: error while loading shared libraries: libEGL.so: cannot open shared object file: No such file or directory
I tried reinstalling, but I get the same error.Code: Select all
pi@raspberrypi ~ $ sudo find / | grep libEGL.so /root/.rpi-firmware/vc/hardfp/opt/vc/lib/libEGL.so /root/.rpi-firmware/vc/softfp/opt/vc/lib/libEGL.so /opt/vc/lib/libEGL.soCode: Select all
pi@raspberrypi /usr/lib/xbmc $ ldd xbmc.bin | grep "not found" libEGL.so => not found libGLESv2.so => not found libbcm_host.so => not found libvcos.so => not found libvchiq_arm.so => not found
Code: Select all
root@raspberrypi:/opt/vc/lib# ls -ltra /root/.rpi-firmware/vc/softfp/opt/vc/lib/libEGL.so
-rw-r--r-- 1 root root 205336 Aug 18 13:43 /root/.rpi-firmware/vc/softfp/opt/vc/lib/libEGL.so
root@raspberrypi:/opt/vc/lib# ls -ltra /opt/vc/lib/libEGL.so
-rw-r--r-- 1 root root 205372 Aug 22 02:39 /opt/vc/lib/libEGL.so
They're in the the wiki. Give me a half hour to get to work and I'll paste them here.gabello wrote:I'm sorry,but to which libraries should I create the symslinks to? I see that the files are diffrent:
Also I'm not sure how exactlly to create the symlinks.Code: Select all
root@raspberrypi:/opt/vc/lib# ls -ltra /root/.rpi-firmware/vc/softfp/opt/vc/lib/libEGL.so -rw-r--r-- 1 root root 205336 Aug 18 13:43 /root/.rpi-firmware/vc/softfp/opt/vc/lib/libEGL.so root@raspberrypi:/opt/vc/lib# ls -ltra /opt/vc/lib/libEGL.so -rw-r--r-- 1 root root 205372 Aug 22 02:39 /opt/vc/lib/libEGL.so