• 1
  • 15
  • 16
  • 17
  • 18(current)
  • 19
[LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU
I recently switched to a new hardware platform, namely an Intel Core i3 2100T running on a GigaByte Z68MX-UD2H-B3.

Following this guide, H264 playback works like a charm using vaapi.
My problem is basically any other codec. Playing a MPEG4/DivX/etc file results in green/violet tinted movie, massive frame skipping and faster audio playback - just to name a few examples.

xbmc.log (ignore the errors and warning regarding AEON.MQ2 skin Wink).
Code:
23:35:19 T:140647091189696  NOTICE: DVDPlayer: Opening: XXX.avi
23:35:19 T:140647091189696 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:35:19 T:140646417430272  NOTICE: Creating InputStream
23:35:19 T:140646417430272  NOTICE: Creating Demuxer
23:35:20 T:140646417430272  NOTICE: Opening video stream: 0 source: 256
23:35:20 T:140646417430272  NOTICE: Creating video codec with codec id: 13
23:35:20 T:140646417430272  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
23:35:20 T:140646417430272  NOTICE: Creating video thread
23:35:20 T:140646275348224  NOTICE: running thread: video_thread
23:35:20 T:140646417430272  NOTICE: Opening audio stream: 1 source: 256
23:35:20 T:140646417430272  NOTICE: Finding audio codec for: 86019
23:35:20 T:140646417430272  NOTICE: Creating audio thread
23:35:20 T:140646266955520  NOTICE: running thread: CDVDPlayerAudio::Process()
23:35:20 T:140646266955520   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
23:35:20 T:140646266955520  NOTICE: Creating audio device with codec id: 86019, channels: 2, sample rate: 44100, no pass-through
23:35:20 T:140646275348224  NOTICE:  fps: 25.000000, pwidth: 720, pheight: 384, dwidth: 720, dheight: 384
23:35:20 T:140646275348224  NOTICE: Display resolution USER : HDMI3: 1920x1080@60p @ 60.00Hz (15)
23:35:20 T:140646266955520   ERROR: PulseAudio: Waited for the Context but it failed
23:35:20 T:140646266955520   ERROR: PulseAudio: Failed to create context
23:35:20 T:140647091189696  NOTICE: Using GL_TEXTURE_2D
23:35:20 T:140647091189696  NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
23:35:20 T:140647091189696  NOTICE: GL: NPOT texture support detected
23:35:20 T:140647091189696  NOTICE: GL: Using GL_ARB_pixel_buffer_object
23:36:20 T:140647091189696  NOTICE: CDVDPlayer::CloseFile()
23:36:20 T:140647091189696  NOTICE: DVDPlayer: waiting for threads to exit
23:36:20 T:140646417430272  NOTICE: CDVDPlayer::OnExit()
23:36:20 T:140646417430272  NOTICE: DVDPlayer: closing audio stream
23:36:20 T:140646417430272  NOTICE: Closing audio stream
23:36:20 T:140646417430272  NOTICE: Waiting for audio thread to exit
23:36:20 T:140646266955520  NOTICE: thread end: CDVDPlayerAudio::OnExit()
23:36:20 T:140646417430272  NOTICE: Closing audio device
23:36:20 T:140646417430272  NOTICE: Deleting audio codec
23:36:20 T:140646417430272  NOTICE: DVDPlayer: closing video stream
23:36:20 T:140646417430272  NOTICE: Closing video stream
23:36:20 T:140646417430272  NOTICE: waiting for video thread to exit
23:36:20 T:140646275348224  NOTICE: thread end: video_thread
23:36:20 T:140646417430272  NOTICE: deleting video codec
23:36:20 T:140646417430272  NOTICE: CDVDPlayer::OnExit() deleting demuxer
23:36:20 T:140646417430272  NOTICE: CDVDPlayer::OnExit() deleting input stream
23:36:20 T:140647091189696  NOTICE: DVDPlayer: finished waiting
23:36:20 T:140647091189696 WARNING: Skin has invalid include: MovieShowcaseGlassOverlayAngled3DBD
23:36:20 T:140647091189696 WARNING: Previous line repeats 40 times.
23:36:20 T:140647091189696 WARNING: Skin has invalid include: MovieShowcaseGlassOverlay3DBD
23:36:21 T:140647091189696 WARNING: Previous line repeats 1 times.
23:36:21 T:140647091189696  NOTICE: CDVDPlayer::CloseFile()
23:36:21 T:140647091189696 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:36:21 T:140647091189696  NOTICE: DVDPlayer: waiting for threads to exit
23:36:21 T:140647091189696  NOTICE: DVDPlayer: finished waiting

Everything else looks good...
Code:
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
      VAProfileH264Baseline           : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
Code:
OpenGL vendor string: Tungsten Graphics, Inc
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Desktop
OpenGL version string: 2.1 Mesa 7.12-devel
OpenGL shading language version string: 1.20
direct rendering: Yes

Has anybody encountered similar problems?
Thanks for any hints!
Reply
Hallo all!

At first: Alan, many thanx for you How-To. I got vaapi to work with it :-) Cpu load at 2-10%. That is fantastic! And I am a linux newbie :-) (but I tried 4 How-To at all)

