v17 Choppy playback on Philips Android TV with PVR TVH Client
#1
Setup:
- TVHeadend v4.1-2309 with a user configured with the HTSP streaming profile
- DVB-S tuner providing the channels, including SD, HD and UHD channels (typically all of it is interlaced content, 576i50 or 1080i50)
- Philips 55PUS8601 Android TV which has an MTK5593U+ SoC (similar to the one used in Sony Android TVs)

The problem I'm seeing is when using the PVR add-on to connect to my TVHeadend server. After loading the channels and EPG, whenever I select a channel, the video playback is very choppy (looks like max. 10fps in my eyes vs the expected 50fps). The audio sounds good.

I created a debug log for this behavior, but I'm not sure if it contains enough info. Perhaps I need to enable certain log components? The log can be found here. BBC One HD gets opened, letting it play for a while and then I closed it. Some more info from Kodi about my Philips TV can be found here.

I also installed an app called TVHClient on my TV and this one provides HTTP links which I then open with Kodi. When I do that, everything plays just fine. As far as I know, no transcoding is going on in that usecase, so it's purely the channel's stream that's being delivered to Kodi. Which would indicate that my TV should be capable of handling this type of content.

EDIT due to Kodi 17 recheck:
I noticed there were a couple of threads already here of people experiencing similar behavior on a Marvell-based Philips Android TV and also on a Sony Android TV. Suggestions were to use SPMC or try Kodi 17. So I decided to do the same test with Kodi 17.

In short, the same issue is seen with Kodi 17. But I noticed something odd. If I playback a recording of a channel, everything plays smooth, even the deinterlacing is done properly to p50. But when I play that same channel live, I experience the jerky playback as seen before.

Test sequence:
- select the recorded content from Channel 4 HD, happens around 23:26:15 in the log
- let the file play for a minute, stopped at around 23:27:18 in the log
- select the Channel 4 HD live channel at around 23:27:42 in the log
- let it play till around 23:28:39 in the log

Link to log
Reply
#2
Created a ticket for this one on the Kodi 17 Beta6 branch -> http://trac.kodi.tv/ticket/17069

Though I did manage to forget adding an appropriate title Confused
Reply
#3
(2016-11-13, 15:15)RadeoNite Wrote: Created a ticket for this one on the Kodi 17 Beta6 branch -> http://trac.kodi.tv/ticket/17069

Though I did manage to forget adding an appropriate title Confused

In your attached log:
http://trac.kodi.tv/attachment/ticket/17....txt#L1140
http://trac.kodi.tv/attachment/ticket/17....txt#L3425

It fails loading android media codec and then fallback to ffmpeg, this is why the video is stuttering, on record video android media codec is loaded successfully
Reply
#4
Any solution for this problem yet why Mediacodec can't be used for LiveTV and instead ffmpeg is used?
Reply
#5
Ticket status hasn't changed for a while so no fix yet -> http://trac.kodi.tv/ticket/17069
Reply
#6
I have the same experience with this behavior.

LiveTV is stuttering because Software Codec is used. The Cpu is nailed up.

The same LiveTV sequence as recording plays without any problems with Amlogic Codec.

So whats going on here?

Hardware: Odroid C2 - Android 5 latest image
Reply
#7
Adding this ticket regarding the same error:
http://trac.kodi.tv/ticket/16578

This has obviously been known for a while, but havn't been fixed. What I was told, it is not a problem with the Tvheadend Addon, but Kodi itself.
Reply
#8
still no solution for this ??
Reply
#9
It is fixed in the "shitty" and "not so shitty" builds. I havn't tried if it fixed in the final version of Kodi 17.

Edit; seems to work fine on Kodi 17 as well. I don't get audio passthrough on Kodi 17, so I use SPMC instead to have it all set on my Sony TV.

Sent from my Nokia 3110i
Reply
#10
My Sony 2015 Android TV has been upgraded in Android 6.0 and things have change a little bit:
- Hardware decoding is no longer working in Kodi 6.1
- Hardware decoding is now working in Kodi 17 with Mediacodec (surface) only and offers a very smooth deinterlacing. But, switching from on channel to another break it, i.e. first channel is hard decoded, second not, third yes, etc. At this time, I must “Stop” before switching to the next channel. This is definitely something wrong with kodi.
Reply
#11
(2017-02-24, 10:47)nague Wrote: My Sony 2015 Android TV has been upgraded in Android 6.0 and things have change a little bit:
- Hardware decoding is no longer working in Kodi 6.1
- Hardware decoding is now working in Kodi 17 with Mediacodec (surface) only and offers a very smooth deinterlacing. But, switching from on channel to another break it, i.e. first channel is hard decoded, second not, third yes, etc. At this time, I must “Stop” before switching to the next channel. This is definitely something wrong with kodi.

This is a bug with Kodi 17 and Android: Hardware decoding only works on the first channel, but subsequent channel changes cannot open a hardware decoded stream. It has been confirmed and fixed for 18, but uncertain if it will be backported to 17. This is not just TVH, but all PVR clients.
Reply
#12
Thanks @rpcameron, I hope at least it will be fixed in 17.1
Reply
#13
If you use the notsoshitty build, Tvheadend works just fine Smile

I´m currently use this one.
Reply
#14
(2017-02-26, 20:30)Vispen74 Wrote: If you use the notsoshitty build, Tvheadend works just fine Smile

I´m currently use this one.

Thanks, I'll give a try this week.
Reply
#15
I also recommend TVheadend live channels beta app from Google Play on your Android TV. It is a nice complement to Kodi.

Sent from my Nokia 3110i
Reply

Logout Mark Read Team Forum Stats Members Help
Choppy playback on Philips Android TV with PVR TVH Client0