Posts: 111
Joined: Jun 2013
Reputation:
1
WimKl
Senior Member
Posts: 111
Hi,
I guess I'm not the only one left with a CRT.........
Put this in a file and (if you want) have it start at autoboot (not if you have to change between HDMI and AV everytime):
# Fix for AV output on S89-H with Kodi 16
# DENY Kodi superuser access!!!
# If you want it to autostart at boot, use smanager or init.d
# With this file AV works correct, HDMI does NOT!
# Reboot after install to have affect
#!/system/bin/sh
#allow all changes for xbmc (this is instead of giving supersu access to xbmc) but deny access for /sys/class/video/axis
chmod 666 /dev/amstream*
chmod 444 /sys/class/video/axis
chmod 666 /sys/class/video/screen_mode
chmod 666 /sys/class/video/disable_video
chmod 666 /sys/class/tsync/pts_pcrscr
chmod 666 /sys/class/audiodsp/digital_raw
#chmod 666 /sys/class/ppmgr/ppmgr_3d_mode
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 666 /dev/amvideo
# addition below for Kodi 16
chmod 444 /sys/class/display/mode
Good luck,
Wim
Posts: 111
Joined: Jun 2013
Reputation:
1
WimKl
Senior Member
Posts: 111
Hi Mark,
Oeps, sorry. I posted very quick yesterday, but now I remember i too had a problem with the script, that's why I revertred back to Kodi 15.2. I'm very sorry.
The above script without the last line DOES work good with Kodi 15.2. So something has changed in 16. I'm not sure what yet and I have very limited time to test. I don't know if one of the developers lknows, it would make it a lot easier. I spent a lot of hours making this script)..
Problem is that Kodi code changes file contents and for amlogic it creates a problem, because amlogic (that's what I think) hasn't set the permissions of some files to read-only and they should have. That's why we have to do it manually.If we know which files to set, it's a piece of cake. Figuring out which files is the problem.
If I find out before you do, I will let you know here, I hope you do likewise. Good luck.
Wim
Posts: 58
Joined: Dec 2014
Reputation:
0
ok guys could really use some help. Gbox MX2 official box, chmod init script running and on kodi 16. whenever i play a 59 fps video, starts out fine then video slows and i get way out of sync with no adjustment. i have searched but nothing i have found has been helpful. anyone have any pointers for me?
Posts: 3
Joined: Feb 2016
Reputation:
0
2016-05-12, 13:35
(This post was last modified: 2016-05-13, 08:54 by spon901.)
I have an Android tablet with HDMI port and a resolution of 1024x600 (ONDA V711 dual processor clone)
I fixed amlogic permissions ( the ones that old versions of kodi fix) in boot.img
system("su -c chmod 666 /dev/amvideo");
system("su -c chmod 666 /dev/amstream*");
system("su -c chmod 666 /sys/class/video/axis");
system("su -c chmod 666 /sys/class/video/screen_mode");
system("su -c chmod 666 /sys/class/video/disable_video");
system("su -c chmod 666 /sys/class/tsync/pts_pcrscr");
system("su -c chmod 666 /sys/class/audiodsp/digital_raw");
system("su -c chmod 666 /sys/class/ppmgr/ppmgr_3d_mode");
system("su -c chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq");
system("su -c chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq");
system("su -c chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor");
I activate the HDMI output, invalidate the LCD display and set the resolution of HDMI to 1920x1080p through HDMISwitch application that came with the official firmware.
First issue: Somehow solved
Without changing the source file of the kodi, all the versions before and including 14.05beta produced no video but with audio. All the versions after and including 14.2 final once started produced black screen, ( nothing is present on screen), and the only way to revive the tablet is resetting it through reset switch. I did not test versions between 14.05beta and 14.2.
I discovered that on the versions prior 14.05beta when the movie starts it is written 0 0 -1 -1 to /sys/class/video/axis. No matter how many movies I started situtation is same. But if I manually change the value from /sys/class/video/axis. through adb with kodi started, , without restarting kodi, all the video started after the change will be ok, including the one thet is eventually playing, having both sound and video. If I restart kodi again I have the same issue.
I discovered that in function AMLCodec::SetVideoRect SrcRect, and DestRect have proper values , but by some reasons, m_display_rect is 0 and as result dst_rect is 0 and therefore 0 0 -1 -1 is written in axis (this only happened before i manually alter axis, after alteration, m_diplay_rect is corect. I "fixed" this by checking in the function if m_display_rect is 0 case in which I made it equal to gui, with have proper values. I also copy and adapt versions from trunk of the following files :
windowing/egl/EGLNativeTypeAmlogic.cpp
windowing/egl/EGLNativeTypeAmlogic.h
windowing/egl/EGLWrapper.cpp
utils/AMLUtils.cpp
utils/AMLUtils.h
(Only copying the files without altering SetVideoRect does not help)
Second issue Not solved
Even the resolution is set up at 1920x1080p, and the movie is full HD (1920x1080) in axis is written 0 0 1024 552 (552 and not 600 because of android softbuttons) the image is on whole screen. but the image is not so sharp, therefore is like movie is played at 1024 x 552 and upscaled to the TV at 1920x1080. I played same video with diferent video player (movieplayer) , and picture is more clear, so the tablet can produce full HD output through HDMI. If I manually put in /sys/class/video/axis 0 0 1920 1080. then only top left part of the movie is shown on screen. /sys/class/display/axis shows 0 0 1920 1080 0 0 32 32
Are maybe needed other permission to be set? This issue is probably similar to zoom issue that is signalled in another thread which is now closed. So probably the Zoom issue was "fixed" by reducing resolution to the native one of the tablet/box. That's probably why some said the zoom issue is not present if the resolution to the TV is set at 720p. That is because maybe that resolution is more close to the native one, so the zoom effect is much diminuated or no longer exists( many tablet offer vertical native resolutions of 800
Please help
Posts: 3
Joined: Feb 2016
Reputation:
0
MoviePlayer seems to use different approach to play videos. When it started it plays at FULL HD quality, so the movie is not upscaled. I tested using the 1080 test movie from this forum, and it preserve all details. It plays also full screen by hidingt android soft buttons, and what is strange when it plays /sys/class/video/axis is 0 0 -1 -1 . In kodi when I put those values the video is blank. It use hardware acceleration for sure, because the video plays without shuttering thing that cannot happened using software acceleration, the processor not being so powerfull.
Posts: 10
Joined: May 2016
Reputation:
0
2016-09-27, 18:46
(This post was last modified: 2016-10-07, 07:00 by wrxtasy.)
I have a m8s+ box, which has the amcodec etc in having a problem I can't solve and this seemed like the right place, certain video files will just freeze my system, only way out is to pull the plug and restart. It's not hevc or extra large files specifically, just seems random. I've tried disabling various accelerator settings and audio settings but nothing seems to work... Any ideas? I'll have the list of files, click one, it says Buffering then screen goes black like it's going to play but then the file screen comes back on frozen...
Posts: 60
Joined: Aug 2014
Reputation:
0
Hello,
Should this fix HD video playback problems on my Wetek Core?!
Although, Samba has 22Mb up/down bandwidth, Kodi is unable to normally play back any HD video.
I tried dozens of settings, inside Kodi, buffer settings in advancedsettings.xml... nothing works
Thank you!
Posts: 9,033
Joined: Feb 2012
Reputation:
551
You don't use Kodi on the WeTek Core - use the customised, optimised for Core - Wetek Media Player App (Kodi Jarvis).
HD Video playback does work on the Core, really you should be seeking help in the WeTek forums as that is what they are specifically there for with WeTek devices. I do not recommend using regular Kodi.
Sounds more like you have a networking issue rather than Kodi playback problem.. See the Wetek forums for help.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
The upcoming firmware should be just fine for regular kodi