Kodi Community Forum
[LINUX] HOW-TO use VAAPI HW Acceleration on new Intel Sandy Bridge platform - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: [LINUX] HOW-TO use VAAPI HW Acceleration on new Intel Sandy Bridge platform (/showthread.php?tid=96669)

Pages: 1 2 3 4 5 6 7 8 9 10 11


- Krautmaster - 2011-06-10

vainfo shows me the correct output but xbmc 11 pre crashes when i try to play a HD movie.

Last crashlog lines are:

Quote:4:35:21 T:2797816688 M:1790603264 DEBUG: VAAPI - making sure 7 surfaces are allocated for given 4
references
14:35:21 T:2797816688 M:1789739008 INFO: ffmpeg[A6C34B70]: [h264] Cannot parallelize deblocking t
ype 1, decoding such frames in sequential order

any ideas?


- gven - 2011-06-12

Krautmaster Wrote:vainfo shows me the correct output but xbmc 11 pre crashes when i try to play a HD movie.

Last crashlog lines are:



any ideas?

Have you tried running it with a SD h264 encoded video to see if the decoding is handed off to the CPU by using VAAPI? A DVD for example ripped into a 480p MKV file.

It is useful to separate out multiple issues and use the simplest test case to isolate the problem. If the above works, then the problem isn't necessarily with VAAPI, etc. If it doesn't then the first step would be to get VAAPI running just to do the hardware decoding without introducing other potential parameters.


- sadboy - 2011-06-13

waha Wrote:Just wish to say thanks for this guide. I had been pulling my hair out trying to get 1080p24 output working on my Gigabyte H67M-UD2H-B3.

Had to use a slightly different modeline to get my Sony KDL40EX720 TV to accept the 1080p24 signal:
Code:
Modeline "1920x1080@24p" 74.16 1920 2558 2602 2750 1080 1084 1089 1125 +HSync +VSync

Ahh!! Thank you so much. Wasted so much time trying all the god damn modelines out there, and yours is the first that works at 1920x1080 for my 46EX720!

Do you by any chance have a working modeline for 1080@60p? My Windows 7 box can output to the TV just fine, and the strange thing is using MonInfo on Windows gives me a modeline of:
Code:
Modeline "1920x1080"  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync
which incidentally is also correctly acquired from the EDID by Linux according to Xorg.0.log, but this modeline simply doesn't work on Linux.No


VC1 problem - dig2112 - 2011-06-14

First off, thank you for this guide. Worked like a charm on my Core i3 2100T with only one problem. Hardware acceleration is working on all H264 content but I am having trouble with VC 1 content. The video is all purple and choppy. I tried a few different VC 1 files and had the same result. Log is attached.

Any suggestions on where I should look to fix it?

http://pastebin.com/vEmiBaLQ

Thanks!


- alanwww1 - 2011-06-15

dig2112 Wrote:First off, thank you for this guide. Worked like a charm on my Core i3 2100T with only one problem. Hardware acceleration is working on all H264 content but I am having trouble with VC 1 content. The video is all purple and choppy. I tried a few different VC 1 files and had the same result. Log is attached.

Any suggestions on where I should look to fix it?

http://pastebin.com/vEmiBaLQ

Thanks!

Hello !

I have the same issues. I think it is a driver problem. VC1 decoding on Sandy Bridge has just been introduced to the driver lately. I think there are some vc1 files which play ok, but most of them not. Please if you have time fill in a bugreport here:

https://bugs.freedesktop.org/enter_bug.cgi?product=libva

Would be good to test out some more bitrates types of vc1 files to determine if the problem applies for all types.

Thx


Sandy Bridge entry-level (G620, G620T, G840, G850) - csonger - 2011-06-15

Hi!

Has anybody tried this on the new Sandy Bridge entry-level (G620, G620T, G840, G850) cpus?
I haven't found any useful information about them.
It would be nice if I don't need to buy the much more expensive Core i3 for a HTPC.

thanks


- alanwww1 - 2011-06-15

csonger Wrote:Hi!

Has anybody tried this on the new Sandy Bridge entry-level (G620, G620T, G840, G850) cpus?
I haven't found any useful information about them.
It would be nice if I don't need to buy the much more expensive Core i3 for a HTPC.

thanks

I think it should work, but i have never tried. The architecture looks the same.


- csonger - 2011-06-15

alanwww1 Wrote:I think it should work, but i have never tried. The architecture looks the same.

I hope someone will confirm this. Smile

