API command for disable/enable hardware acceleration
#1
Hi, I'm not a developer but I think one of you may know the answer.

I use this addon in Kodi called cinemavision that currently is giving me a black screen when I have the hardware acceleration turned on in my Vero 4K+ box. I'm not sure why, but as a workaround solution, I was thinking to turn it off when I'm showing my sequence of commercials and other intro material and turn it back on when I'm about to show the main feature.

There was a similar issue with the refresh rate in cinemavision for which a person wrote a command to turn it off as part of an action node in cinemavision which was the following.

to turn off refreshrate:
# This CinemaVision Action file will disable the "Adjust display refresh rate to match video" setting in Kodi
# Be sure that you have "Allow remote control via HTTP" enabled
# Replace <kodi-http-user>, <kodi-http-password>, and <kodi-ip-adress> with the correct connection parameters
# To find your Kodi connection information, follow this link: http://kodi.wiki/view/Settings/Services#Webserver

http://[userid]:[pw]@192.168.0.30:8080/jsonrpc
{"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "videoplayer.adjustrefreshrate", "value": 0}, "id": 1}

to turn it on (it had two values, in this case the second selection was the one needed):

http://kodi:[email protected]:8080/jsonrpc
{"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "videoplayer.adjustrefreshrate", "value": 2}, "id": 1}

Does anyone know the commands for the hardware acceleration?
Could it be http://[userid]:[pw]@192.168.0.30:8080/jsonrpc
{"jsonrpc": "2.0", "method": "Settings.SetSettingValue", "params": {"setting": "videoplayer.allowhardwareacceleration", "value": 0}, "id": 1}
??
Reply
#2
The setting you want is "videoplayer.useamcodec" and the value should be false or true to turn hardware decoding off and on rather than 0 or 2. The example below will turn hardware acceleration off:

json:
{"jsonrpc":"2.0","id":1,"method":"Settings.SetSettingValue","params":{"setting":"videoplayer.useamcodec","value":false}}
Reply
#3
(2018-11-11, 04:34)rmrector Wrote: The setting you want is "videoplayer.useamcodec" and the value should be false or true to turn hardware decoding off and on rather than 0 or 2. The example below will turn hardware acceleration off:

json:
{"jsonrpc":"2.0","id":1,"method":"Settings.SetSettingValue","params":{"setting":"videoplayer.useamcodec","value":false}}
Thanks for your support however it still didn't work. I think it's because the off and on of the hardware acceleration is not supported in the Kodi webserver interface as opposed to the adjustment of the refresh rate. I'll probably have to look for another protocol to put the command in as they define it in https://cinemavision.tv/guides/cinemavis...n-actions/.
Reply

Logout Mark Read Team Forum Stats Members Help
API command for disable/enable hardware acceleration0