cguZZman / plugin.googledrive

The Google Drive addon for Kodi
GNU General Public License v3.0
212 stars 72 forks source link

Constant "Source too Slow" error on Kodi 18.8 during movie playback sourced at Google Drive #179

Closed gsantosoliver closed 3 years ago

gsantosoliver commented 4 years ago

Describe the bug I get the "Source too Slow" error on Kodi 18.8 (running on Xiaomi Box S with latest Android and Firmware available) every minute of so when I try to play a movie sourced at Google Drive. My internet connection is ok, I have other device running Kodi and playing the same content from the same source at the same network correctly. I tried the Google Drive plugin currently available at the Kodi Repo and at the repo.daro.mx and got the same issue. The same issue does not happen if I use another source such as SMB or external hard drive to play the content.

To Reproduce

  1. Install Kodi 18.8 from Play Store on Xiaomi Box S running the latest Android and Firmware available
  2. Install and setup Google Drive add-on
  3. Play 4k content from Google Drive using the Google Drive file explorer.

Your debug log file http://paste.kodi.tv/raw/hureyemogo I see several 'ERROR:' there, some of them are:

ERROR: CAddon[script.module.clouddrive.common]: failed to load addon settings from special://profile/addon_data/script.module.clouddrive.common/settings.xml
ERROR: GLES: BaseYUV2RGBGLSLShader - unsupported format 3
ERROR: ffmpeg[CCDC5970]: [hevc] Could not find ref with POC 5
ERROR: ffmpeg[CCDC5970]: [hevc] Could not find ref with POC 3
ERROR: ffmpeg[CCDC5970]: [hevc] Could not find ref with POC 0
ERROR: ffmpeg[B1A7F970]: [hevc] Could not find ref with POC 344
ERROR: ffmpeg[BAAD4970]: [matroska,webm] Read error
ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
disgrace2029 commented 4 years ago

I was getting the same thing on my Shield (yeah you would figure no problem). What I did was changed the cache settings on Kodi (have to have a advancedsettings.xml file). After doing that I was able to watch movies. There may be a problem with the cache setting with Kodi and this addon.

gsantosoliver commented 4 years ago

I was getting the same thing on my Shield (yeah you would figure no problem). What I did was changed the cache settings on Kodi (have to have a advancedsettings.xml file). After doing that I was able to watch movies. There may be a problem with the cache setting with Kodi and this addon.

How did you do that change? Can you please paste here a sample of your advancedsettings.xml with the changes so that I can try here? Thanks.

disgrace2029 commented 4 years ago

I was getting the same thing on my Shield (yeah you would figure no problem). What I did was changed the cache settings on Kodi (have to have a advancedsettings.xml file). After doing that I was able to watch movies. There may be a problem with the cache setting with Kodi and this addon.

How did you do that change? Can you please paste here a sample of your advancedsettings.xml with the changes so that I can try here? Thanks.

I used addon OpenWizard. In the Maintenance part there is a Tweaks/Fixes or something like and you can select a High End device and it automatically put the settings in the Advancedsettings.xml for yal

1 314572800 15
gsantosoliver commented 4 years ago

I used addon OpenWizard. In the Maintenance part there is a Tweaks/Fixes or something like and you can select a High End device and it automatically put the settings in the Advancedsettings.xml for yal

<cache>

    <buffermode>1</buffermode>

    <memorysize>314572800</memorysize>

    <readfactor>15</readfactor>

</cache>

If this is all the OpenWizard does then I will edit the xml myself to match what you pasted above and try. I will let you know if it worked.

gsantosoliver commented 4 years ago

I was getting the same thing on my Shield (yeah you would figure no problem). What I did was changed the cache settings on Kodi (have to have a advancedsettings.xml file). After doing that I was able to watch movies. There may be a problem with the cache setting with Kodi and this addon.

How did you do that change? Can you please paste here a sample of your advancedsettings.xml with the changes so that I can try here? Thanks.

I used addon OpenWizard. In the Maintenance part there is a Tweaks/Fixes or something like and you can select a High End device and it automatically put the settings in the Advancedsettings.xml for yal

<cache>

    <buffermode>1</buffermode>

    <memorysize>314572800</memorysize>

    <readfactor>15</readfactor>

</cache>

I've tried the xml above in the advancedsettings.xml and it did not work.

disgrace2029 commented 4 years ago

For some reason my post left out the below part, just make sure you put the < before <advancedsettings & </advancedsettings. (I had to leave it out so it would show up on here)

advancedsettings>

1 314572800 15

/advancedsettings>

gsantosoliver commented 4 years ago

For some reason my post left out the below part, just make sure you put the < before <advancedsettings & </advancedsettings. (I had to leave it out so it would show up on here)

advancedsettings>

<buffermode>1</buffermode>

<memorysize>314572800</memorysize>

<readfactor>15</readfactor>

/advancedsettings>

Oh yeah - I had been using the advancedsettings.xml before so I just added the element. The final result was:

<advancedsettings>
    <video>
        <!-- VideoExtras: Section Start -->
        <excludefromscan action="append">
            <regexp>-extras-</regexp>
            <regexp>/Extras/</regexp>
            <regexp>[\\/]Extras[\\/]</regexp>
        </excludefromscan>
        <excludetvshowsfromscan action="append">
            <regexp>-extras-</regexp>
            <regexp>/Extras/</regexp>
            <regexp>[\\/]Extras[\\/]</regexp>
        </excludetvshowsfromscan>
        <excludefromlisting>
            <regexp>-extras-</regexp>
            <regexp>/Extras/</regexp>
            <regexp>[\\/]Extras[\\/]</regexp>
        </excludefromlisting>
        <!-- VideoExtras: Section End -->
    </video>
    <cache>
        <buffermode>1</buffermode>
        <memorysize>314572800</memorysize>
        <readfactor>15</readfactor>
    </cache>
</advancedsettings>
cguZZman commented 3 years ago

Same response as in https://github.com/cguZZman/plugin.googledrive/issues/178. I hope the buffer mod worked.