Project

General

Profile

[Resolved] Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend

Added by Andrew Maccon about 7 years ago

Nvidia Shield TV + Kodi Frontend HTSP PVR Client + TVHeadend Server Backend running on Raspberry Pi 3 with LibreELEC OS

Has anyone got this configuration to work properly? When I attempt to stream live HD TV (over the air channels on TVH backend) or watch HD recorded shows on my NVidia Shield TV it is VERY choppy and laggy. I have seen it reported on another post that this is a known issue on the Shield TV box. However, i cant find ANY data supporting this claim and, therefore, i am continuing to troubleshoot it.

If anyone is running the Shield TV with the Kodi Frontend HTSP PVR Client and TVHeadend as a backend server and has it working properly with HD channels PLEASE PLEASE reply. I have spent hundreds (literally) of hours on this problem and have NO resolution.

I can stream no problem to my PCs and even an old 'no name' android junk box from years ago. This only happens on my new, top of the line, expensive, Shield TV box (go figure, you buy heavy duty hardware and it has issues). Thanks!!


Replies (32)

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

Random stab in the dark, but have you fiddled with the Packet backlog option (in Tvheadend)?

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

No sir, i have not. If you dont mind pointing me to where that is located in the TVH web interface i will look into what it does!

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

Thanks man. I just checked the box for "Use pack backlog:". I will test shortly and report the results!

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

Unfortunately the problem remains. An update though, this seems to be any kind of HD data produced by the Pi with TVH plays choppy on the Shield TV. Let me explain. I went as far as to record a TV show as BOTH .ts and .mkv. I then copied those HD video files to my NAS and even locally to an external thumb drive. I tried to play both on the shield tv and BOTH are just as laggy and "slow motion". These files play fine on other devices, just not on the Shield TV running kodi..

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

Andrew Maccon wrote:

Unfortunately the problem remains. An update though, this seems to be any kind of HD data produced by the Pi with TVH plays choppy on the Shield TV. Let me explain. I went as far as to record a TV show as BOTH .ts and .mkv. I then copied those HD video files to my NAS and even locally to an external thumb drive. I tried to play both on the shield tv and BOTH are just as laggy and "slow motion". These files play fine on other devices, just not on the Shield TV running kodi..

If you have an mkv that plays fine on the shield, try comparing them using something like ffprobe.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

Sorry for my ignorance. I have searched online and downloaded a package that contains ffprobe. The whole download is called ffmpeg. I dont see any way to install ffprobe though..

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

Andrew Maccon wrote:

Sorry for my ignorance. I have searched online and downloaded a package that contains ffprobe. The whole download is called ffmpeg. I dont see any way to install ffprobe though..

It's included with ffmpeg packages. you just need to run ffprobe <file>.mkv on a file that works and one that doesn't.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

Thank you sir. My results are fairly similar except for the bitrates. See below:

.mkv file that plays fine has a Bitrate of: 1493 kb/s
.mkv file that is recorded by TVH has a bitrate of: 12513

As you can see, the bitrate of the file recorded by TVH that does NOT play well has a significantly higher bitrate than the file that does play fine. I am not sure how to interpret this however.

Thanks for the ongoing help everyone!

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

Andrew Maccon wrote:

Thank you sir. My results are fairly similar except for the bitrates. See below:

.mkv file that plays fine has a Bitrate of: 1493 kb/s
.mkv file that is recorded by TVH has a bitrate of: 12513

As you can see, the bitrate of the file recorded by TVH that does NOT play well has a significantly higher bitrate than the file that does play fine. I am not sure how to interpret this however.

Thanks for the ongoing help everyone!

Is this over wifi?

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

It is not. My whole network is wired into a gigabit router. The only "wireless" portion of this entire setup would be the ATSC-T antenna being used to pick up the local over-the-air TV channels.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

Thats the problem, the TV Headend FRONT END Client only supports HTSP streaming. I dont see a way to change this. If i log into my TV Headend server and disable the HTSP stream profile, my front end wont work at all. I looked it up online and it seems to state that the Kodi TVHeadend Front End client ONLY supports HTSP. Is there a way to change this?

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

