Linux Eden RC2 and VAAPI support
#1
I have just upgraded to Eden RC2 on an Intel corei5 2500K processor on Ubuntu Oneiric latest release (kernel 3.0.0.16.19).

In general screen handling seems much more smooth than Dharma - but! - the problem I have is that Eden freezes with VAAPI support ON when starting video files with a mpeg2video codec. All other files types seem to play nicely even with VAAPI support. When switching VAAPI off everything plays fine.

Any ideas ?

Pastebin: http://pastebin.com/9QUrfgx6

MortenS
Reply
#2
From your debug log, it looks as if the avi files you're trying to play aren't mpeg2 rather they're mjpeg files:
Quote:17:36:59 T:2782919536 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MJPEG (Motion JPEG)
This happens with every avi file you try playing.

The first iso you launch is recognized as mpeg2, but the second (EGYPT_BBC_SERIES 2.ISO) is not. XBMC reports that it cannot determine the video codec:
Quote:17:38:26 T:2690628464 WARNING: could not find codec parameters for /home/morten/Video Disk 1/EGYPT_BBC_SERIES 2.ISO

You also seem to be getting the following error quite a bit:
Quote:Tongueut MSGQ_NOT_INITIALIZED
I googled it, but couldn't find anything substantive about what it might mean. Nevertheless, vaapi rendering is never initialized on any of the files you attempt to play until the followoing:
Quote:/game.of.thrones.s01e01.720p.hdtv.x264-ctu.mkv

Quote:17:38:58 T:8328960 NOTICE: GL: Using VAAPI render method

VAAPI is also initialized when you open The Pacific 1.mpg.

Do the last two files play well with VAAPI enabled, or are they problematic as well.

If you issue:
Code:
vainfo
What's the output? This should tell you if you have VAAPI driver support and what codecs it's capable of accelerating. If need be, just do an
Code:
sudo apt-get install vainfo.
Reply
#3
Here is my VAINFO:

morten@MEDIA:~$ vainfo
libva: libva version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA API version: 0.32
vainfo: Driver version: i965 Driver 0.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
morten@MEDIA:~$

XBMC freezes totally on the last file and I have to pull the plug on the machine. The file before - game of thrones - plays nicely.
Reply
#4
I never had problems playing back mpeg2 files with vaapi.

Could you please create a sample of the problematic file so we can reproduce the problem.
If we can not reproduce it. It can be that a newer kernel or vaapi version will fix it.

Thanks, in advanced !
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#5
Here is a sample file. Works fine without VAAPI.

http://www.mediafire.com/?3srcsp5v6wyb7dh

Thanks for your effort/MortenS
Reply
#6
(2012-03-16, 22:44)MortenS Wrote: Here is a sample file. Works fine without VAAPI.

http://www.mediafire.com/?3srcsp5v6wyb7dh

Thanks for your effort/MortenS

Well the file plays perfectly on mine.

I have Ubuntu Prceise Beta1 installed which has a lot newer packages but your vaapi version seems rather outdated. Even for Oneiric.

It is been a long time since libva and the intel vaapi driver were separated. Yours still have it together. vainfo should show the intel driver vrsion separately. Like this:


Code:
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Intel i965 driver - 1.0.15
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD

Try to update like this:

Code:
sudo apt-get update
sudo apt-get install libva1 libva-glx1 vainfo i965-va-driver

Or update your packages from the xorg edgers ppa. Just let me know if you need help on this.

Cheers, Attila
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#7
Sad 
Well, I have picked this up again and upgraded to 12.04 Precise - i.e. kernel 3.2

VAINFO is now in order - as above 0.32 and 1.0.15 - and MPEG2 now plays using VAAPI. This is good.

But ! H264 files do not play :-( And that worked before on the older setup. Odd though - playing H264 files it starts up the audio and keeps it coming for about 10 sec before it freezes XBMC so I have to restart.

So - one step forward and one back /Morten S
Reply
#8
Update: On Eden/Precise there seems to be a more general problem with screen handling on the Intel HD platform. Apart from the fact that VAAPI is not working as described above there is also a problem with the slideshow function and the screensave (dim) function.

Slideshow only works if something else is on the screen - sound mute or debug message. If that's not the case each picture will only show for about ½ sec and then its black screen for about 2-3 sec until next picture comes on.

The screensave (dim or black) function does not work. What happens using DIM is that the screen will start flickering instead. Preview of dim does not work either.

All this worked pre-Eden (except VAAPI)

Any idea ?

Reinstall ?
Reply
#9
It looks like VAAPI is fubar'd on Precise out of the box. Glad I didn't upgrade.
Reply
#10
(2012-04-29, 20:55)MortenS Wrote: Update: On Eden/Precise there seems to be a more general problem with screen handling on the Intel HD platform. Apart from the fact that VAAPI is not working as described above there is also a problem with the slideshow function and the screensave (dim) function.

Slideshow only works if something else is on the screen - sound mute or debug message. If that's not the case each picture will only show for about ½ sec and then its black screen for about 2-3 sec until next picture comes on.

The screensave (dim or black) function does not work. What happens using DIM is that the screen will start flickering instead. Preview of dim does not work either.

All this worked pre-Eden (except VAAPI)

Any idea ?

Reinstall ?

(2012-04-29, 21:04)pumkinut Wrote: It looks like VAAPI is fubar'd on Precise out of the box. Glad I didn't upgrade.

I getting the same problems with x264 in 12.04.

And i have submitted a bug report here http://trac.xbmc.org/ticket/12970

I don't know if its a bug with VAAPI or xbmc it self, since mplayer-vaapi works just fine.
Something that would point the finger at xbmc.

Anyone of you noticed green artifact around white fast moving objects?
This without VAAPI enabled.
Reply
#11
same problem here:
- enabling vaapi in xbmc results in freezing of it after 20 or 30 seconds of playback with blank screen, progress counter visible and hearing the audio
- listing pictures in album shows each pic for less then a second and then screen becomes blank until I switch to the following pic


celeron G530 + H77 board
gentoo linux
Linux 3.4.0-gentoo #1 SMP x86_64 Intel® Celeron® CPU G530 @ 2.40GHz GenuineIntel GNU/Linux
libva-intel-driver-1.0.17
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.15)
vainfo: Driver version: Intel i965 driver - 1.0.17
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD




Reply
#12
here's the output when trying to use vaapi:

Code:
xbmc
WARNING: Ignoring invalid value 'none' for parameter 'printing'
ERROR: invalid DOS charset: 'dos charset' must not be UTF8, using (default value) CP850 instead.
libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva: va_openDriver() returns 0
/usr/bin/xbmc: line 137: 24568 Segmentation fault      (core dumped) "$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /home/tnt/xbmc_crashlog-20120528_211018.log

and crashlog made at that moment:
http://pastebin.com/raw.php?i=5JY30HTF

Reply
#13
just tried mplayer-vaapi on the same setup and it works without a problem. Sad
Reply
#14
any suggestions?
Reply
#15
ok, it seems like gentoo related but:
http://forums.gentoo.org/viewtopic-p-705...ml#7058242

using gentoo's libs (external-libs) gives sound and ruins vaapi, while
using xbmc's libs (external-libs disabled) makes xbmc mute while fixing the vaapi support... Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Eden RC2 and VAAPI support0