You are not logged in.

#1 2010-12-25 04:33:03

brianhanna
Member
Registered: 2009-10-30
Posts: 157

[SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

I'm running XBMC on x86_64 with Intel x4500 graphics (I know - ghetto). 

After the upgrade to XBMC 10.0, it crashed whenever I tried to play a video in h264.  It seems the new version of XBMC in the repos tries to use VDPAU by default.  You can disable that in XBMC by going to System -> Video -> Playback and clicking off the VDPAU and VAAPI radio buttons.  Then change the "Render Method" to Software.  Those are the settings that worked for me but you may have to play around wth the settings for different systems.

Hope that helps somebody.  The crash logs had me a little confused & running down some rabbit trails for a couple hours.

Offline

#2 2010-12-25 07:17:25

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

Sounds a bit strange to me that Xbmc would enable support for stuff that isn't even present on the system (although libvdpau is probably installed... Dreaded dependencies). Probably your upgrade messed up (I assume you upgraded from 9.11).

Either way, VA-API is middle-end for VDPAU now also afaik, and I think your X4500 should support (limited) hardware acceleration?

http://www.freedesktop.org/wiki/Software/vaapi


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-12-25 12:32:39

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

I also noticed this. I find it weird that I can not use VA-API to play those videos, when 'vainfo' shows:

libva: libva version 0.31.1
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.31
vainfo: Driver version: i965 Driver 0.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileH264Baseline           :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointVLD

That means it's supported, right?

Offline

#4 2010-12-25 13:07:56

brianhanna
Member
Registered: 2009-10-30
Posts: 157

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

I tried it with VAAPI enabled and it crashes.  Works fine with it disabled though.  I thought it might work too but it doesn't on my system.

I did upgrade from 9.11 and the problem started as soon as I upgraded.

The crash log complains about not being able to find lsb_release.  I assume when it can't find that, it may use a list of most likely hardware configurations?

Last edited by brianhanna (2010-12-25 13:17:38)

Offline

#5 2010-12-25 13:14:12

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,605
Website

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

@brianhanna - long shot but could it something in your profile?

$ mv ~/.xbmc ~/dotxbmc-backup
$ xbmc

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2010-12-25 13:27:09

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

brianhanna wrote:

I tried it with VAAPI enabled and it crashes.  Works fine with it disabled though.  I thought it might work too but it doesn't on my system.

I did upgrade from 9.11 and the problem started as soon as I upgraded.

The crash log complains about not being able to find lsb_release.  I assume when it can't find that, it may use a list of most likely hardware configurations?

Try running the binary directly (located in /usr/lib/xbmc/), what's in /usr/bin is just a wrapper script.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2010-12-25 13:48:43

brianhanna
Member
Registered: 2009-10-30
Posts: 157

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

Try running the binary directly (located in /usr/lib/xbmc/), what's in /usr/bin is just a wrapper script.

I tried it but it didn't seem to make a difference.  It's working fine for now as long as I use software rendering.

Does this sound like there's a bug in the VAAPI implementation?  If there's any log info I can provide to the dev's, I'd be happy to do it.  I'm just not sure what would be helpful.

Offline

#8 2010-12-25 14:42:46

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

I also upgraded but I moved the old config before upgrade. I installed lsb-release but the crash is not related to that. Also, in previous versions of XBMC I don't think VA-API was supported (iirc), so this is probably just a bug in the implementation. AFAIK HW-acceleration should work with gm45 and h.264.

Offline

#9 2010-12-25 19:21:51

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

KlavKalashj wrote:

I also upgraded but I moved the old config before upgrade. I installed lsb-release but the crash is not related to that. Also, in previous versions of XBMC I don't think VA-API was supported (iirc), so this is probably just a bug in the implementation. AFAIK HW-acceleration should work with gm45 and h.264.

Using mplayer-vaapi and vaapi for playing back h.264 with gm45 doesn't work for me.. I get sound + black screen.  My vainfo is identical to the one posted above. Do I need more up-to-date drivers than the ones in testing?

Offline

#10 2010-12-25 20:46:57

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

Does gm45 even support vaapi? It would be news to me if it does. From what I know only HD graphics (Core i3/i5 integrated) has support.

Offline

#11 2010-12-25 21:17:02

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

well it works for me using:

mplayer -fs -va vaapi file.mkv

but after a while it starts tearing (maybe I need to activate cache?)
the black screen problem happens when using gnome-mplayer and with

mplayer -fs -vo vaapi file.mkv

also: mplayer crashes with

mplayer -fs -vo vaapi -va vaapi file.mkv
mariachi@koi ~/torrents % mplayer -vo vaapi -va vaapi BBC.The.Beauty.of.Diagrams.3of6.Newtons.Prism.HDTV.x264.AC3.MVGroup.org.mkv
MPlayer SVN-r32723-4.5.1 (C) 2000-2010 MPlayer Team
161 audio & 345 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing BBC.The.Beauty.of.Diagrams.3of6.Newtons.Prism.HDTV.x264.AC3.MVGroup.org.mkv.
libavformat file format detected.
[matroska,webm @ 0xb027bf0] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0, -alang eng
[lavf] stream 2: subtitle (unknown), -sid 0, -slang eng
VIDEO:  [H264]  1280x720  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
libva: libva version 0.31.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/i965_drv_video.so
libva: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VA API accelerated codec.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vaapi] 1280x720 => 1280x720 H.264 VA-API Acceleration 
[VD_FFMPEG] XVMC-accelerated MPEG-2.
mplayer: i965_avc_ildb.c:621: i965_avc_ildb_decode_init: Assertion `avc_ildb_context->urb.cs_start + avc_ildb_context->urb.num_cs_entries * avc_ildb_context->urb.size_cs_entry <= ((((&i965->intel)->device_id == 0x0042) || ((&i965->intel)->device_id == 0x0046)) ? 1024 : (((&i965->intel)->device_id == 0x2E02 || (&i965->intel)->device_id == 0x2E12 || (&i965->intel)->device_id == 0x2E22 || (&i965->intel)->device_id == 0x2E32) || ((&i965->intel)->device_id == 0x2A42)) ? 384 : 256)' failed.


MPlayer interrupted by signal 6 in module: decode video
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.

I stand corrected, no GM45 yet... only support for the driver in general is done: http://lists.freedesktop.org/archives/l … 00355.html damn hmm

Last edited by el mariachi (2010-12-25 21:21:04)

Offline

#12 2010-12-25 23:27:45

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

Apparently the 4500HD should support h.264 profiles and MPEG-2, whereas the regular 4500 chip can only accelerate MPEG-2 playback. At least, that's what googling told me yesterday. I can't try for myself, I just have a GMA945.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#13 2010-12-26 00:50:28

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

sucks to have a 4500MHD hmm

Last edited by el mariachi (2010-12-26 00:53:35)

Offline

#14 2010-12-26 03:23:11

brianhanna
Member
Registered: 2009-10-30
Posts: 157

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

My x4500 has an HDMI port and I can get audio over it to my HDTV.  The video quality doesn't seem bad at all even using software rendering and the Intel drivers are open and stable.  My HTPC is also really quiet.  I know Intel graphics may not be the best but I'm still a fan.

.:B:. - Maybe I'll try encoding something in MPEG-2 and see how that works.  I have some .ogv movies that worked without disabling VDPAU or VAAPI.

Last edited by brianhanna (2010-12-26 04:49:32)

Offline

#15 2010-12-26 10:13:49

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

.:B:. wrote:

Apparently the 4500HD should support h.264 profiles and MPEG-2, whereas the regular 4500 chip can only accelerate MPEG-2 playback. At least, that's what googling told me yesterday. I can't try for myself, I just have a GMA945.

Yeah, physically. And you can add VC-1 decoding to that. But in terms of software support, there's nothing.

@el mariachi: The M just means it's mobile. The "HD" matters. It means the chip has a bitstream decoder for h264 and VC-1. But again, that's physically, you need support in the Linux driver and in libva that makes use of this bitstream decoder. And this support is there currently only for Core i3/i5 integrated, and even there only for h264 but not for VC-1.

Here's the latest message on it: http://lists.freedesktop.org/archives/l … 00406.html

Last edited by Gusar (2010-12-26 10:15:47)

Offline

#16 2010-12-26 13:14:05

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

Guess it's only a matter of time (as always tongue) support should've been here in Q3. Hope it'll come next year, I'm sick of tearing movies :S

Offline

#17 2010-12-26 13:15:55

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

I'd recommend anyone who wants hardware acceleration to get an nVidia GPU or a Broadcom CrystalHD mini PCI-E card smile. Intel doesn't seem to be in a hurry.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#18 2010-12-26 13:22:58

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

I hate Broadcom so no money to those monkeys until they make my wireless card work 100% >:D
I guess I'll swallow the toad (portuguese saying) and keep waiting...

Offline

#19 2010-12-26 13:27:09

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

In the meantime I can recommend the mplayer-mt-git from aur, thanks to that I can play 1080p videos flawlessly on my Intel CULV 1,30GHz.

Offline

#20 2010-12-26 13:48:43

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

el mariachi wrote:

I hate Broadcom so no money to those monkeys until they make my wireless card work 100% >:D
I guess I'll swallow the toad (portuguese saying) and keep waiting...

Well CrystalHD drivers are 100% open source smile. I was skeptical as well at first about Broadcom, but it's a purchase I'll never regret.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#21 2010-12-26 15:18:19

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

KlavKalashj wrote:

In the meantime I can recommend the mplayer-mt-git from aur, thanks to that I can play 1080p videos flawlessly on my Intel CULV 1,30GHz.

I used to use that but it didn't work quite well... with what options do you issue the mplayer command? (besides the obvious thread one)

Offline

#22 2010-12-26 17:47:16

KlavKalashj
Member
Registered: 2008-10-09
Posts: 376

Re: [SOLVED] XBMC 10.0 crashes playing h264 videos with Intel graphics

el mariachi wrote:
KlavKalashj wrote:

In the meantime I can recommend the mplayer-mt-git from aur, thanks to that I can play 1080p videos flawlessly on my Intel CULV 1,30GHz.

I used to use that but it didn't work quite well... with what options do you issue the mplayer command? (besides the obvious thread one)

http://pastebin.com/5GBbUkBp

Here is my config. I've been experimenting with vo's, and I'm trying out gl_nosw now, but doesn't seem to be much difference from gl, that I normally use. Also, sorry if I'm leading this thread to off topic.

Offline

Board footer

Powered by FluxBB