Andrew Maccon wrote:

Thats the problem, the TV Headend FRONT END Client only supports HTSP streaming. I dont see a way to change this. If i log into my TV Headend server and disable the HTSP stream profile, my front end wont work at all. I looked it up online and it seems to state that the Kodi TVHeadend Front End client ONLY supports HTSP. Is there a way to change this?

If you have the Kodi Simple IPTV Client addon you can point it to your tvh playlist at

http://user:pass@ip:9981/playlist
to use HTTP streaming.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

Thanks. I got this configured. It picks up the channels and plays but unfortunately the problem remains. The HD channels are very laggy and seem to go from "slow-mo, to super speed (to catch up), then slow speed again, and so on and so on". The same problem as before.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

It seems the shield might not be able to handle high bitrate streams? It's a weird one!

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Chris Beasley about 7 years ago

Have you tried the TVheadend live channels app? This integrates wtih the live channels application for AndroidTV and streams using HTSP. My Xiaomi Mi Box has much lower specs than the Sheild and plays 1080p 9Mbps HDTV Streams from Sky NZ without issue, this might allow you to eliminate teh kodi issue... The other option is to try SPMC whcih is an unofficial fork by the former Kodi Android maintainer; The Mi Box struggles with Kodi 17 but SPMC is smooth and runs fine.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Fred Fred about 7 years ago

I have two Nvidia Shield TV, one 2015 and one 2017, I run Kodi (current version is 17.5 I think) and they both play everything I throw at it.
Have you tried this: Adjust display refresh rate to "on Play/Stop".

(EDIT: Sorry, did not see post... Use an Ethernet cable and not wireless, any better?)

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

I have adjust the refresh rate settings yes, i have tried all the options including play/stop

Wireless is not in use anywhere in my setup. It is all wired cat5e to a gigabit router.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

Andrew Maccon wrote:

I have adjust the refresh rate settings yes, i have tried all the options including play/stop

Wireless is not in use anywhere in my setup. It is all wired cat5e to a gigabit router.

Fred would you be willing to test a file sample from Andrew on your shield? To see if yours has the same issue? :)

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by William Gould about 7 years ago

Just wanted to say that I have exactly the same choppy/lagging issues with the same setup (Shield TV etc), so I'm watching this thread with interest! :)

I did manage to fix it for a while by changing from NFS to SMB shares on my Synology NAS, but the problem has re-appeared!

But is seems as though the problem is back again now for some reason.

It's always been like this, but everything else is fine. i.e. MKV movies and TV shows that were not recorded through TVHeadEnd!

It's driving me nuts, and it's been like this for months!

Cheers

Will.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Andrew Maccon about 7 years ago

Hey Will. Thanks for the input. Misery loves company! I really hope we can figure this out. One update i do have though. I did some testing today. As of now it APPEARS that this laggy issue only happens with 1080p at 30 fps. I just watched college football games all day that show as 720p 60 fps (i found this by hitting 'O' [as in Oscar] while watching the laggy stream).

This might be a dumb question but this is beyond my knowledge. Can i force this to be 60 fps? I am thinking maybe since the stream is only 30 fps it is laggy? Or maybe this isnt even a valid question, maybe it is 30 fps because that is normal and that is the way it is being broadcasted over the air? Let me know what you guys think. I am thinking that maybe the shield cant "handle" 1080p stream at 30 fps?

Thanks all.

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Fred Fred about 7 years ago

Sure I can test any file you like, post a link and I will play it :)

RE: Nvidia Shield TV + Kodi Frontend HTSP Client + TVHeadend Server Backend - Added by Mark Clarkstone about 7 years ago

Andrew Maccon wrote:

I am thinking that maybe the shield cant "handle" 1080p stream at 30 fps?

One way to find out :p

Fred Fred wrote:

Sure I can test any file you like, post a link and I will play it :)

(1-25/32)