But I still have some problems:

1) I added the xorg.conf from the first page here. After activating the "Adjust display refresh rate to match video" the first time, the screen changes the refresh rate after starting a video to 24Hz but xbmc crashes. After restart xbmc (not rebooting the system!) and starting a film with this refreshrate, every things works fine. But the next time (after rebooting the HTPC) starting XBMC with the "Adjust display refresh rate to match video" enabled, no video starts. I only get an black screen where I only can see the mouse-arrow. So I have to kill the XBMC process in another terminal. Here are the last lines from the crash-log from xbmc:

**********************************
19:48:12 T:140116524427008 WARNING: CRenderManager::Configure - timeout waiting for previous frame
19:48:12 T:140116524427008 NOTICE: Display resolution ADJUST : HDMI2: 1920x1080@24p @ 23.98Hz (18) (weight: 0.000)
19:48:12 T:140116796081920 DEBUG: CDVDPlayer::HandleMessages - player started 2
19:48:14 T:140117278939040 NOTICE: Using GL_TEXTURE_2D
19:48:14 T:140117278939040 NOTICE: GL: Using VAAPI render method
19:48:14 T:140117278939040 NOTICE: GL: NPOT texture support detected
19:48:14 T:140117278939040 NOTICE: GL: Using GL_ARB_pixel_buffer_object
19:48:14 T:140117278939040 DEBUG: CGUIInfoManager::SetCurrentMovie(/media/HD Filme 1 WD Elements 2.0 TB/HD Filme 1/Blood Simple (1984)/Blood Simple (1984).mkv)
19:48:14 T:140117278939040 DEBUG: GetMovieId (/media/HD Filme 1 WD Elements 2.0 TB/HD Filme 1/Blood Simple (1984)/Blood Simple (1984).mkv), query = select idMovie from movie where idFile=33
19:48:14 T:140117278939040 DEBUG: Previous line repeats 1 times.
19:48:14 T:140117278939040 DEBUG: LoadVideoInfo, got movie info!
19:48:14 T:140117278939040 DEBUG: Title = Blood Simple
19:48:14 T:140117278939040 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
19:48:14 T:140117278939040 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
19:48:14 T:140117278939040 DEBUG: Activating window ID: 12005
19:48:14 T:140117278939040 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
19:48:14 T:140117278939040 INFO: XRANDR: /usr/lib/xbmc/xbmc-xrandr --output HDMI2 --mode 0xb4
19:48:15 T:140116524427008 WARNING: CRenderManager::FlipPage - timeout waiting for flip to complete
19:48:15 T:140117278939040 ERROR: GLX: Same window as before, refreshing context
19:48:15 T:140117278939040 INFO: GL: Maximum texture width: 4096
19:48:15 T:140116532819712 DEBUG: Thread CVideoReferenceClock start, auto delete: 0
19:48:15 T:140116532819712 DEBUG: CVideoReferenceClock: Setting up GLX
19:48:15 T:140117278939040 DEBUG: ------ Window Init (VideoFullScreen.xml) ------
19:48:15 T:140117278939040 INFO: Loading skin file: VideoFullScreen.xml
19:48:15 T:140117278939040 DEBUG: Load VideoFullScreen.xml: 3.53ms
19:48:15 T:140117278939040 DEBUG: Alloc resources: 3.69ms (3.61 ms skin load)
19:48:15 T:140117278939040 DEBUG: ------ Window Init (VideoOSD.xml) ------
19:48:15 T:140117278939040 INFO: Loading skin file: VideoOSD.xml
19:48:15 T:140117278939040 DEBUG: Load VideoOSD.xml: 1.72ms
19:48:15 T:140117278939040 DEBUG: Alloc resources: 2.76ms (1.79 ms skin load)
19:48:15 T:140117278939040 DEBUG: ------ Window Init (Pointer.xml) ------
19:48:15 T:140116524427008 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
19:48:15 T:140117278939040 DEBUG: CLinuxRendererGL::UploadVAAPITexture - creating vaapi surface for texture 1
19:48:15 T:140116524427008 WARNING: CRenderManager::FlipPage - timeout waiting for previous frame
19:48:15 T:140116532819712 DEBUG: CVideoReferenceClock: GL_VENDOR:tungsten graphics, inc, not using nvidia-settings
19:48:15 T:140116532819712 DEBUG: CVideoReferenceClock: Using RandR for refreshrate detection
19:48:15 T:140116532819712 DEBUG: CVideoReferenceClock: Detected refreshrate: 0 hertz

