•   
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 19
  •   
[LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU
#61
alanwww1 Wrote:Man, why not read my guide just once and do it that way. Your xorg.conf is not ok. You have to specify the output being used on the motherboard. Just like i did in the guide (first post). Please do it that way. Take a moment and check it carefully.
Hi Alan.
I am pretty familiar with xorg.conf to understand what is required and what isn't. but here is xorg.conf I am using from your guide:
Code:
Section "Monitor"
        Identifier   "HDMI2"
        HorizSync       14.0 - 70.0
        VertRefresh     48.0 - 62.0

        Modeline "[email protected]"  74.16 1920 2558 2602 2750 1080 1084 1089 1125 +HSync +VSync
        Modeline "[email protected]"  74.25 1920 2448 2492 2640 1080 1084 1089 1125 +HSync +VSync
        Modeline "[email protected]"  148.35 1920 2008 2052 2200 1080 1084 1089 1125 +HSync +VSync
        Modeline "[email protected]"  148.50 1920 2448 2492 2640 1080 1084 1089 1125 +HSync +VSync
        Modeline "[email protected]"  74.18 1920 2008 2052 2200 1080 1084 1094 1124 +HSync +VSync Interlace
        Modeline "[email protected]"  74.25 1920 2448 2492 2640 1080 1084 1094 1124 +HSync +VSync Interlace
        ModeLine "[email protected]" 74.175 1920 2558 2602 2750 1080 1084 1089 1125 +hsync +vsync
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"
        Option "FallbackDebug" "boolean"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "HDMI2"
        DefaultDepth    24
        SubSection     "Display"
                Depth       24
                Modes "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]"
        EndSubSection

EndSection

I don't see any refresh rates from Settings->System->Video, except 0. and don't see refresh change:
Code:
09:19:42 T:140027132634896 M:3479425024  NOTICE: running thread: CDVDPlayerAudio::Process()
09:19:42 T:140027132634896 M:3479425024  NOTICE: Creating audio device with codec id: 86017, channels: 1, sample rate: 48000, no pass-through
09:19:42 T:140027234633488 M:3479425024  NOTICE:  fps: 25.000000, pwidth: 640, pheight: 480, dwidth: 640, dheight: 480
09:19:42 T:140027234633488 M:3479650304 WARNING: CRenderManager::Configure - timeout waiting for previous frame
09:19:42 T:140027234633488 M:3479650304  NOTICE: Display resolution ADJUST : 1920x1080 (12) (weight: 1.000)
09:19:42 T:140027863889856 M:3479113728  NOTICE: Using GL_TEXTURE_2D

could you post xbmc.log with notice that refresh was changes? and xbmc build configuration after "./configure".
just to find the root on my system.
Reply
#62
@magnimus

Have you checked that your output is HDMI2 ? Not on all motherboard has it on that one. (The way to do is in the first post)

Also you need the prefix stuff after ./configure.

I don't have more to say on this. I know that it works i tested several times. Please make your own tests and figure out the way to make it work. This is exactly what i did with my system.
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
#63
alanwww1 Wrote:@magnimus

Have you checked that your output is HDMI2 ? Not on all motherboard has it on that one. (The way to do is in the first post)

Also you need the prefix stuff after ./configure.

I don't have more to say on this. I know that it works i tested several times. Please make your own tests and figure out the way to make it work. This is exactly what i did with my system.

yes. X.log says HDMI2. I am sure it is correct.
I know about configure's parameters. I need to double check my ones are the same as yours and/or xbmc autodeteced the same things. could you please post the last output of configure.
Reply
#64
Thnx for all your efforts alan! Those efforts make mediacenters cheaper since ION will have some competition.

What about flash 10.2 hardware acceleration in Linux with VAAPI? Does this work?

And maybe the Topic titles should be changed to attrackt also AMD people.
Reply
#65
Robotica Wrote:What about flash 10.2 hardware acceleration in Linux with VAAPI? Does this work?

Hi Robotica !

Thanks for the feedback. As i know flash hw acceleration currently only supports vdpau, but i think that will change in the future as vaapi gets mature.

Unfortunatelly i dont't have an AMD hardware. Any feedback of how the guide works (or what points has to be changed to make it work) on AMD hardware is more than wellcome. I will add it to the guide.
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
#66
ok. the issue was with mesa lib. I have updated to the last SVN/Git version and got VAAPI working.
Also rollback xf86-video-intel a little bit, because of warning spamming in Xorg.log (the same as on page 5).

Now need to fix refresh rate.

Xorg.log says:
Code:
4390.969] (II) intel(0): Not using mode "[email protected]" (vrefresh out of range)
[  4390.969] (II) intel(0): Not using mode "[email protected]" (vrefresh out of range)
[  4390.969] (II) intel(0): Not using mode "[email protected]" (vrefresh out of range)

