Closed ananias47 closed 1 year ago
Hi, I am investigating this. It doesn't seem to work on many of these kinds of due to something to how they render video. Can you disable hardware acceleration and try see if it now works?
yes my friend with hardware acceleration off it works well but the odd thing is that manual zoom works well on coreelec in videos where your addon dont work. ps : i know that on android version of kodi doesnt work manual zoom either
So with hardware acceleration turned off the addon works well in all videos?
yes but the videos are laggy
I have same problem so this needs investigation. It may take a while to solve though
Hi, there's a new release which sort of helps in cases like these. Try it out (enable the Android workaround) and let me know if it helps
I try it on coreelec and it give me many log errors and it doesn't work
Can you post a screenshot of the errors I check
I have uploaded new code, use it and tell me if it works
I try it but nothing happened and i have this errors when i press toggle status
Okay, send screenshot of addon settings
What i must sent?? I already did it on previous post
You need to configure the addon settings exactly like in the picture, no need to press Toggle status
I already did this
Hi i tested it on android and it seems that it doesn't work
I have identified the problem will fix soon
There's a new release which should work
hi my friend now i tested it and it works on movies but it doesnt work on same episodes on series and on netflix addon
Okay, will investigate
Hi. You wrote in readme that capturing doesn't work on Coreelec with HW acceleration. But Hyperion add-on (which grab screen and drive ambilight LEDs) works fine. Maybe it could help you with grabbing screen on Coreelec :)
Hi. You have CoreELEC? And Hyperion works with hardware acceleration enabled?
Yeap I have Coreelec 20 on x96 box (amlogic s905x3).
The hyperion works without any problem with HW acceleration enabled.
I see, have you tried this addon on the CoreELEC? Does it work?
I'm now out of my home, but I can test it next week :)
Okay :)
@Benik3 Update when you’ll can Android support is important:)
@TwilightMercy I have Coreelec (Linux), not Android.
Anyway I tried it and it doesn't work on Coreelec. In log I have:
2023-07-16 20:59:11.288 T:9667 error <general>: CRenderManager::Capture - unknown capture id: 0
2023-07-16 20:59:11.288 T:9667 info <general>: Interim Aspect Ratio = 178
2023-07-16 20:59:11.291 T:9667 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'IndexError'>
Error Contents: bytearray index out of range
Traceback (most recent call last):
File "/storage/.kodi/addons/script.black.bars.never/addon.py", line 34, in onAVStarted
self.abolishBlackBars()
File "/storage/.kodi/addons/script.black.bars.never/addon.py", line 132, in abolishBlackBars
aspectratio = self.GetAspectRatioFromFrame()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.black.bars.never/addon.py", line 89, in GetAspectRatioFromFrame
__middleScreenDark = self.LineColorLessThan(
^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/script.black.bars.never/addon.py", line 60, in LineColorLessThan
_bArray[i] &= 0x00
~~~~~~~^^^
IndexError: bytearray index out of range
-->End of Python script error report<--
It's strange because I checked Hyperion and the code they use is same as what I'm using to grab screenshot. I'll do more investigation
I think that Hyperion doesn't use CRenderManager, but special Amlogic grabber... https://github.com/hyperion-project/hyperion.ng/blob/64642a44578fe48dce8144c23180d29c160c7906/libsrc/grabber/amlogic/AmlogicGrabber.cpp
I think Hyperion uses a standalone app different from Kodi to achieve the screenshot. Wouldn't work for this addon because of that, but means Kodi could use their strategy to implement this in Kodi app internally
Is there any open issue about that in Kodi’s github?
I don't think so
I think Hyperion uses a standalone app different from Kodi to achieve the screenshot. Wouldn't work for this addon because of that, but means Kodi could use their strategy to implement this in Kodi app internally
You are right. Hyperion runs as standalone app, there is just add-on for the app so the Hyperion can be controlled from Kodi (e.g. by play/pause of video).
Yes, and they do the screenshot using some workarounds specific to CoreELEC, so maybe Kodi could copy that
hi my friend i find out that on windows 10 works well but on coreelec in some cases doesnt work