[solved] Kodi - high CPU usage and dropped frames on high quality files - Fire TV Q&A, Help & Troubleshooting

EDIT: Solved by restarting the device.
When playing very large files (h264, 1.5h movie encoded into 7GB file, high profile, 1080p of course) I get high CPU usage in some scenes and dropped frames. Is that too much for Fire TV CPU? Why is CPU usage that high if Kodi uses hardware acceleration? (I tried both libstagefright and mediacodec, they seem to give the same result while software decoding is a bit worse).
Codec info shows no dropped frames, but it's visible that the video is choppy.
Cache is full (although sometimes has trouble filling up - but it doesn't seem connected and is not causing real problems).
Mb/s: usually about 10MBit/s when it happens (doesn't seem that much really).
Cpu usage: all 4 CPUs are over 90% when it happens.
Drop: close to zero, but the video is visibly choppy.
Is this normal?
From specs Fire TV should handle up to 20MBps...
PS. Anyone willing to test those files: http://jell.yfish.us/ - 20Mbps works fine for me with high CPU usage, 50Mbps is choppy like hell.

I have "dc:ff-h264" in the CodecInfo which from what I read means it's software decoding. In that case I am stunned how well it works, I thought it was surely hardware decoding since it had only slight problems.
If this is really software decoding only then the CPU in Fire TV is very powerful. My old PC wouldn't be able to handle that.
I will update this post when I find how to force hardware acceleration to work.

Magnesus said:
I have "dc:ff-h264" in the CodecInfo which from what I read means it's software decoding. In that case I am stunned how well it works, I thought it was surely hardware decoding since it had only slight problems.
If this is really software decoding only then the CPU in Fire TV is very powerful. My old PC wouldn't be able to handle that.
I will update this post when I find how to force hardware acceleration to work.
Click to expand...
Click to collapse
That is software, you need to enable hardware in the system config. It should be on by default, but I am not certain. Check under video->acceleration and be sure to enable expert settings. Decoding Method should be set to hardware. And you can play with Allow libstagefright, MediaCodec, or both.
Edit: With both enabled I just tried JellyFish @ 50mbit and it played flawlessly. I'm on Kodi and Amazon Firmware 51.1.4.0

Thanks for the JellyFish test. It sounds awesome that it works even at 50MBit.
I have hardware acceleration turned on (I tried all options there) but for some reason it doesn't work - maybe I'll switch to SPMC if I don't find a way to force it - right now I use Kodi nightlies.
PS. Restarting the device helped (at least for now). I will observe how it will behave in the future. (for now both amc-h264 and stf-h264 work) I had the device running for a few weeks before that, maybe something got locked.

Jugstah said:
Edit: With both enabled I just tried JellyFish @ 50mbit and it played flawlessly. I'm on Kodi and Amazon Firmware 51.1.4.0
Click to expand...
Click to collapse
I can confirm the same. Not rooted AFTV, Kodi official release, both hardware options enabled and latest firmware (in Germany)

Thanks. After restarting the device it works for me too. Turns out it might be good to restart it from time to time. Stupid me for not trying it right away.

Related

[Q] Extremely high ping/latency issues

Whenever the the wife uses the Kindle HD 8.9 over wifi, it crushes anything i may be doing that is latency sensitive (i.e. MMO, MOBA, FPS, etc) with well over 1s pings, sometimes reaching 1500ms. Other web browsing will also go very slowly while this happens. We have 7Mb/s DSL which isnt amazing but does the job considering we're in Alaska
This usually only happens in bursts then settles and fires up again.
Done the usuals, set to low quality with QoS router setups. Ive only tested with Hulu and Netflix.
Nothing seems to stop this tablet from manhandling our connection.
None of our other android devices or the Wii U do this using the same services and apps. I own a SGS3 running latest slimrom, the wifes is a stock SGS2.
The kindle is rooted but remains stock, rooted for the play store and the apps i own there.
Any clue what is happening? Others experience this issue?
I also prefer not to use the custom rom here as we use the HDMI out. (i guess audio isnt working yet)

Stuttering during video playback

I often watch a movie or TV serie on my phone before sleeping, but I have noticed that the video payback is not always smooth and there are slight stutters as if the G3 doesn't have enough power to play back full HD high bitrate, particularly in Matroska formats. So whats up with this? I know the G3 is plenty powerful to be able to play without stutter, so could it be some kind of power saving feature holding the cpu performance back and causing stuttering? This is ridiculous to be happening with a flag ship phone! Any ideas on how to fix this?
I assume these are on your phone and not on your network or the web or something. Have you seen this thread?
http://forum.xda-developers.com/showthread.php?t=2796449
You could try turning off the throttling (at your own risk).
flaring afro said:
I assume these are on your phone and not on your network or the web or something. Have you seen this thread?
http://forum.xda-developers.com/showthread.php?t=2796449
You could try turning off the throttling (at your own risk).
Click to expand...
Click to collapse
I will try that and report back, the only strange thing is that my phone does not get warm at all when watching video, so I don't think its a problem with temperature, I usually watch at very low brightness.
I tried turning off the throttling features and it made no difference. I think maybe the stock video player is just not optimized well, so I am going to try VLC and see how that goes.
I'm not sure if this will be of any help, I hope VLC works for you. I use BS Player on my 2012 nexus 7 to play my 1080p bluray rips(at whatever bitrate the pirate scene rips at). I would suggest trying that one and to play with the hardware decoding options if things don't seem smooth with it.
T.R.A.N.C.E. said:
I tried turning off the throttling features and it made no difference. I think maybe the stock video player is just not optimized well, so I am going to try VLC and see how that goes.
Click to expand...
Click to collapse
You could try that. May work. The other option would be to turn off the power saving feature LG put in that limits the cpu. It likely turns down for easier frames and then has trouble with frames with more detail, since compressed video is variable like that. I'm not sure if anyone has completely disabled this though, and it may have a huge impact on battery life.

Overheating when gaming

I am having a problem with the you overheating(?) and crashing the Marvel Strike Force game. It will loop the last few frames then finally return to home screen after about 20 seconds or so. The issue doesn't happen while outside of combat, and it occurs after about 10 minutes of play. It can be repeated in a shorter amount of time if already hot. How is it possible to overheat the GPU? Shouldn't there be sensors and a governor? I can confirm that this happens on multiple Pixel Cs. I don't think that this is the game's fault, but rather bad governor, sensor, or lack of cooling. I also have no problem running this game on the Nvidia Shield (aside from it not being on the Play Store for Android TV or some control issues when using a mouse), which has the same chipset.
I was having this same issue and I was searching for a solution. The one that seems to work is to enable Developer Options, then in Developer Options Turn on the option to Disable HW Overlays. This seems to have resolved that issue, however the tablet still gets super hot.
You can see the issue here:
https://productforums.google.com/forum/#!topic/nexus/uBU9ekhQASM;context-place=topicsearchin/nexus/category$3Amanaging-accounts-and-settings%7Csort:relevance%7Cspell:false

Laggy / Stuttering video

So i've had my nexus 7 (2013) for a few years now and i mostly use it for netflix and youtube and it was working find on complete stock firmware with no root or any mods then about a month ago my wife started to use it to play PubG mobile and after a few days the table started to lag alot during gameplay and even when i'm on youtube.
It would play smooth for a few seconds then the video would start to lag alot and the audio would be out of sync.
I did a factory reset, re-flash stock firmware and as of today and tried a custom rom. all with the same result. is this a sign of a hardware issue? it was working fine then all of a sudden it started to lag during video playback and gaming
Check if external cooling helps - position the back of N7 towards a fan.
If it helps, then install ElementalX kernel and adjust processor voltage and core frequency to decrease power consumption and heat production. Alternatively, you could try a hardware cooling mod.
Also check if it is internet/wifi connection related. Save a HD MP4 file on the tablet and play it directly.

Pubg displaying 60fps but not the actual framerate

I'm kinda desperate at this point and don't know where else to ask. So I'm trying to play pubg in the lowest graphics settings possible with extreme fps. In my previous note 9 never had a problem, but now the framerate drops a few seconds into the game. I've not been able to fix this, even did a factory reset. Funnily enough, I went to developer options and enabled gpu watch to see what's going on, but the game ran smoothly. Then as soon as I disabled gpu watch, the game went back to ****ty framerate. Any suggestions will be highly appreciated.
Robxcorek9 said:
I'm kinda desperate at this point and don't know where else to ask. So I'm trying to play pubg in the lowest graphics settings possible with extreme fps. In my previous note 9 never had a problem, but now the framerate drops a few seconds into the game. I've not been able to fix this, even did a factory reset. Funnily enough, I went to developer options and enabled gpu watch to see what's going on, but the game ran smoothly. Then as soon as I disabled gpu watch, the game went back to ****ty framerate. Any suggestions will be highly appreciated.
Click to expand...
Click to collapse
The only way to play pubg with smooth/extreme frame rate is by using the gpu watch. Just leave it on. It'll turn off when phone is reset. Its the only way. I don't know why samsung did this, tons of ppl must think its a horrible phone. I bet tons of ppl have no idea about gpu watch

Categories

Resources