heres a couple of quotes from kodi wiki page
3.8 No video/black screen, only sound, when playing files
The most common causes of only having sound, but no video, when playing a video file are:
The hardware in the box is Amlogic-based and another video/media app is running in the background. Quit the other media apps or restart the device and Kodi should display video again.
The hardware in the box is Amlogic-based and the firmware (Android installation) didn't set certain permissions correctly and isn't rooted.
Sometimes the box (if it has semi-recent firmware from Amlogic) will work if you disable Amcodec, but keep MediaCodec enabled under Settings -> Videos -> Acceleration -> Allow hardware acceleration .
Manually fixing the "permissions" can work, but have to be done every time the box is rebooted. Editor note: need to link to or write a guide on manual permissions correction.
If using MediaCodec doesn't work (doesn't play back at all or stutters, which would indicate software decoding), then the device might need a firmware update (an update for the Android OS) to correct the problem.
3.9 Videos play, but are not always smooth
There are a number of reasons why this can happen, so it's hard to give general advice for such a description, but here are some things that you can try:
Some Android hardware has bugs using the "MediaCodec" hardware decoding method, but plays video fine using "libstagefright". Try turning off "MediaCodec" and leaving "libstageright" on in: Settings -> Videos -> Acceleration. Users of AMLogic hardware can ignore this, as those devices use a third "AmCodec" hardware decoding method.
Hardware video decoding might not be enabled at all on your device. Most Android boxes will require hardware video decoding for smooth HD video playback. Check settings under Settings -> Videos -> Acceleration
Most Android boxes don't support hardware video decoding of some codecs, such as VC-1 Hi10P, and HEVC(H.265). Consult the compatibility list on Android hardware.
Rule out network performance by loading a small test video directly to the internal memory of your Android device.