**********************************
Until now I changed the "pause during refresh rate change" from 6 to 12 seconds. That didn't solve the problem. What can I do to solve the problem?

2) When I boot without the receiver and Plasma-TV (Samsung PS50C7790) turned on, the colors are getting a little purple (but connecting to the HTPC by remote, the colors are ok on my laptop). I already had this Problem with Natty. What can it be and how can I solve this Problem? After rebooting the HTPC with the receiver and TV on, the colors are on the Plasma-TV ok. The screenshots are even both ok. So i think is has maybe only to do with the Plasma-TV?!?

Thanx for your help, guys!
Reply
So, I solved the problems on my own :-)

1) I changed "vertical blanc sync" in xbmc to "Let driver choose"
That solved the problem. Now the TV changes it's refresh rate every time I start a film with another refresh rate. No crashes of XBMC any more :-)
"Sync playback to display" is of and "Pause during refresh rate change" is 6.0 seconds.

That works fantastic. Totally smooth video playback without any stuttering!!!

2) I had to change the hdmi video setting of my receiver, so the receiver passthrough the videosignal. Now I can start the HTPC without turning on the TV and receiver and the colors are like they should be :-)
Reply
couchtyp Wrote:I recently switched to a new hardware platform, namely an Intel Core i3 2100T running on a GigaByte Z68MX-UD2H-B3.

Following this guide, H264 playback works like a charm using vaapi.
My problem is basically any other codec. Playing a MPEG4/DivX/etc file results in green/violet tinted movie, massive frame skipping and faster audio playback - just to name a few examples.


Has anybody encountered similar problems?
Thanks for any hints!

Hi couchtyp,
the problem you describe is related to the latest 7.12 mesa builds on xedgers-ppa. You can fix this by using the 7.11 Mesa packages from Ubuntu ONERIC.

Cu Pitti
Reply
xbmc_pitti Wrote:Hi couchtyp,
the problem you describe is related to the latest 7.12 mesa builds on xedgers-ppa. You can fix this by using the 7.11 Mesa packages from Ubuntu ONERIC.

Cu Pitti

Thanks for the info, Pitti.
I'll switch back to the intel drivers (switched to nvidia temporarily) and will try to downgrade (do a release-upgrade Sad) as soon as I'm home.
Reply
Hey guys,

I have the following problem:

Playing DTS-HD Master or Dolby True-HD Files I can only see, that the receiver is playing DTS or Dolby Digital over HDMI. Or won't I see the DTS-HD Master sign on the receiver because it is lpcm and not bitstreaming?

Many greetings!
Gigabyte GA-H55N-USB3
ITX with a Intel Core i3 540 passive cooling
Ubuntu 10.10 (Maverick) 64-bit Desktop
Samsung PS50C7790 TV
Onkyo TX-NR905 AV-Receiver
Reply
hey guys,

I didn't check the whole thread and I didn't even use the guide, but have any of you seen this kind of screen corruption?

http://www.youtube.com/watch?v=hYi5QKt2KfA

It happens on my Arch Linux machine (Intel G620T, XBMC compiled from Git yesterday, libva 1.0.14). I reinstalled the machine and it was working fine before, so this must have been caused by some update I guess.