I have tested the 1156 cpus (used your other tutorial) and the entry level G6950 cpu failed on my tests (5 out of 10 video samples). For example the Planet Earth sample (aka killa sample). The Core i3-530 works like a charm (10 out of 10 works).
That's why I am a little bit uncertain about the new entry level cpus.


Bug Submitted - dig2112 - 2011-06-15

alanwww1 Wrote:Hello !

I have the same issues. I think it is a driver problem. VC1 decoding on Sandy Bridge has just been introduced to the driver lately. I think there are some vc1 files which play ok, but most of them not. Please if you have time fill in a bugreport here:

https://bugs.freedesktop.org/enter_bug.cgi?product=libva

Would be good to test out some more bitrates types of vc1 files to determine if the problem applies for all types.

Thx

I submitted a bug report this morning.

https://bugs.freedesktop.org/show_bug.cgi?id=38344

I'll post any updates as I get them.

Thanks.


- Drae - 2011-06-15

I have a G620T and so far it works "fine" - well issues with all Sandy Bridge processors not withstanding of course (EDID detection, etc.). As above - VC-1 playback for everything I tried is non-functional, ranging from a complete lockup to at best the purple blockey mess described above. Not sure if others are seeing this but a number of h.264 vids can be a bit jerky at times - just for a moment or two then it catches up. It's not consistent, least doesn't seem to be, just a moments "pause" then speedup and back to normal. Processor load is very low and as I say it's inconsistent so I find it hard to believe it's the G620. I've got hold of a GT210 for the time being - hopefully Intel et al will resolve all the issues and I can do away with add-in card.

This is with the latest git pulls of libva, mesa and alsa 1.0.24 from ppa:ubuntu-audio-dev on a 2.6.38-8 kernel. With xbmc git from June 8th - pre-scraper issues ... latest git with apparent fixes for the scraper issue aren't compiling for me as of this post.


- csonger - 2011-06-15

Drae Wrote:I have a G620T and so far it works "fine" - well issues with all Sandy Bridge processors not withstanding of course (EDID detection, etc.). As above - VC-1 playback for everything I tried is non-functional, ranging from a complete lockup to at best the purple blockey mess described above. Not sure if others are seeing this but a number of h.264 vids can be a bit jerky at times - just for a moment or two then it catches up. It's not consistent, least doesn't seem to be, just a moments "pause" then speedup and back to normal. Processor load is very low and as I say it's inconsistent so I find it hard to believe it's the G620. I've got hold of a GT210 for the time being - hopefully Intel et al will resolve all the issues and I can do away with add-in card.

This is with the latest git pulls of libva, mesa and alsa 1.0.24 from ppa:ubuntu-audio-dev on a 2.6.38-8 kernel. With xbmc git from June 8th - pre-scraper issues ... latest git with apparent fixes for the scraper issue aren't compiling for me as of this post.

Thanks you for your response.
Could you try this sample video?

If you press the "o" button you can see the dropped frames. If it stops at 18 than it's perfect. May be the sample doesn't start with an I frame. Doesn't matter.
This is the first video I always start my tests with. As I mentioned the Core i3 540 played it with 18 drops. The G6950 just struggled (above hundred).

thanks


- alanwww1 - 2011-06-15

Be careful if you test with the "killa sample", because it does have different container and videocodec fps defined which could cause framedrops by itself if adjust refresh rate is on. I woukd try it with adjust refresh rate turned off, with 24hz (that's the correct rate if i rembember well)

I i were you, i'd try a high bitrate part of the movie Dark Knight.


- arnoo - 2011-06-16

dig2112 Wrote:First off, thank you for this guide. Worked like a charm on my Core i3 2100T with only one problem. Hardware acceleration is working on all H264 content but I am having trouble with VC 1 content. The video is all purple and choppy. I tried a few different VC 1 files and had the same result. Log is attached.

Any suggestions on where I should look to fix it?

http://pastebin.com/vEmiBaLQ

Thanks!

i disabled vaapi for vc1 videos so i could watch my movies temporarily.


- waha - 2011-06-21

sadboy Wrote:Do you by any chance have a working modeline for 1080@60p?
Sorry for the slow reply,
Code:
Modeline    "1920x1080@60p"    148.500 1920 2008 2056 2200 1080 1084 1089 1125 +hsync +vsync
That's the modeline I use on my Sony TV. for 1080p@60


- nicob - 2011-06-25

Videoscaling with Lanczos 2 or 3 or Bicubic seem to be broken since last week... (video speedup) Took me some time, why it was working without VAAPI... xbmc would default back to bilinear...