Hello, hopefully someone can help and/or explain some things to me.
I am running Tvheadend 4.0.9-13~g64fec81~trusty on Ubuntu 14.04. With two different Kodi 16.1 clients I get horrible playback of recordings, basically unwatchable (stuttering, chopping, stopping, slow buffering, etc. - looks like less than 1 Mb/s speed - horrible). One client is on Cubox-i4x4 running LibreELEC 7.0.2 and other is on my x86 laptop running Windows 7.
I have already troubleshot this to death:
* Recordings play terribly when going to Videos and adding pvr://recordings/ (one of default Kodi shares) to the list of video sources, then trying to play the recordings
* Recordings play perfectly through the Tvheadend web interface using VLC, for example (on my x86 laptop)
* Recordings play perfectly when copied to local hard drives on x86 or Cubox USB hard drive
* Recordings played terribly (NOTHING CHANGED) when I changed network setup. Since my Tvheadend machine was connected to the cable modem/router and my Kodi machines on second router connected using the WAN port, I changed the setup so that second router is just an access point and is connected to the cable modem/router using the LAN port. I was thinking maybe the issue is with the way traffic flowed between two routers.
* Live TV plays perfectly, no matter which network setup or client
* It is not the streaming profiles - tried everything
* Same issue happens when playing recordings on LibreELEC 7.0.2 and Tvheadend 4.1.1945 (what I had initially installed but switched to Ubuntu thinking it was a LibreELEC/Tvheadend problem)
* I mounted a SMB share from my NAS on my Tvheadend machine. Then I changed the recording path of tvheadend to that share. Then I recorded something. In Kodi, I went to TV->Recordings and tried playing back that recording. It stuttered and was slow just like before. Then I went into Videos and added the SMB share from my NAS and tried playing back the recording. It played perfectly!
The last point is the most important one to me. Why does the exact same file play differently when accessed as a "SMB" share or the Kodi "pvr://recordings" share? That seems to be the main issue. One last thing I will attempt it to make a SMB share on the Tvheadend machine and store the recordings there and see how Kodi plays those files.
Can anyone help? This is the last step for me to make my system work.
Can anyone tell me how Tvheadend running on Ubuntu shares the recordings? Which protocol it is using, are there specific ports it is using, what are file permissions for clients, etc.?