Page 2 of 3
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 03:54
by davilla
Very strange, sample plays fine for about a min, then slowly a/v sync is lost and falls behind.
Same sample on atv4 does not have any problems. Even more strange, atv4 has two CPUs, very powerful but only two. FireTV has four CPUs and it's not even using the fourth one at all. So not a lack of ponies issue but something else. As I see drops, that means renderer is falling behind, the why is where to investigate.
Need to diddle some code changes and poke deeper as both should not have any problem playing this type of content.
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 04:34
by davilla
Interesting, if I force ffmpeg to use the same number of threads as tvOS (atv4), plays perfect.
DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 3 threads
vs
DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 6 threads
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 06:14
by jamesp26
Glad i was of some sort of help - thought i was going a bit mad!
Is that change something that has to go in a build or can it be changed in advanced settings?
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 13:50
by davilla
jamesp26 wrote:Glad i was of some sort of help - thought i was going a bit mad!
Is that change something that has to go in a build or can it be changed in advanced settings?
As we are still waiting on amazon dev approval for 4k, there is still a window open. Needs more testing to check for side effects.
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 15:03
by jamesp26
If you want me to test i am more than happy to. I chuck a lot of live tv and other files at MrMc (my wife has it on most of the day). We will find issues pretty quickly.
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 15:29
by cosmoxl
davilla wrote:Interesting, if I force ffmpeg to use the same number of threads as tvOS (atv4), plays perfect.
DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 3 threads
vs
DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 6 threads
do you also control the number of threads with mediacodec? just wondering if thread count was the reason why it stutters with 1080i h264.
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 16:19
by davilla
cosmoxl wrote:davilla wrote:Interesting, if I force ffmpeg to use the same number of threads as tvOS (atv4), plays perfect.
DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 3 threads
vs
DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 6 threads
do you also control the number of threads with mediacodec? just wondering if thread count was the reason why it stutters with 1080i h264.
No, Mediacodec has issues with interlaced because it's not really a supported format for it.
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 21:36
by davilla
jamesp26 wrote:If you want me to test i am more than happy to. I chuck a lot of live tv and other files at MrMc (my wife has it on most of the day). We will find issues pretty quickly.
Unfortunately, Amazon had nothing like Apple's TestFlight and we do not provide self install downloads for a variety of reasons.
Re: Poor performance on FireTV
Posted: 27 Jul 2016, 21:59
by jamesp26
Fair enough - makes sense. If there is anything i can let me know.....
Re: Poor performance on FireTV
Posted: 28 Jul 2016, 15:07
by davilla
change will be in v2.4