Kodi Community Forum
Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - 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: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? (/showthread.php?tid=365878)

Pages: 1 2 3 4 5


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - Skyrider - 2023-11-23

Will changing the cache have a performance boost through the wired network as well? Noticed that with both SMB and NFS (SMB will have slight random stutter and then continues smooth playback afterwards and NFS has FPS drop effect for around 10 seconds orso before smooth playback) on the nvidia shield. These issues only shows up on large (4k/dolby vision, hdr) content.


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - lvlanson - 2023-11-23

Is there any way to access these settings from kodi 20.2 on an android tv? Facing the same issue on a nfs nas system.


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - b1ggles - 2023-11-25

(2023-11-23, 17:15)Skyrider Wrote: Will changing the cache have a performance boost through the wired network as well? Noticed that with both SMB and NFS (SMB will have slight random stutter and then continues smooth playback afterwards and NFS has FPS drop effect for around 10 seconds orso before smooth playback) on the nvidia shield. These issues only shows up on large (4k/dolby vision, hdr) content.

Simple answer...YES.

I have my FireTV Cube 3rd gen connected to my network by ethernet as is my Windows based server where the media lives using SMB. I have sometimes had the network not fast enough or whatever it is message pop up when playing 4k remuxes with hd-audio. Sometimes it plays them fine anyway but if you get a particularly high bit rate one it has occasionally just stops completely or stutters.

Big test tonight with 4k hdr-10 remux of Oppenheimer with DTS-HD MA soundtrack. Tried it the other day and immediately got the not fast enough message but it seemed fine for the first minute. After seeing on this thread, thank you @fritsch , that a nightly was out with the new Caching menu  decided that had to be done. After installing and using the settings from @Foe-hammer I am very pleased to report it played absolutely perfectly with no sign of the previous message.

Originally thought I might have to get a gigabit USB ethernet adaptor to fix it but no, the onboard 100meg works fine with this new version.


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - b1ggles - 2023-11-25

(2023-11-23, 19:01)lvlanson Wrote: Is there any way to access these settings from kodi 20.2 on an android tv? Facing the same issue on a nfs nas system.

As already mentioned overriding with advancedsettings doesn't work so you'll have to install a new version regardless, either your own build with the necessary changes included, an already patched one or the latest 21 nightly so common sense would say just go for the nightly and enjoy. They seem to have fixed all the other issues I was having with an earlier one like the constant redownloading of artwork.


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - Skyrider - 2023-11-26

(2023-11-25, 03:41)b1ggles Wrote:
(2023-11-23, 17:15)Skyrider Wrote: Will changing the cache have a performance boost through the wired network as well? Noticed that with both SMB and NFS (SMB will have slight random stutter and then continues smooth playback afterwards and NFS has FPS drop effect for around 10 seconds orso before smooth playback) on the nvidia shield. These issues only shows up on large (4k/dolby vision, hdr) content.

Simple answer...YES.

I have my FireTV Cube 3rd gen connected to my network by ethernet as is my Windows based server where the media lives using SMB. I have sometimes had the network not fast enough or whatever it is message pop up when playing 4k remuxes with hd-audio. Sometimes it plays them fine anyway but if you get a particularly high bit rate one it has occasionally just stops completely or stutters.

Big test tonight with 4k hdr-10 remux of Oppenheimer with DTS-HD MA soundtrack. Tried it the other day and immediately got the not fast enough message but it seemed fine for the first minute. After seeing on this thread, thank you @fritsch , that a nightly was out with the new Caching menu  decided that had to be done. After installing and using the settings from @Foe-hammer I am very pleased to report it played absolutely perfectly with no sign of the previous message.

Originally thought I might have to get a gigabit USB ethernet adaptor to fix it but no, the onboard 100meg works fine with this new version.

So what are the settings you are using? :o


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - b1ggles - 2023-11-26

(2023-11-26, 13:34)Skyrider Wrote:
(2023-11-25, 03:41)b1ggles Wrote:
(2023-11-23, 17:15)Skyrider Wrote: Will changing the cache have a performance boost through the wired network as well? Noticed that with both SMB and NFS (SMB will have slight random stutter and then continues smooth playback afterwards and NFS has FPS drop effect for around 10 seconds orso before smooth playback) on the nvidia shield. These issues only shows up on large (4k/dolby vision, hdr) content.

Simple answer...YES.

I have my FireTV Cube 3rd gen connected to my network by ethernet as is my Windows based server where the media lives using SMB. I have sometimes had the network not fast enough or whatever it is message pop up when playing 4k remuxes with hd-audio. Sometimes it plays them fine anyway but if you get a particularly high bit rate one it has occasionally just stops completely or stutters.

Big test tonight with 4k hdr-10 remux of Oppenheimer with DTS-HD MA soundtrack. Tried it the other day and immediately got the not fast enough message but it seemed fine for the first minute. After seeing on this thread, thank you @fritsch , that a nightly was out with the new Caching menu  decided that had to be done. After installing and using the settings from @Foe-hammer I am very pleased to report it played absolutely perfectly with no sign of the previous message.

Originally thought I might have to get a gigabit USB ethernet adaptor to fix it but no, the onboard 100meg works fine with this new version.

So what are the settings you are using? :o

