Kodi Community Forum
Video stuttering in Linux - 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: Video stuttering in Linux (/showthread.php?tid=103671)

Pages: 1 2 3 4 5 6 7 8 9


- TheSwissKnife - 2011-07-10

I thought I explained the subtitle issue - if text based then the rendering to texture is done in render thread and it will not check the clock time etc during this to see if it should hold off temporarily to allow video frame to render in the mean time - I have a patch for that. I have not checked what subtitle format is in these files - if overlay based then you will probably see the issue when subtitles clear rather than as they appear...this is pixmap overwrite due to extra time taken do overlay work and is solved by FernetMenta vdpau methods (we worked together extensively on this particular issue).


- LB06 - 2011-07-11

deuch Wrote:So new sample with stutter. It's a different problem now :

It happens without audio ! So it's not an audio problem but it appears is that a subtitle problem :

this is a sample without audio and with subtitles :

http://deuch.free.fr/videos/numerous-drop-sample-no-audio.mkv

An now the sample without audio and without subtitles :

http://deuch.free.fr/videos/numerous-drop-no-audio-no-sub.mkv

And the complete file :

http://deuch.free.fr/videos/numerous-drop-sample.mkv

And the log file with the 1st file :

http://pastebin.com/E5XV9haV

And the log file without audio and without subs :

http://pastebin.com/yTfcyEjg

Or more simple disable subtitles with the complete file to reproduce it Smile

It looks like a problem of rendering complex subtitles. Checked with VLC, it works without drop frames (but font is slightly different and less visualy complex)
Should everyone be affected by this? Your 'numerous-drop-sample.mkv' plays fine here. I have one dropped frame in total.


- TheSwissKnife - 2011-07-11

LB06 Wrote:Should everyone be affected by this? Your 'numerous-drop-sample.mkv' plays fine here. I have one dropped frame in total.

Just checked that these are overlay subtitles (not text). If the hardware is not fast enough to decode very quickly and overlay management not quick enough etc you may see stutters and not necessarily see them registered as drops. To see if you have pixmap overwrite issue, ensure codec info is also displayed (to exagerate the problem) and concentrate on the video smoothness as subtitles appear and disappear. If you see a micro stutter in video then I would say this is the issue that I refer to. It does not happen all the time as it depends a little on the clock positioning during playback too, so you may find pause/play cycle can reposition it to avoid the stutter.


- deuch - 2011-07-11

LB06 Wrote:Should everyone be affected by this? Your 'numerous-drop-sample.mkv' plays fine here. I have one dropped frame in total.

I've more than 50 drop frame with this sample. Disable the subtitles solve the issue. I can see them on the drop frame counter with codecs info. With the all sequence, i've got more than 130 drop frame ...

The video stutter a lot, it's not smooth. An ION2 is normaly capable to handle this kind of sub isn't it (D525 (Dual core 1.8GHz with 4GB RAM + GT218 with 512Mo RAM) ?

I'm using Dharma version and openelec.


- X3lectric - 2011-07-11

playback of the http://deuch.free.fr/videos/numerous-drop-sample.mkv (complete file)

dropped a total of 1 frame on the whole playback... other than that nothing odd on ION1 except I have to adjust the position of the subs further up.


- deuch - 2011-07-11

X3lectric Wrote:playback of the http://deuch.free.fr/videos/numerous-drop-sample.mkv (complete file)

dropped a total of 1 frame on the whole playback... other than that nothing odd on ION1 except I have to adjust the position of the subs further up.

What is the color of the sub during the sample ? Do you have one or 2 sub ? (top and bottom ?)


- X3lectric - 2011-07-11

subs are orange/salmon color or whatever it is, the top sub is KARAOKE style (popular in japan karaoke) the bottom is the translation to french, like I said, Just need to adjust the bottom subs further up. other files I have displays subs ok, but there were subtitles changes to mailine not long ago, so that may be it for me... I was watching spaceship yamamoto the other day and subs were perfect.


- deuch - 2011-07-11

My version of XBMC (via openelec) was compiled the last week. But it's still a 10.1 not a PRE 11.

I will try with VLC on the Xtreamer Ultra.


- X3lectric - 2011-07-11

openelec has a pre-eden build for IONs.


- deuch - 2011-07-11

Ok found it. I will try it.


- TheSwissKnife - 2011-07-11

deuch Wrote:I've more than 50 drop frame with this sample. Disable the subtitles solve the issue. I can see them on the drop frame counter with codecs info. With the all sequence, i've got more than 130 drop frame ...

The video stutter a lot, it's not smooth. An ION2 is normaly capable to handle this kind of sub isn't it (D525 (Dual core 1.8GHz with 4GB RAM + GT218 with 512Mo RAM) ?

I'm using Dharma version and openelec.

I would think you will get less drops without codec info showing - do the drops occur as subs appear, or during, or the disappear?

Like I said (a few times now I am boring myself) ION2 with xbmc vdpau implemenation may struggle with this - I had similar issue. Problem can be resolved for example by using more pixmaps, and having a more async vdpau design as implemented by FernetMenta (but also probably using vdpau opengl interop yuv etc). ION may in fact be better then ION2 because ION2 uses PCIe x1 to deliver the overlay I think.


- deuch - 2011-07-11

EDIT : Just a error. Sorry


- deuch - 2011-07-11

With or without the codec info, stuttering appear. I did not check if it's better with the codec info popup displayed.

If i find some time, and do not decide to drop XBMC (i'm close, because my Dune cost less and works better).

I will try to build a FernetMenta version but i do not expect so much.


- deuch - 2011-07-12

Tests made with openelec and EDEN, and problem with subtitles still present. But it's slightly better (32 drop frame instead of 50+)

VLC do not handle it very well to.

I will try to compile a FernetMenta


- bibi - 2011-07-13

Hi,

I tried deuch sample :

- ultra-sample (Shocked,)
- ultra-sampleremux (play perfect)

To my previous setup i add Dithering = Disabled to xorg.conf and now i get much less frame drop.

Still have to test without vdpau and with AE branch.

I will be on vacation tonight so see you in one month (i know i'm lucky)

++