Some videos from Kodi library through addons goes a low FPS

Resume of the post: Kodi in OSMC for RPi2 play’s from library in some situations a low FSP (like a succecion of photos) and when I show the information menu (current time, duration…) the reproduction goes well (fluid), when I hidde again the information it goes again like photos


I detected a strange behavior in my updated OSMC on Raspberry Pi 2 and reproduction of some addon-provided multimedia.

In Kodi 16 doesn’t happened. I can’t reproduce the same behavior in PC (because is powerful?) and I have to check if it happens in previous versions of OSMC and in competence to see if this is a OSMC problem or Kodi problem (I think that is a Kodi problem, but I’m not sure).

I have a addon that scrapes some webs to extract TV Show streams and play (some users here Slow Python scripts in Krypton asked for the previous problem in that addon: it start working slow in menus with Kodi 17).

It has Kodi library support creating “.strm” files that points to the addon with some parameters, it creates the structure:
TVSHOWS/Some Show/1x1.strm (for example)

Kodi scrapes well all this folders and shows the TV Show in your library.

When you click in a TV Show episode (http://imgur.com/HPeBQmz) Kodi launch the URL stored in the strm that ponits to the addon. It has 2 methods to work (configurable):

  1. Display links in a new menu window. It does:
    xbmc.executebuiltin("Container.Update(Addon's URI that launch the addon in some point)")

Trying that it will be like open the addon search the episode and click on it, so the next window is the same opened in both cases http://imgur.com/61MdeNf:
open addon → open tv show → open season → open episode → [links for this episode: http://imgur.com/61MdeNf]
Kodi library → tv show → season → episode → [links for this episode: http://imgur.com/61MdeNf]

The problem is here, when I go through the Kodi Library in a current installation of OSMC (I tried a clean install too), select a link and start playing, the reproduction goes like a stop motion / very low FPS (only in video, audio is OK and sync, so reproduction is skipping frames). If I show the reproduction information reproduction starts go fluid / OK, but when I hide the information it goes bad again

If I go through the addon this behavior doesn’t happens. If I go to the addon through favorites (for example, add to favorites the addon season, or the addon episode) it goes OK too.

The addon has a 2nd method to work: after click the episode it extracts the links and, instead of do a ContainerUpdate, it does a Dialog selection popup and, then, it does a Play(URL) from the selected URL http://imgur.com/LYv1ijF.

If I configure this mode (doesn’t do the containerUpdate, doesn’t jump to the addon window) it reproduces the video without problems.

Is a very curious this problem:
It happens when i go throught the Kodi library, only when if perform the “ContainerUpdate” (to go to other window and display the list) and if I show the video information it reproduces OK, until I hide again this info

Hi,

Can you please debug logs for the issues above.

Thanks Tom.

Yes, I can.

First of all 2 screenshots with reproduction info:

  1. With the “show links” in “pop-up” (dialog select) mode (so, no problem): http://imgur.com/2c3BxTS
    As you can see “skip” counter is low

  2. With the “show links” in “list mode” (with problem): http://imgur.com/R6S1mFa
    Skip counter is very high and increment every second… until I open some OSD information. For example, if I click “o” keyboard shortcut (media information), I move the mouse (show the controls) or click to “Information” shortcut (I) skip counter stop growing.

Here are the logs (in .gz because they are 64 MB size uncompressed!): https://drive.google.com/file/d/0B94OUAm6G7xAZFItbEJxVG1HbDQ/view?usp=sharing

About the increment of the skip in the 2º case, look here the evolution:

In the moment that OSD appears (not the log OSD or this media info) skip stops growing and reproductions goes well.

Hi,

Apologies I’ve not giving you the right link, not sure how I did that:

How to submit a useful support request

Again apologies for the wrong link.

Thanks Tom.

I enabled debug mode in my logs. And added ffmepg + video module debug.

You look the log that I posted?

Hi,

I did, but it didn’t appear appear to be debugging log, I’ll take another look.

Thanks Tom.

Hi,

Is Pelisalacarta, the addon you are having an issue with:

      ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.pelisalacarta/?ewogICAgImFjdGlvbiI6ICJjaGFubmVsX2NvbmZpZyIsIAogICAgImNhdGVnb3J5IjogIkNvbmZpZ3VyYWNpw7NuIiwgCiAgICAiY2hhbm5lbCI6ICJiaWJsaW90ZWNhIiwgCiAgICAiZmFuYXJ0IjogIiIsIAogICAgImZvbGRlciI6IHRydWUsIAogICAgImluZm9MYWJlbHMiOiB7fSwgCiAgICAidGh1bWJuYWlsIjogImh0dHA6Ly9tZWRpYS50dmFsYWNhcnRhLmluZm8vcGVsaXNhbGFjYXJ0YS9zcXVhcmVzL3RodW1iX2JpYmxpb3RlY2EucG5nIiwgCiAgICAidGl0bGUiOiAiICAgQWp1c3RlcyBkZSBsYSBiaWJsaW90ZWNhIiwgCiAgICAidG90YWxJdGVtcyI6IDAKfQ%3d%3d) failed
        15:19:21.721 T:1378874352   ERROR: Unable to find plugin
        15:19:21.721 T:1958597552   ERROR: GetDirectory - Error getting plugin://

As it looks like it needs reinstalling.

Thanks Tom.

Yes, this is de addon. But the most probable is that this is not the problem (specially for timestamp: 15:19 when the video reproduction is at 15:16 aprox, and because these errors are here years ago)

I need someone that undestands how Kodi renders the image and can unestand why if OSD is displayed Kodi stop skipping frames. And how this is related to what I described in first post (difference between enter to the addon from list or from dialog select)

I think that will be better that I post this in Kodi forum.

HI,

Sorry but I’m struggling to understand your issue, but if I’m right I think:

The videos play alright through the addon, but when you play them back by going to your library; this is when the issue occurs.

Please confirm?

Possibly or the addon developers may be able to advise: Plugin pelisalacarta para XBMC, Plex, Boxee, WiiMC y Dreambox | Televisión a la carta

Thanks Tom.

Sorry for my bad english.

The thing is that the addon have library support and it has 2 modes to list links when you click in a Episode.

One mode is that you click in a episode and it display a Dialog Select with the links (screenshot). You can see Kodi’s library at background and the dialog select that appeared when I click in one element. This produces no problem.

Other mode is that you click in a episode and it performs a Container.Update (source code), to enter in the addon and display the result as list (screenshot)

This second mode proces the frame skipping when reproduction begins AND no OSD is displayed

Why I asked here and not in addon’s github/forum? Because addon doesn’t take care about Kodi interface (but well, of course it can be a problem of how they display the information in Kodi 17 that worked well in Kodi 16, I will ask this people in his github)

I created this post in Kodi’s forum: Frame skip when reproducing some addon content from Kodi Library
Is almost the same, so don’t read it, but I found a very similar problem for Linux releases: Stuttering unless OSD is on

Hi there,

Unfortunately we’ve had to remove your thread from public viewing because it mentions a pirate addon, repository or website. We cannot provide any support for piracy. You should seek support from the developer of the addon or provider of the repo.

To get a better idea of our piracy policy, please see this link here FAQ - OSMC Forums You are welcome to edit your post and request for it to be re-listed at anytime.

Thank you for your understanding