I tried different video settings, but none of it fixes it (except disabling VAAPI obviously).

It also doesn't happen always, sometimes it starts as soon as I start the movie, sometimes after a few minutes, sometimes not for hours, it's totally random...

Maybe anyone of you has a clue. I'm not really in the mood to downgrade packages. Wink

There is nothing interesting in the log file btw...
Reply
xbmc_pitti Wrote:Hi couchtyp,
the problem you describe is related to the latest 7.12 mesa builds on xedgers-ppa. You can fix this by using the 7.11 Mesa packages from Ubuntu ONERIC.

Cu Pitti

Litte update on my part...
  • removed everything related to xorg-edgers ppa
  • dist-upgrade to oneiric
  • reinstalled xorg and xbmc
  • created Lircmap.xml for mceusb remote to work with lirc 0.9.0 Wink

Works like a charm now.
Reply
warpnine Wrote:Playing DTS-HD Master or Dolby True-HD Files I can only see, that the receiver is playing DTS or Dolby Digital over HDMI. Or won't I see the DTS-HD Master sign on the receiver because it is lpcm and not bitstreaming?

Does anybody have an solution or explanation for my question above?? Would be great, if somebody has an idea for me Smile

I really, really wants to get the DTS-Master and True-HD-Sound Big Grin
Gigabyte GA-H55N-USB3
ITX with a Intel Core i3 540 passive cooling
Ubuntu 10.10 (Maverick) 64-bit Desktop
Samsung PS50C7790 TV
Onkyo TX-NR905 AV-Receiver
Reply
I bought a lenovo laptop with Intel HD Graphic. I'm glad to find a howto and have this kind of result :

Code:
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

Everything seems good but this what mplayer says :

Code:
VIDEO:  [avc1]  1280x544  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
Error opening/initializing the selected video_out (-vo) device.

Why vdpau talk about nvidia driver when I do not have any nvdia gpu in the laptop ? Is there any link or something to do ?

sorry for my rusty english, I hope you understand something... And many thanks to alan for this howto !
Reply
I'm seeking for some help too.
I can't get VAAPI to work for decoding x264 video.

OS/XBMC version :
Debian GNU/Linux unstable (sid), 3.0.0-1-amd64 x86_64. Built on Sep 12 2011 (Git:Unknown)
This build is from debian-multimedia repository.
xbmc is started in standalone mode without a window manager.
X.Org X Server version : 1.11.1
Debian sid up to date as 2011-10-14.

Hardware (CPU/Video) : Intel® Core™ i3-2100 CPU @ 3.10GHz

vainfo :
Code:
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

XBMC log : http://pastebin.com/8n2ivX24

XBMC logs related to VAAPI :
Code:
12:18:36 T:140354858755840   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:no OpenMax:no VDPAU:yes VAAPI:yes
12:18:36 T:140354867148544   DEBUG: VAAPI - attempting to open codec 28 with profile 100 at level 41 with 4 reference frames
12:18:36 T:140354867148544   DEBUG: VAAPI - initialize version 0.32
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 0
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 1
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 5
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 6
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 7
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 8
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 9
12:18:36 T:140354867148544   DEBUG: VAAPI - profile 10
12:18:36 T:140354867148544   DEBUG: VAAPI - making sure 7 surfaces are allocated for given 4 references
12:18:36 T:140354883933952 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 8611, consumed: 0
Can the problem be caused by the last warning ?
Any other idea that could help identifying/fixing the problem ?
Reply
Hi, I cannot make VAAPI acceleration work. Everytime I activate it there is no video, the audio is playing and I see XBMC controls and the poster of the film in front of a black screen (I can make a screenshot if needed). If I hit "stop", then XBMC freezes and I must restart it.

I'm having exactly the same problem since may :
http://forum.xbmc.org/showthread.php?tid...age=23#229 (some answers on the next page, but nothing helpful)

Although I updated almost every package of my setup, the problem is exactly the same as before.

I tried another XBMC profile : same problem again.
I was using the main branch of xbmc git, but now I'm using opdenkamp's branch (xbmc-pvr) and same problem too.


With VLC it works totally fine, I can see the video :

Code:
DISPLAY=:0 vlc -v --ffmpeg-hw somefilm.mkv
...
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
[0x1c41630] avcodec decoder: Using VA API version 0.32 for hardware decoding.

