koying / SPMC

fork of xbmc/kodi
Other
635 stars 257 forks source link

No amcodec option #1036

Open giacomowrc opened 7 years ago

giacomowrc commented 7 years ago

I have a Mibox 3 with Android TV 6.0 (amlogic S 905), i installed SPMC 16.7.1, in acceleration I don't have amcodec option but only mediacodec and mediacodec for surface. Someone can help me? Sorry for my poor English.

koying commented 7 years ago

The mibox (out-of-the-box) doesn't have the proper permissions for amcodec.

giacomowrc commented 7 years ago

Thank you so much for your patience and support. Have you any idea how to activate it? Root permission? Thanks.

diogosena commented 6 years ago

@koying The built in app com.droidlogic.videoplayer can choose between OMX and amcodec.. maybe you can do the same? i have root on my device if you need to check some files...

diogosena commented 6 years ago

Well, I managed to get amcodec working with mibox, you just need some firmware with adb root, I'm using the leaked beta nougat 1028. Run these, (adjust if using spmc 16):

adb root
adb shell
setenforce 0
chmod 666 /sys/class/display/mode
cd /data/data/com.semperpax.spmc17/lib
cp /system/lib/libsub_*.so .
cp /system/lib/libam*.so .
cp /system/lib/libc++.so .
cp /system/lib/libsystemcontrolservice.so .

setenforce 0 ( set selinux to permissive ) and chmod should be done at every reboot

edit: included chmod for auto refresh rate switch

llonca13 commented 6 years ago

Omg ill try this when I get home.

You sir are a genius, maybe automatic refresh rate switching works too??? :D i know i want too much now

oegedei commented 6 years ago

This worked on t95z plus android 7.1.1, too. Thanks a lot!