(2015-09-09, 16:09)KenV99 Wrote: (2015-09-07, 05:32)Morphello Wrote: Hey Ken,
Thanks for the great addon. Just attempting to run it with Kodi 15.2. Previously had it working perfectly in 15.1 via direct capture, upgraded over the top with 15.2 and now it no longer works. Windows 8 capture works, just not direct. Thought to check your latest updates on github, updated the addon and now it throws this error. If I revert to 15.1 and 1.0.4 of the addon in the repo, everything works correctly again. Below is the log of 15.2 (same for 15.1) and version 1.0.7.1 of the ambibox plugin.
Code:
12:51:01 T:5424 NOTICE: ### [AmbiBox] - Service Started - ver 1.0.7.1
12:51:01 T:5424 NOTICE: ### [AmbiBox] - 1 profile(s) retrieved from program
12:51:01 T:5424 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: file() constructor not accessible in restricted mode
Traceback (most recent call last):
File "C:\AtlasCore\Programs\Kodi\portable_data\addons\kodi.script.ambibox-master\default.py", line 1828, in <module>
main()
File "C:\AtlasCore\Programs\Kodi\portable_data\addons\kodi.script.ambibox-master\default.py", line 1775, in main
startup()
File "C:\AtlasCore\Programs\Kodi\portable_data\addons\kodi.script.ambibox-master\default.py", line 1724, in startup
scriptsettings = ScriptSettings()
File "C:\AtlasCore\Programs\Kodi\portable_data\addons\kodi.script.ambibox-master\default.py", line 358, in __init__
self.refresh_settings()
File "C:\AtlasCore\Programs\Kodi\portable_data\addons\kodi.script.ambibox-master\default.py", line 397, in refresh_settings
self.updateprofilesettings()
File "C:\AtlasCore\Programs\Kodi\portable_data\addons\kodi.script.ambibox-master\default.py", line 540, in updateprofilesettings
doc = ET.parse(__settingsdir__ + "\\settings.xml")
File "<string>", line 62, in parse
File "<string>", line 26, in parse
IOError: file() constructor not accessible in restricted mode
-->End of Python script error report<--
So just to re-iterate, that's two separate issues. Kodi version 15.2 causes ambibox addon to cease functioning in direct mode. Addon version 1.0.7.1 from github produces error and fails to work entirely. Not sure if direct mode is something you've created or part of the ambibox package, I dont know where the issue actually lies.
Thanks
I tested the addon on both 15.1 and 15.2 and I am not getting any errors and it is functioning for me.
From the above log, I am unsure what 'Restricted mode' is... this may have to do with you running it as a portable? The lines where the error is being generated are due to the fact that the addon reads the names of the ambibox profiles from the registry and then writes them into the settings.xml file in order for you to be able to select the profile names from a drop-down box. It seems that in 'restricted mode' that is not allowed. This feature has been enabled for well over a year, so unless you recently went portable or Kodi has changed it's own internal policy only for portable installations, then I don't see a quick workaround.
As far as the previous version not working in Direct mode, I would need a log when that occurs to troubleshoot. One well-known reason that fails is that it won't work if you have a dsplayer build installed.
This addon and 'Direct mode' were originally authored by denmax2000, the author of the Ambibox application. I took over development and have made many big changes over time since about November 2013.
EDIT: Also, what skin are you using? Do you have the above error using Confluence? See here: 2004370 (post)
Hi Ken,
Sorry for the late reply, have been preoccupied.
You guessed correctly with the restricted mode being Portable Mode, something that I need to use for my setup. To answer your edited question, I'm using the Aeon Nox (Silvo edition) skin, and yes, I'm getting the same error everywhere.
At least I was getting it. It seems Piers had a similar situation and problem to myself and you've solved the issue over the last month. I've updated to Isengard 15.2 RC2, and the latest master of your addon, and it works correctly. I had to completely wipe out the addon settings to upgrade, or it didn't work.
As with Piers, I've noticed strange behavior with the addon seemingly to fail periodically. I don't have notifications on, so I don't see a message. But rarely (<5% of the time) I'll start a video, and the lighting wont work. Stopping the video and playing it again fixes it. Once, while playing a bluray rip that my system was struggling to watch, I started and stopped the video in quick succession (during a freeze), and the lights didn't come back on again. In the end I needed to restart Kodi AND ambibox, because restarting either one while the other was running caused issues.
Other than that minor quibble, everything seems to be working great. It's got the same low CPU usage, low latency direct feed, and it works with all aspect ratios without issue. Thanks!
Edit: Actually there is a small issue. There seems to be a slight delay before changing colour now, where as previously there wasn't. It's like the Smoothing option in Ambibox is ramped up to high. I've got the capture quality set to Highest, delay at 0ms, and framerate at 100 (full). Additionally my settings in Ambibox haven't changed. My system also shouldn't be an issue, as it's a 3.8ghz i5, but it is using integrated graphics. I haven't compared the numbers side by side, but I feel like the direct capture is dropping to <10fps where it should at least match the video fps. I have it set to 60 max. I'll do some testing.
Additionally, and not something you'd probably be able to help with, I've got the latest drivers for Intel's integrated graphics. It's Haswell, which means it has partial hardware decode on H265. I can play 4k@30hz@30mbps (downscaled to 1080p tv) h265 video, however if I'm using the lightpack, the video frame rate drops to about 18fps, and the lighting just pauses. CPU ramps up quite high too. Not sure if there's some crazy inefficiency there, or its just because its 4x the resolution and complexity, but Ambibox uses less than 1% cpu to process the entire lightpack system for 1080p, it shouldn't be much different for 4k.
Edit2: Hrm well, it only seems to be capturing at 14-21fps. I haven't seen it climb higher than that. I figure it adjusts based on need, but wouldn't it hit the film's frame rate (24) at some point?