Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
He probably means that it's not working mediacodec/libstagefright enabled and amlcodec disabled.
If amlcodec is enabled, it's tried first, so if it works, the other 2 are not used at all.
But if amlcodec is working, I don't get what's his issue, unless he just blindly disabled amlcodec due to other posts/threads....
Posts: 31,445
Joined: Jan 2011
Posts: 9,033
Joined: Feb 2012
Reputation:
551
Ha Ha, round and round in circles.
The best troubleshooting procedure is just to enable each decoder one at a time and leave the rest disabled. Then connect a keyboard and pullup the OSD Codec window with the "O" key
If Hardware acceleration is working:
amcodec = am-h264, am-mpeg2, am-h265 etc
libstagefright = stf-h264, stf-mpeg2 .....
mediacodec = amc-h264, amc-h265....
Posts: 31,445
Joined: Jan 2011
(2015-08-04, 05:19)minixhk Wrote: The difference is from this commit:
https://github.com/xbmc/xbmc/commit/8684...e754cea214
Reverting it should fix this problem?
No, sorry. The problem is firmware with incorrect permission. Letting Kodi (or any app) have root when it doesn't really need it is a security risk, and correcting permissions is not Kodi's job.
In other words, this was deliberately done to force companies to finally fix the real problem, with the incorrect firmware permissions.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
2015-08-04, 09:18
(This post was last modified: 2015-08-04, 09:19 by Martijn.)
let's wait for koying to comment on this. iirc it used to work by "accident" but unsure.
Since he has a Minix device(s) he should be able to see what is happening.
Posts: 5,952
Joined: Sep 2008
Reputation:
201
Koying
Retired Team-Kodi Member
Posts: 5,952
Does Minix have issues? As it is indeed my reference device, I'm pretty sure the permissions are right...
I don't see anything related in the Minix thread:
"Lower framerate" is just unrelated to video, so much that we removed its display because it confused users.
SMB with username rather than email address is just... the way it is. I'm not gonna spend hours looking into that (I didn't even know you *could* use the email address previously).
Posts: 21
Joined: Jul 2015
Reputation:
0
Since my non-rooted MX2 worked with Helix, is it really necessary that the 15.x aml_permissions() check for RW access? Would RO access be sufficient?
The reason I ask is that on a non-rooted MX2 running 14.2, wouldn't the files be RO anyway and the chmod calls in aml_permissions() fail?
Thanks for the interesting discussion.
Posts: 21
Joined: Jul 2015
Reputation:
0
Just wanted to add another datapoint:
I installed SPMC from the playstore and it correctly loaded the HW acceleration codec for my chipset. Everything plays smooth and CPU load is < 30%/per
Good job Koying. Whatever you did for SPMC to enable HW acceleration for AmLogic devices, is it possible to get that rolled in to the Isengard branch? Note also that this MX2 is not rooted.
PS:
One issue: The video is not scaled properly (zoomed upper-left), but at least the HW acceleration is working. Now to figure this out!
Regards