So it's an XBMC related problem I guess.

Here is what vainfo returns :

Code:
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.15
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD

Here is the log when playing x264 movies :

Code:
14:45:31 T:140359237617408   DEBUG: CDVDFactoryCodec: compiled in hardware support: CrystalHD:no OpenMax:no VDPAU:no [b]VAAPI:yes[/b]
...
14:45:31 T:140359237617408  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: [b]H.264[/b] / AVC / MPEG-4 AVC / MPEG-4 part 10
...
14:45:31 T:140359091230464   DEBUG: VAAPI - attempting to open codec 28 with profile 100 at level 41 with 3 reference frames
14:45:31 T:140359237617408   DEBUG: CheckPlayerInit - dropping packet type:2 dts:125000,000000 to get to start point at 167000,000000
14:45:31 T:140359091230464   DEBUG: VAAPI - initialize version 0.32
14:45:31 T:140359091230464   DEBUG: VAAPI - profile 0
14:45:31 T:140359091230464   DEBUG: VAAPI - profile 1
14:45:31 T:140359091230464   DEBUG: VAAPI - profile 5
14:45:31 T:140359091230464   DEBUG: VAAPI - profile 6
14:45:31 T:140359091230464   DEBUG: VAAPI - profile 7
14:45:31 T:140359091230464   DEBUG: VAAPI - making sure 6 surfaces are allocated for given 3 references
14:45:31 T:140359237617408   DEBUG: CDVDPlayer::SetCaching - caching state 0
14:45:31 T:140359026824960   DEBUG: SetActiveDevice - SetActiveDevice from 0 to 2
14:45:31 T:140359026824960   DEBUG: RemoveActiveDevice - Removing device 0
14:45:31 T:140359901468544   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
14:45:31 T:140359901468544   DEBUG: Loading: /usr/lib64/xbmc/system/ImageLib-x86_64-linux.so
14:45:31 T:140359026824960   DEBUG: PulseAudio: Context authorizing
14:45:31 T:140359026824960   DEBUG: PulseAudio: Context setting name
14:45:31 T:140359026824960   DEBUG: PulseAudio: Context ready
14:45:31 T:140359026824960   DEBUG: PulseAudio: Stream ready
14:45:31 T:140359026824960   DEBUG: PulseAudio: Default buffer attributes, maxlength=4194304, tlength=48000, prebuf=4
4164, minreq=3840
14:45:31 T:140359026824960   DEBUG: PulseAudio: Choosen buffer attributes, maxlength=4194304, tlength=48000, prebuf=4
4164, minreq=3840
14:45:31 T:140359026824960   DEBUG: CPulseAudioDirectSound::Initialize - Channels: 2 - SampleRate: 48000 - SampleBit:
16 - Resample false - IsMusic false - IsPassthrough 3 - audioDevice: default@default
14:45:31 T:140359026824960   DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
14:45:31 T:140359026824960   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(10000,000000, 1)
14:45:31 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:4248,934000, should be:0,000000, error:-424
8,934000
14:45:31 T:140359237617408   DEBUG: CDVDPlayer::HandleMessages - player started 1
14:45:31 T:140359901468544   DEBUG: CGUIInfoManager::SetCurrentMovie(smb://192.168.0.2/data/somefilm.mkv)
14:45:31 T:140359901468544   DEBUG: GetMovieId (smb://192.168.0.2/data/somefilm.mkv), query = select idMovie from movie where idFile=5802
14:45:31 T:140359901468544   DEBUG: LoadVideoInfo, got movie info!
14:45:31 T:140359901468544   DEBUG:   Title = Somefilm
14:45:31 T:140359901468544   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
14:45:31 T:140359901468544   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
14:45:31 T:140359901468544   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
14:45:31 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:443970,185000, should be:309981,691467, err
or:-133988,493533
14:45:32 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:821298,644467, should be:713666,666667, err
or:-107631,977800
14:45:32 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1097187,551667, should be:980166,384791, er
ror:-117021,166875
14:45:34 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2130646,756791, should be:2152626,239765, e
rror:21979,482973
14:45:35 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:3303848,342765, should be:3374500,502729, e
rror:70652,159965
14:45:36 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:4494725,268729, should be:4521509,678838, e
rror:26784,410109
14:45:38 T:140359026824960   DEBUG: CDVDPlayerAudio:: Discontinuity - was:6790161,902838, should be:6807177,170504, e
rror:17015,267666
14:45:39 T:140359026824960 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
14:45:43 T:140359901468544   DEBUG: ------ Window Deinit (Pointer.xml) --
14:46:08 T:140359162083072   DEBUG: Thread Jobworker 140359162083072 terminating (autodelete)
14:46:08 T:140359254402816   DEBUG: Thread Jobworker 140359254402816 terminating (autodelete)
14:46:08 T:140359262795520   DEBUG: Thread Jobworker 140359262795520 terminating (autodelete)
14:46:08 T:140359346558720   DEBUG: Thread Jobworker 140359346558720 terminating (autodelete)

Here is my setup :
MB : Zotac H55-ITX-C-E
CPU : Intel Core i3 540 (Clarkdale with "Intel HD Graphics")
OS : Gentoo Linux 10.0, kernel 3.1.5-gentoo-ipv6-64
XBMC : XBMC-PVR (opdenkamp's xbmc fork) git from today (xbmc-pvr is merged with XBMC mainline's git every week or so).

Packages for VAAPI and XBMC :

Code:
[color=green]x11-libs/libdrm-2.4.27[/color]  USE="-libkms -static-libs" VIDEO_CARDS="intel -nouveau -radeon -vmware"
[color=green]media-libs/mesa-7.11.2[/color]  USE="classic egl gallium llvm nptl shared-glapi -bindist -debug -gbm -gles -motif -openvg -osmesa -pax_kernel -pic (-selinux) -shared-dricore" VIDEO_CARDS="intel -mach64 -mga -nouveau -r128 -radeon -savage -sis -tdfx -via -vmware"
[color=green]x11-base/xorg-server-1.11.2-r2[/color]  USE="ipv6 nptl udev xorg -dmx -doc -kdrive -minimal -static-libs -tslib -xnest -xvfb"
[color=green]x11-drivers/xf86-video-intel-2.17.0-r3[/color]  USE="dri -sna"
[color=green]x11-libs/libva-intel-driver-1.0.15[/color]
[color=green]x11-libs/libva-1.0.15[/color]  USE="opengl" VIDEO_CARDS="intel -dummy -fglrx -nvidia"
[color=green]media-video/ffmpeg-9999[/color]  USE="X alsa ass bzip2 encode faac hardcoded-tables mmx mp3 network pulseaudio qt-faststart rtmp sdl ssse3 theora threads truetype vaapi vorbis vpx x264 xvid zlib -3dnow -3dnowext -aac -aacplus (-altivec) -amr -avx -bindist -cdio -celt -cpudetection -debug -dirac -doc -frei0r -gnutls -gsm -ieee1394 (-iwmmxt) -jack -jpeg2k -libv4l -mmxext -modplug (-neon) -openal -openssl -oss -pic -schroedinger -speex -static-libs -test -v4l -vdpau (-vis)"
[color=green]media-tv/xbmc-pvr-9999[/color]  USE="airplay airtunes alsa avahi bluray css debug projectm pulseaudio rsxs rtmp samba sse sse2 udev vaapi webserver xrandr (-altivec) -goom -joystick -midi -profile -vdpau"

I have the same versions of packages as specified here :
http://intellinuxgraphics.org/2011Q4.html

When the VAAPI option isn't activated, everything works fine.

Any Ideas ? Am I the only one who has this problem with VAAPI acceleration in XBMC ?
Reply
Guys, I have a brand new guide, which is a lot more simplified and probably works a lot better with first generation Core processors.

http://forum.xbmc.org/showthread.php?tid=114368

I'd appreciate if someone could test it on first gen Core GPUs so that I can recommend the new guide to other users with the CPUs.
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
It didn't help for me (and I'm using Gentoo so the commands are different Wink), but for Ubuntu users your guide looks very simple indeed, good work.
Reply
Well, it looks like it came from that configure option :
--enable-external-libraries

I recompiled XBMC without it and now it works !

Even if my external ffmpeg was up to date from the git everytime and with VAAPI activated, it looks like it was messing up with the VAAPI of XBMC... So now I'm using XBMC's internal ffmpeg, I will test different video formats to see if everything is ok.
Reply
  • 1
  • 15
  • 16
  • 17
  • 18(current)
  • 19

Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU4