OMV to Kodi Streaming Issues
#1
I have got a showstopper and I am not sure where to place the fault, but maybe someone has some insight as I am sure there have to be several builds similar to mine. Using the NAS Case set up all bought from the store. Ayufan’s OMV (armhf) for the NAS with NFS and SMB shares and Raspi with the LibreElec flavor of Kodi. Videos start good but will randomly stop after some time. OMV is fine, but Kodi locks up. Oddly it plays fine through WMP on a Win10 machine (smb obviously). I tagged onto this post, but the OP says he thinks it is hardware. I also saw this bug report but it isn’t a memory issue that I see through HTOP (although the MEM bar does seem to fill up some and never go back down). I am not an advanced Linux user, but am smart enough to search and follow directions. Any help would be appreciated.
  Reply
#2
You are not alone. I have been investigating the issue for the past few days without success.

[edit] here is what I tried:

1) Updated to mainline on OMV (armhf)
2) Limited SMB to SMB2
3) Tried NFS
4) Tried GbE and Fast Ethernet
5) Tried steaming via Plex's DLNA
6) Tried different players - e.g. VLC also behaves this way

None of the above solved the issues.

I have both of my HDDs on the OMV install mounted on my Linux box, and when streaming movies directly from the mounted folder using MPV I have no issues.

[edit2] So now I spent the better part of my free time today looking into this. I have come up completely empty handed, but what what I can say with certainty is that KODI on Android TV works much more reliably than when streaming to LibreELEC. That said, its spotty. Sometimes it works well and sometimes it doesn't.

KODI on a high-end PC, on two different SBCs (one Rock64 and a RPI3) as well as Android TV for Rock64 exhibit the same issue when streaming from RockPro64 OMV.
You can find me on IRC, Discord and Twitter


  Reply
#3
(09-20-2018, 01:24 AM)Luke Wrote: [edit2] So now I spent the better part of my free time today looking into this. I have come up completely empty handed, but what what I can say with certainty is that KODI on Android TV works much more reliably than when streaming to LibreELEC. That said, its spotty. Sometimes it works well and sometimes it doesn't.

KODI on a high-end PC, on two different SBCs (one Rock64 and a RPI3) as well as Android TV for Rock64 exhibit the same issue when streaming from RockPro64 OMV.

I think this makes me feel better. The whole thing is inconsistent to me. It doesn't stop at the same place on each file. Restarting OMV seems to help increase the amount of time for the freeze, SMB seems to work better then NFS. I have made it through a 30 minute TV episode after a reboot that froze in the first 10 minutes just prior. Even weirder is that WMP hasn't given me a problem once. I messed with advanced setting for caching in Kodi on my computer that seemed to help but the problem still occurred. Like I said I cant confirm it actually did anything as it is not consistent. It almost seems obvious that it is Kodi, but it happening on VLC throws a monkey wrench and still doesn't make sense. I am stuck at where to go next.
  Reply
#4
(09-20-2018, 12:47 PM)cogito808 Wrote:
(09-20-2018, 01:24 AM)Luke Wrote: [edit2] So now I spent the better part of my free time today looking into this. I have come up completely empty handed, but what what I can say with certainty is that KODI on Android TV works much more reliably than when streaming to LibreELEC. That said, its spotty. Sometimes it works well and sometimes it doesn't.

KODI on a high-end PC, on two different SBCs (one Rock64 and a RPI3) as well as Android TV for Rock64 exhibit the same issue when streaming from RockPro64 OMV.

I think this makes me feel better. The whole thing is inconsistent to me. It doesn't stop at the same place on each file. Restarting OMV seems to help increase the amount of time for the freeze, SMB seems to work better then NFS. I have made it through a 30 minute TV episode after a reboot that froze in the first 10 minutes just prior. Even weirder is that WMP hasn't given me a problem once. I messed with advanced setting for caching in Kodi on my computer that seemed to help but the problem still occurred. Like I said I cant confirm it actually did anything as it is not consistent. It almost seems obvious that it is Kodi, but it happening on VLC throws a monkey wrench and still doesn't make sense. I am stuck at where to go next.

The issue is strange indeed. I have managed to watch a complete 45min episode of a show with wife today without any issues. I also noticed that KODI was buffering (the white line on the progress-bar) nicely today, in contrast to other days when there is literally close-to-no buffer line. Next up, I'll be logging the server (RPro64) network now - particularly packages sent/received. Could you do that too please (especially since I don't know I'll have to watch a movie/show tomorrow)?

When you get ready to watch a movie/TV show SSH into RPro64 and as root run (don't close the SSH connection). Then watch the movie:

Code:
/usr/local/sbin/rock64_diagnostics.sh -n > netdiag.txt

This will log whats happening on the server to the .txt file. Once you experience a freeze you can stop the log. After that upload it here or provide a pastebin link and lets see if it sheds any light on what is happening.
You can find me on IRC, Discord and Twitter


  Reply
#5
(09-20-2018, 03:29 PM)Luke Wrote:
Code:
/usr/local/sbin/rock64_diagnostics.sh -n > netdiag.txt

This will log whats happening on the server to the .txt file. Once you experience a freeze you can stop the log. After that upload it here or provide a pastebin link and lets see if it sheds any light on what is happening.

No problem. I used NFS to stream.
https://pastebin.com/FD9u6Xty
  Reply
#6
Code:
ethtool --offload eth0 rx off tx off

Please try this and let me know if you see any improvement. I am on mainline so cannot try that.
You can find me on IRC, Discord and Twitter


  Reply
#7
Smile 
(09-21-2018, 03:14 AM)Luke Wrote:
Code:
ethtool --offload eth0 rx off tx off

Please try this and let me know if you see any improvement. I am on mainline so cannot try that.

I will try and report back this evening. I see it is doing something to the network but can you explain exactly what it is doing and what you saw to think it might help. Learning is more important than just doing for me.
  Reply
#8
(09-21-2018, 08:52 AM)cogito808 Wrote:
(09-21-2018, 03:14 AM)Luke Wrote:
Code:
ethtool --offload eth0 rx off tx off

Please try this and let me know if you see any improvement. I am on mainline so cannot try that.

I will try and report back this evening. I see it is doing something to the network but can you explain exactly what it is doing and what you saw to think it might help. Learning is more important than just doing for me.

I would lie if I said that I knew exactly, but I have been instructed by mth in IRC to try it. That said, a quick google search offers an  an explanation.
You can find me on IRC, Discord and Twitter


  Reply
#9
OK, that seems to have done it. I will continue to test but so far through a 45 minute show and mostly through a movie with no stops.
I get what it did, but why eludes me too. My googlefu failed me on that search (twisted pairs and old Linux forums).
Many, many thanks, but leads to other questions. Do I have do this on every reboot (although I am sure there is a way to automate that)? And what about a permanent fix, would that be something ayufan does on the next release or is the problem somewhere else?
  Reply
#10
I reverted back to 4.4 and will try if this fixes it for me too.
As for how to implement it at boot ... there is probably a smart way of doing it, but here is a stupid way that ought to work:

[Image: 0XMMgKe.png]

[edit] already reported to ayufan and asked for fix in next pre-release.
You can find me on IRC, Discord and Twitter


  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Headphone jack issues Manjaro Mangled 2 3,225 03-06-2021, 11:01 PM
Last Post: Mangled
  Debian, Kodi and the Spotify plugin. Pineapple 1 3,187 10-14-2019, 10:02 PM
Last Post: SBCraok
  Linux distro that will work with Kodi? SBCraok 9 13,395 09-18-2019, 02:12 AM
Last Post: mtrcycllvr
  Does anyone have kodi working? blahblahblah 6 8,306 07-19-2019, 08:09 AM
Last Post: PackElend
  Major issues with 0.8.3 bionic mate and PCIe TheSupercomputer 2 4,366 07-03-2019, 03:38 PM
Last Post: ayufan
  issue with kodi freezing randomly Slam 3 4,434 05-24-2019, 03:53 PM
Last Post: mknawabi
  issues loading firmware and missing pci card rich0 7 9,860 04-06-2019, 03:34 PM
Last Post: rich0
Lightbulb How-To, non-X11: Get 4K (>2560x1600) framebuffer, DRM, GBM, Kodi on HDMI fosf0r 14 19,555 12-17-2018, 11:57 AM
Last Post: fosf0r
  kodi and /dev/rkdev catalinii 0 2,600 08-09-2018, 10:38 PM
Last Post: catalinii

Forum Jump:


Users browsing this thread: 1 Guest(s)