Rofl as I said, literally the post above yours!


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - gujal - 2023-11-27

This works great for me buffering both LAN (SMB/NFS) and Internet streams (MKV/MP4). m3u8 and DASH Vod not buffered yet by Kodi as they are treated as livestreams and only 6 seconds are buffered.
For devices with 4 GB or above memory:
<advancedsettings version="1.0">
  <cache>
    <buffermode>1</buffermode>
    <memorysize>629145600</memorysize>
    <readfactor>10</readfactor>
  </cache>
  <network>
    <disablehttp2>true</disablehttp2>
  </network>
</advancedsettings>
For devices with 2GB memory:
<advancedsettings version="1.0">
  <cache>
    <buffermode>1</buffermode>
    <memorysize>314572800</memorysize>
    <readfactor>10</readfactor>
  </cache>
  <network>
    <disablehttp2>true</disablehttp2>
  </network>
</advancedsettings>
For devices with 1 GB memory:
<advancedsettings version="1.0">
  <cache>
    <buffermode>1</buffermode>
    <memorysize>157286400</memorysize>
    <readfactor>10</readfactor>
  </cache>
  <network>
    <disablehttp2>true</disablehttp2>
  </network>
</advancedsettings>



RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - MrMagic - 2023-11-27

(2023-11-27, 01:44)gujal Wrote: This works great for me buffering both LAN (SMB/NFS) and Internet streams (MKV/MP4). m3u8 and DASH Vod not buffered yet by Kodi as they are treated as livestreams and only 6 seconds are buffered.

As stated above, the latest nightlies now have the cache options in a menu under Services -> Caching.

I just checked by looking at the debug info while playing a video and it seems that the cache settings in advancedsettings.xml are being ignored now in favor of the settings in the menu.


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - blunden - 2023-12-17

It's awesome to see that this is now configurable. Smile Great work!

Kodi 21 also brings some other nice upgrades so the future stable release is looking very promising.


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - Ejziponken - 2023-12-23

(2023-11-27, 01:44)gujal Wrote: This works great for me buffering both LAN (SMB/NFS) and Internet streams (MKV/MP4). m3u8 and DASH Vod not buffered yet by Kodi as they are treated as livestreams and only 6 seconds are buffered.
For devices with 4 GB or above memory:
<advancedsettings version="1.0">
  <cache>
    <buffermode>1</buffermode>
    <memorysize>629145600</memorysize>
    <readfactor>10</readfactor>
  </cache>
  <network>
    <disablehttp2>true</disablehttp2>
  </network>
</advancedsettings>
For devices with 2GB memory:
<advancedsettings version="1.0">
  <cache>
    <buffermode>1</buffermode>
    <memorysize>314572800</memorysize>
    <readfactor>10</readfactor>
  </cache>
  <network>
    <disablehttp2>true</disablehttp2>
  </network>
</advancedsettings>
For devices with 1 GB memory:
<advancedsettings version="1.0">
  <cache>
    <buffermode>1</buffermode>
    <memorysize>157286400</memorysize>
    <readfactor>10</readfactor>
  </cache>
  <network>
    <disablehttp2>true</disablehttp2>
  </network>
</advancedsettings>

What about 3GB RAM like the Nivida shield pro 2019 has? Tongue



RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - HomerJau - 2023-12-24

You don’t need much cache even for 4K TrueHD Atmos. No need to go bigger than any of those.


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - theo08 - 2023-12-24

hi

on a FireTV 4k Max Gen 2  i have tried all the above settings with the kodi nightly version. alas none help to get the issue under control. High bitrate videos will just get stuck after a short while and then resume after 10-20seconds.

i have a plex and emby server running for testing purposes on my NAS. Both native apps stream any content from my NAS without any issue on the fireTV. It is just kodi that gets stuck. this also happens when i directly access the NFS share via file manager.

any ideas would be much appreciated


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - theo08 - 2023-12-26

quick follow-up:

i _think_ i got it fixed. turns out on my setup kodi doesn't like streaming from NFS. When i switched to SMB and played some files directly (chunksize 1mb) they were working w/o problems. So i reset the emby-kodi-addon and instead of going with "native path option" i chose "addon default". this seems to be working so far


RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - AngryBird - 2023-12-26

(2023-12-26, 15:32)theo08 Wrote: quick follow-up:

i _think_ i got it fixed. turns out on my setup kodi doesn't like streaming from NFS. When i switched to SMB and played some files directly (chunksize 1mb) they were working w/o problems. So i reset the emby-kodi-addon and instead of going with "native path option" i chose "addon default". this seems to be working so far

I'm using a somewhat similar setup and NFS with no problems.  All movies are remuxes so mostly high bitrate.
  • Kodi nightly
  • Chunksize 256.  I had it at 1MB and was having issues maybe similar to yours, but never turned it back up to verify. 
  • Emby for Kodi 9.1.3 in native mode
  • Emby server beta
  • NFS v4
  • Shield 2019 pro
  • Synology NAS



RE: Advanced settings to optimize 4K SMB or NFS streaming over Wi-Fi? - theo08 - 2023-12-26

Thanks for sharing

Interesting, might check that again!

Also I never tried NFS4 always left it at 3

But I am kind of tired of fiddling around since it is working now Big Grin