so, doesn't switch to these modes on playback and uses default @60.
And getting a lot of drops with BD files at the beginning of each Title.
Reply
#67
Hey Allan, first of all Thank You for your hard work to help us Core users!!
I followed every single step of your guide and everything worked like a charm, except on the patch step :

Quote:wget http://trac.xbmc.org/raw-attachment/tick...euse.patch
patch -p0 vaapi_surface_reuse.patch

It downloads and save the patch into xbmc dir but the patch command doesn't do anything. It stands there forever and without any reponse.

Any clue why that?

Ty
Reply
#68
magnimus Wrote:
Code:
(vrefresh out of range)
so, doesn't switch to these modes on playback and uses default @60.
And getting a lot of drops with BD files at the beginning of each Title.

Try to put this into xorg.conf monitor section.
Code:
HorizSync   14.0 - 70.0
VertRefresh 24.0 - 62.0

I hope these modes are supported by your screen.

Also don't worry about dropped frames until refresh rate is not paired with the film fps. Specially don't worry about the ones at the beginning. That is normal.
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
#69
surfriderbr Wrote:It downloads and save the patch into xbmc dir but the patch command doesn't do anything. It stands there forever and without any reponse.

Thanks for the feedback surfriderbr !

I made a typo. Here is the right line:

Code:
patch -p0 < vaapi_surface_reuse.patch

I also corrected the first post.
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
#70
DiabboVerdde Wrote:I followed all instructions on the tutorial, compiled everything with VAAPI support, but when I try to run the patched mplayer, I get this:

Code:
[email protected]:~/mplayer-vaapi-20100713/mplayer-vaapi# ./mplayer -vo vaapi -va vaapi /media/regula/Series/House/Season\ 7\ \(720p\)/House.S07E04.720p.HDTV.X264-DIMENSION.mkv
MPlayer SVN-r31722-4.4.3 (C) 2000-2010 MPlayer Team

Playing /media/regula/Series/House/Season 7 (720p)/House.S07E04.720p.HDTV.X264-DIMENSION.mkv.
libavformat file format detected.
[matroska @ 0x940af90] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
VIDEO:  [H264]  1280x720  0bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
SUB: Added subtitle file (1): /media/regula/Series/House/Season 7 (720p)/House.S07E04.720p.HDTV.X264-DIMENSION.srt
libva: libva version 0.31.1-sds1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/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, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [oss] 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.
[email protected]:~/mplayer-vaapi-20100713/mplayer-vaapi#

My motherboard is an Intel DG45FC, with G45 chipset and an onboard GMA X4500HD. Processor is a dual core 2Ghz E2180.

I am trying to enable vaapi on the newest XBMCLive installation, which is a stripped-down version of Ubuntu 10.04. I replaced the factory xbmc binaries for the vaapi-enabled ones I compiled. If I try to play any h264 files, xbmc crashes.

my vainfo is:
Code:
[email protected]:~/mplayer-vaapi-20100713/mplayer-vaapi# vainfo
libva: libva version 0.31.1-sds1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/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

Then, what am I missing? Any Idea on what is wrong? isnt GMA X4500HD supported for VAAPI acceleration?

regards,

DiabboVerdde

I also just tried with the same board just now because I was bored and wanted to see if it worked.
Almost the same results as you except the VAAPI-driver isn't present in mplayer

mplayer -vo help does not show the driver and XBMC crashes when I try to run any x264-file. Tried to re-do the steps but with no luck.

vainfo shows the driver as installed.
Reply
#71
Handa Wrote:I also just tried with the same board just now because I was bored and wanted to see if it worked.
Almost the same results as you except the VAAPI-driver isn't present in mplayer

mplayer -vo help does not show the driver and XBMC crashes when I try to run any x264-file. Tried to re-do the steps but with no luck.

vainfo shows the driver as installed.
you need mplayer-vaapi, not common mplayer.
Reply
#72
magnimus Wrote:you need mplayer-vaapi, not common mplayer.

Well I followed the instructions exactly as they say in the first post and that is mplayer-vaapi.
Reply
#73
Handa Wrote:I also just tried with the same board just now because I was bored and wanted to see if it worked.

Yeah G45 is a lot different system. Maybe there should be something done differently or additionally. I am not sure if G45 drivers do work already.

So we can say that the guide is working on Core ix systems, but not yet on G45. If anyone way able to get it work on a G45 just let us know. Thx
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
#74
Can't you compile this VAAPI-piece of heaven into a live CD? Wink
Reply
#75
MathSWE Wrote:Can't you compile this VAAPI-piece of heaven into a live CD? Wink

Don't have time, sorry. But in time the vaapi patch goes into trunk and you can have it with xbmc svn ppa and install from there.
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
  •   
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 19
  •   
 
Thread Rating:
  • 4 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
[LINUX] HOW-TO use VAAPI HW Acceleration in Intel Core i3 / i5 / i7 integrated GPU54
This forum uses Lukasz Tkacz MyBB addons.