Linux Irexec VAAPI
#1
Hello to everybody

To start xbmc I use irexec and it works but it seems that xmbc don't use VAAPI
however, if launching from desktop launcher works.

This is the script that i use
Code:
#!/bin/bash
stamp="$(date '+%Y-%m-%d %H:%M:%S,%N')"

if [ ! -z "$(pidof /usr/bin/xbmc)" ]; then
    echo "$stamp XBMC already running (/usr/bin/xbmc)" >> /tmp/xbmc-launcher.log
    exit 0
fi

if [ ! -z "$(pidof /usr/lib/xbmc/xbmc.bin)" ]; then
    echo "$stamp XBMC already running (/usr/lib/xbmc/xbmc.bin)" >> /tmp/xbmc-launcher.log
    exit 0
fi

echo "$stamp Starting XBMC" >> /tmp/xbmc-launcher.log
amixer sset Master,0 100%
DISPLAY=:0 xbmc &
and .lirrc
Code:
# Start XBMC
begin
prog = irexec
button = KEY_MEDIA
config = /home/prot/xbmc-start
end
Is there a method to force the VAAPI?

Thanks
Thanks
Reply
#2
vaapi has nothing to do with how you start xbmc.
provide a debug log when launched from your script.
Reply
#3
ok i will provide the log ...
I do not know why but when I launch xbmc with irexec 1080p movie drops frame
Reply
#4
this is the log when irexec starts xbmc
Code:
11:32:11 T:3037193984   ERROR: CAESinkOSS::EnumerateDevicesEx - Failed to open mixer: /dev/mixer
11:32:11 T:3037193984   ERROR: Unable to load libcrystalhd.so.3, reason: libcrystalhd.so.3: cannot open shared object file: No such file or directory
11:32:12 T:3037193984   ERROR: GLX: Same window as before, refreshing context
11:32:48 T:3037193984   ERROR: Window Translator: Can't find window dialogselect
11:33:07 T:2702129984   ERROR: (VDPAU) unable to init VDPAU - vdp_st = 0x1.  Falling back.
11:33:07 T:2688547648   ERROR: VAAPI - unable to initialize display -1 - unknown libva error
when I starts with the desktop launcher
Code:
11:28:45 T:3037308672   DEBUG: CLinuxRendererGL::UploadVAAPITexture - creating vaapi surface for texture 1
11:28:45 T:3037308672   DEBUG: CLinuxRendererGL::UploadVAAPITexture - creating vaapi surface for texture 0

Sorry for my English
Thanks
Reply
#5
The problem is the user.

Your irexec script seems to be started with a user, that is not member of video group. If you do the same from desktop your user gets the executer and therefore it works.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#6
I added my user to the video group
Code:
adduser user video
and
Code:
chgrp video xbmc-start
Irexec is lanched by user

doesn't work
Reply
#7
You may have to reboot for group changes to take effect.
Reply
#8
I rebooted but it still doesn't work
Reply
#9
Looking at the script again it seems you're running XBMC as root when you start it through irrexec. You need to use the su command to switch to the desired user.
Reply
#10
it seems that all running with my user
Code:
proto  14172  0.0  0.0   2168   300 ?        Ss   12:13   0:00 irexec -d /home/proto/.lircrc

proto  14189  0.0  0.0   2232   544 ?        S    12:13   0:00 /bin/sh /usr/bin/xbmc
proto  14198  107  8.4 482620 139812 ?       Sl   12:13   1:27 /usr/lib/xbmc/xbmc.bin

Code:
-rwxrwxrwx  1 proto  video         460 ott  4 11:59 xbmc-start*

I don't understand
I've got dc:ff-h264 instead of dc:ff-h264-vaapi in the video info panel
what's wrong Huh
Reply
#11
Finally
I've found the problem
I write for those who have my problem
I've canceled in /etc/environment
Code:
LIBVA_DRIVER_NAME=xvba
LIBVA_DRIVERS_PATH=/usr/lib/va/drivers
which I had add on first try to solve the problem
And now it works

Thanks to everybody
Reply

Logout Mark Read Team Forum Stats Members Help
Irexec VAAPI0