Project

General

Profile

Very laggy streaming on HD channels

Added by Andrew Maccon about 7 years ago

Hello all! I have countless hours invested in trying to troubleshoot this and i am turning to you all for help! I am running LibreELEC 8.0.2 on a Raspberry Pi3. I have purchased and installed the MPEG license and the VC1 license. I am running HTS Tvheadend 4.2.2-32 ~ LibreELEC Tvh-addon v8.1.111 as the PVR backend server. My frontend is a NVidia Shield TV running latest version of Kodi and also the latest version of Kodis PVR HTSP front end client (i can certainly get version numbers when i get home). My network is all hard wired Cat5e and the topology from the server backend to the client frontend is as follows: Raspberry Pi3 server > TP Link gigabit router > NVidia Sheild TV. My source of my video feeds is simply over the air local channels that i pick up with a simple home antenna that is then wired into my Raspberry Pi3 with a Hauppauge USB TV Tuner card.

It seems that no matter what i try all HD channels that stream to my front end Shield TV are very laggy/slow and not watchable. The audio almost never lines up because the HD video is as if i placed it in super slow-mo. All SD channels are fine and are very watchable.

A couple things i tested: When i record something on the backend and watch it on the front end it is fine. Whether it be SD or HD it is fine. I then tried to watch HD cahnnels on my high end PC with Kodi setup as a front end and that also works fine. This issue seems to ONLY happen on my NVidia Shield TV front end and only on HD channels. I know it really isnt an issue with hardware since the Shield TV is one of the highest end units available right now. I am thinking i am missing some setting somewhere!

Please help friends!!!


Replies (11)

RE: Very laggy streaming on HD channels - Added by saen acro about 7 years ago

Go Status>Subscription and click over bit-rate of stream you watching
If profile PASS used input and output has to be equal
on htsp profile +- 5-10%.

Slow-motion on hd video can also mean, that hardware acceleration is not working and CPU on player side is overloaded.

RE: Very laggy streaming on HD channels - Added by Andrew Maccon about 7 years ago

Thanks for the reply! To answer the questions:

I am using HTSP but ONLY because i dont see anywhere in TVheadend where i can use Pass as the default stream profile. Old versions had the option, the new versions seem to have this taken away. Apparently we can only use HTSP when streaming to a client from TVHeadend server backend? I even tried to disable the other stream profile to "force" it to use Pass but this disables my capability to stream altogether. I also went into the settings of Kodi front end PVR client and specified that i wanted to use the Pass profile. However this just fails as well stating there isnt any Pass stream profile available (when there certainly is one enabled and ready on the backend).

When i used Hardware Acceleration or Hardware Acceleration - Surface on Kodi frontend using my NVidia Shield i have the same results - very slow laggy HD. When the HD is very slow and laggy Kodi is reporting that i am using about 70 to 80% CPU. I thought this was high but i am using a Shield. Arent these supposed to be able to take anything we throw at them!? If it can play 4k movies it should be able to handle 1080p over the air TV without a problem, right?!

RE: Very laggy streaming on HD channels - Added by saen acro about 7 years ago

Player need to send stream to hardware,
use "i" in Kodi to see active decoder.

RE: Very laggy streaming on HD channels - Added by Andrew Maccon about 7 years ago

it shows as the following

mpeg2video 1920x1080 1/1

RE: Very laggy streaming on HD channels - Added by saen acro about 7 years ago

Make record ~5min and play on device directly.
But mpeg2 in HD and acceleration not sure.
If it's possible to transcode to H264 on this PI, it will be better solution.

RE: Very laggy streaming on HD channels - Added by Stephen Neal about 7 years ago

I think there have been problems with deinterlacing LiveTV in Kodi on the nVidia Shield (which the OP is using) at the moment?

That might be an issue?

RE: Very laggy streaming on HD channels - Added by Andrew Maccon about 7 years ago

Thanks, i wasnt aware of this! Any confirmation on this or when a possible fix will be released?

RE: Very laggy streaming on HD channels - Added by Andrew Maccon about 7 years ago

Update: the problem remains and is even worse than i originally thought. See below:

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: Very laggy streaming on HD channels - Added by saen acro about 7 years ago

Is hardware acceleration activated on player?

RE: Very laggy streaming on HD channels - Added by Andrew Maccon about 7 years ago

Hello. On Kodi on the Shield TV i have 2 hard acceleration options: "Hardware Acceleration" and "Hardware Acceleration - Surface".

The results are the same whether these are on or off.

RE: Very laggy streaming on HD channels - Added by r 2 about 7 years ago

It seems some kind of issue with hardware deinterlacing... In the past I've seen similar problems with Shield TV and specific firmware versions.

    (1-11/11)