View previous topic :: View next topic |
Author |
Message |
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Mon May 05, 2014 10:13 am Post subject: XBMC tearing during playback |
|
|
I am running a Intel NUC D34010WYK with a no-multilib 64bit installation of Gentoo.
With some pain I got VAAPI working (had to manually unmask libva version 1.3.0 for that) so decoding runs nicely through the GPU, leaving the CPU doing almost nothing.
Currently I am using XBMC 13.0_RC1, but the Beta versions and 12.something version experienced my below problem as well.
Before I got VAAPI up and running properly, and even now with VAAPI, I have screen tearing during video playback.
I tried all sorts of options in XBMC like video refresh on/off, and configured my television.
Sometimes the tearing is less, but it's always there, making it very annoying to watch something.
I also tried OpenElec (XBMC Beta versions) and not a single tearing there at all.
So there must be something wrong in my configuration of the system, I just can't figure out what it is.
The NUC is hooked up to the TV using a HDMI cable. Audio is passed on that cable too, to the TV.
I used the Gentoo guides on setting up X.org and VAAPI, adjusting the kernel, etc.
Hopefully anyone here can give me some pointers as where to look next.
I have no clue anymore... |
|
Back to top |
|
|
Sakarias n00b
Joined: 12 May 2007 Posts: 60
|
Posted: Wed May 14, 2014 7:26 pm Post subject: |
|
|
Same problem i3 ivy. HD 4000
Try
gentoo-sources-3.13.6
mesa-10.1
xf86-video-intel-2.99.910
libdrm-2.4.52
libva-1.3.0
cairo-1.12.16
xorg-server-1.15.0
(https://01.org/linuxgraphics/downloads)
xorg.conf
Option "TearFree" "True"
Are you try xbmc-fernetmenta? _________________ ---
Sakarias |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Wed May 14, 2014 7:38 pm Post subject: |
|
|
While your message came in I was just trying to compile VDPAU in, even though intel is not supported with that, but OpenElec shows it as being used. So I figured I'd give it a go, and if it doesn't work I can always remove the Use flag and rebuild stuff again.
But the compile failed with some error, so removed the Use flag already.
When that is done, I will give your list/link a go an check all that.
One thing I noticed is Cairo. I know I don't have that in yet. It's not in any guide I've read on XBMC on Gentoo.
If you can call that a guide...
Also, the xorg.conf option I've not read about before too.
Is it just that line in, and nothing else?
I haven't tried xbmc-fernetmenta. Read about it, but it seemed to me I didn't need that for the NUC.
Although I forgot the details why not.
Last edited by weust on Mon Jan 05, 2015 4:46 pm; edited 1 time in total |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Wed May 14, 2014 8:25 pm Post subject: |
|
|
I updated all that I could to the latest version available in Portage.
Except gentoo-sources since 3.13.x isn't even in Portage, and 3.14.4 bugged out on static-dev because I use udev.
And the solution given to create a /tmp/newroot and build it in there didn't work either.
So I need to look into that.
And when I started XBMC and play a movie, I only hear sound. The controls from XBMC show fine when I press enter, and O shows the info on the decoding, but the video itself is not shown.
Getting late here, so tomorrow I will give a go with the specific versions from the list.
Btw, I am running gentoo-sources-3.12.6. For me it shows as the latest stable version. |
|
Back to top |
|
|
Sakarias n00b
Joined: 12 May 2007 Posts: 60
|
Posted: Thu May 15, 2014 8:55 pm Post subject: |
|
|
Try xorg.conf
Section "Device"
Identifier "Device0"
Driver "Intel"
Option "AccelMethod" "sna" #uxa
Option "TearFree" "true"
EndSection
Windowmanager is openbox and desktop lxde & slim _________________ ---
Sakarias |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Thu May 15, 2014 9:00 pm Post subject: |
|
|
Seeing your post I remembered I forgot the config of xorg. Whoops!
Haven't had the time tonight to try it out, so will this weekend.
Thanks for the entry. Kinda had the idea I needed more then just the one line.
I only have xorg installed, no window or desktop manager since the NUC boots straight into XBMC. |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Sun May 25, 2014 5:20 pm Post subject: |
|
|
Finally had the time to investigate further.
The problem with the no video showing was due to libva and libva-intel-driver.
I reverted back to the stable versions (libva-1.0.15 and libva-intel-driver-1.0.17) and I got video playback again.
I did use a xorg.conf file with the options mentioned here.
Need to tidy things up a bit, but at least I have no tearing anymore. So I am very happy with that!
Now to figure out why a world update gives me three blocks...
And then update libva and libva-intel-driver one version at a time to figure the one that actually works.
Oh, and XBMC it self. Running 13.0 RC1 now and I saw 13.0_p2 as an ebuild. |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Mon Jul 07, 2014 6:57 pm Post subject: |
|
|
For some reason vaapi wasn't used anymore on my NUC. No clue why.
So I tried libva version 1.3.0 and its intel driver, but again no display.
Seems that in he meantime version 1.3.1 of libva got released (intel driver still at 1.3.0) and with that I got vaapi back, and display! |
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Tue Jul 08, 2014 4:36 pm Post subject: |
|
|
I have a haswell core i5 with hd4600
I get tons of tearing in VLC with any configuration.
I use this in my xorg.conf
Code: | Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "Tearfree" "true"
EndSection
|
It goes away after 30 seconds of playback. It comes back anytime I seek through the video, it takes about 30 seconds to settle. It is insanely annoying.
I figured since HD4600 was more powerful than the quadro in my old laptop, and uses less power, it'd be great. Between the lack of VAAPI support in every video editor and the buggy VAAPI implementations for playback programs, I'm sorry I went Intel for video, it really is terrible. |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Tue Jul 08, 2014 4:44 pm Post subject: |
|
|
I never really seek through a video, so I can't comment on that.
I watch a full episode or movie.
Are you sure vaapi is used during playback? With XBMC if you press "o" it shows if it's using vaapi.
If not, it won't mention it. I can tek a photo to show what I mean if needed.
And with just startx if you type vainfo, does it give an error on the i965 driver init or does it show a list of stuff?
The drivers and vaapi aren't great, I can admit that. With movies I can still see some stuttering, but I believe I see that with a real Blu-Ray player as well. Big camera movements mainly. It's just not fluent enough. |
|
Back to top |
|
|
slaterson Guru
Joined: 26 Feb 2003 Posts: 313
|
Posted: Sat Aug 30, 2014 10:12 pm Post subject: |
|
|
make sure the composite extension in xorg is disabled.
it caused tearing for me, and from google searching it does the same for many others. |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Sat Aug 30, 2014 11:52 pm Post subject: |
|
|
Will have a look at it when I boot the NUC again. Thanks. |
|
Back to top |
|
|
thender Tux's lil' helper
Joined: 26 Aug 2013 Posts: 125
|
Posted: Sun Aug 31, 2014 1:30 am Post subject: |
|
|
I left my intel GPU laptop for this reason.
I re-emerged world from scratch and updated everything a week ago, and it all went away. No more tearing.
So someone fixed something! |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Thu Dec 04, 2014 6:18 pm Post subject: |
|
|
weust wrote: |
Are you sure vaapi is used during playback? With XBMC if you press "o" it shows if it's using vaapi.
If not, it won't mention it. I can tek a photo to show what I mean if needed.
|
How do you know if vaapi is used ?
Please show a picture when it is used, or explain, is the actual word "vaapi" shown ?
Having the same problem and I can't figure it out, have the drivers installed and xbmc is using both vaapi and vdpau and I have tearing.
Funny thing though is when I play same video using Videos app in Gnome, I don' have tearing. |
|
Back to top |
|
|
weust n00b
Joined: 28 Feb 2014 Posts: 26
|
Posted: Thu Dec 04, 2014 6:23 pm Post subject: |
|
|
When you press O during playback, it will show a information overlay on the top part of the screen.
Somewhere on the lower-right hand side of the information overlay it will say vaapi.
If not, you will notice the CPU('s) way more active. Mine are about 6% alternating between the four.
I don't have a screenshot at the moment. Would need to take a photo as the NUC is installed minimal just for XBMC.
If I don't forget, I will take one tonight. |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Thu Dec 04, 2014 6:36 pm Post subject: |
|
|
It doesn't show for me, I mean info overlay shows but there's no "vaapi" anywhere.
Yes, cpu is more used, 40%
So I guess vaapi is not used.
But for tearing I think something else is in play here, not sure what though.
Don't bother with screenshots, I understand now, thanks ! |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Thu Dec 04, 2014 11:26 pm Post subject: |
|
|
There's no tearing in mplayer based players and vlc, so it's something with XBMC.
Turning on and off vdpau and vaapi in XBMC don't change anything.
I've tried to enable vdpau in mplayer and video gets frozen on first image.
cat /var/log/Xorg.0.log | grep -i vdpau :
Code: | [ 41.818] (II) RADEON(0): [DRI2] VDPAU driver: r600
|
vdpauinfo :
Code: |
display: :0 screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0
Video surface:
name width height types
-------------------------------------------
420 8192 8192 NV12 YV12
422 8192 8192 UYVY YUYV
444 8192 8192 Y8U8V8A8 V8U8Y8A8
Decoder capabilities:
name level macbs width height
-------------------------------------------
MPEG1 0 262144 8192 8192
MPEG2_SIMPLE 3 262144 8192 8192
MPEG2_MAIN 3 262144 8192 8192
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
R8G8B8A8 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
R10G10B10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
B10G10R10A2 8192 8192 y NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 8192 8192
R8G8B8A8 8192 8192
R10G10B10A2 8192 8192
B10G10R10A2 8192 8192
A8 8192 8192
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL -
INVERSE_TELECINE -
NOISE_REDUCTION y
SHARPNESS y
LUMA_KEY -
HIGH QUALITY SCALING - L1 -
HIGH QUALITY SCALING - L2 -
HIGH QUALITY SCALING - L3 -
HIGH QUALITY SCALING - L4 -
HIGH QUALITY SCALING - L5 -
HIGH QUALITY SCALING - L6 -
HIGH QUALITY SCALING - L7 -
HIGH QUALITY SCALING - L8 -
HIGH QUALITY SCALING - L9 -
parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 48 8192
VIDEO_SURFACE_HEIGHT y 48 8192
CHROMA_TYPE y
LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y
|
vaapi has some problems though, I'm yet to investigate that one.
vainfo :
Code: |
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/r600_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
|
|
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Fri Dec 05, 2014 2:34 am Post subject: |
|
|
Seems like I must wait for kernel 3.18 in order to have vdaapi and vdpau support for my card.
As for tearing in XBMC I have tried everything in XBMC options, apart from XBMC I don't have any other screen tearing, so it must be XBMC specific.
ffmpeg maybe or some other library XBMC is using. |
|
Back to top |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1166 Location: /run/user/1000
|
Posted: Wed Dec 17, 2014 9:09 pm Post subject: |
|
|
Problem was in libsdl , after patching it I had no more tearing in XBMC.
Hope this helps someone in the future. |
|
Back to top |
|
|
|