RE: script.embuary.helper - a skin helper service / widgets alternative - jurialmunkey - 2020-02-22
(2020-02-22, 08:34)sualfred Wrote: @jurialmunkey
It's just easier to implement and I only offer blur + defining the blur radius.
Depends on how you have integrated it.
I more meant is it using the same PIL method to do the blur? Or if it has any optimisations that might result in better performance over colorbox?
I already have colorbox integrated in my skin, so I may as well keep it in if there isn't any advantage to switching. The other effects in colorbox are nice to have but not necessary, so I thought since Embruary Helper has a simpler approach it might be using a different/faster/better method for blurring that is worth switching to.
RE: script.embuary.helper - a skin helper service / widgets alternative - sualfred - 2020-02-22
@jurialmunkey
It's still Pillow (PIL). I see no performance problems on the Shield. Haven't tested lower powered devices.
RE: script.embuary.helper - a skin helper service / widgets alternative - User 405025 - 2020-02-27
@sualfred
Hi, just had 2 questions (first one is or more a suggestion).
Do you think its possible to keep previous Items in the playlist when run the script via playall cmd ??
I do
RunScript(script.embuary.helper,action=playall,id=499,type=music,method=fromhere)
Currently it creates the list just for the actual + next titles and disrespect if there are previsous titles in the list.
Which result in shrink the list(s) till reaching end.
(Video)
Or did i miss something special here ?
Did you think its psossible to add a feature to keep previous title in the playlist ?
EDIT:
And the second one, by checking the kodi log i saw that the script is trying to blur an image and i thought it should just do if i call it via command or if set up the skin.setting bool "blurenabled" to true.
I checked also with esuary and everytime i start music playback or video it start 'blurring process'
I am a bit confused and if that is really intended.
I also checked the skinsettings and there is
xml: <setting id="blurenabled" type="bool">false</setting>
log:
2020-03-02 13:20:18.023 T:15120 NOTICE: Starting Kodi (18.5 Git:20191116-37f51f6e63). Platform: Windows NT x86 64-bit
2020-03-02 13:20:18.023 T:15120 NOTICE: Using Release Kodi x64 build
2020-03-02 13:20:18.023 T:15120 NOTICE: Kodi compiled 2019-11-16 by MSVC 191627034 for Windows NT x86 64-bit version 10.0 (0x0A000006)
2020-03-02 13:20:18.023 T:15120 NOTICE: Running on Windows 10, kernel: Windows NT x86 64-bit version 10.0.18363
...
NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp3float
2020-03-02 13:20:55.272 T:16368 NOTICE: [ script.embuary.helper ] Image blurring: Image changed. Blur H:\MUSIK\Alternative\A Perfect Circle\2003 - Thirteenth Step\folder.jpg.
2020-03-02 13:20:55.320 T:16368 NOTICE: [ script.embuary.helper ] Average color: FFe4ce99
2020-03-02 13:20:56.683 T:15120 ERROR: unmatched parentheses in string.isempty(window(visualisation).property(artistslideshow.artworkready)
2020-03-02 13:20:56.694 T:15120 ERROR: CBinaryAddonManager::ADDON::CBinaryAddonManager::GetInstalledAddonInfo: Requested addon '' unknown as binary
2020-03-02 13:21:12.906 T:15120 ERROR: Control 602 in window 10120 has been asked to focus, but it can't
2020-03-02 13:21:30.307 T:16340 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp3float
2020-03-02 13:21:30.467 T:16368 NOTICE: [ script.embuary.helper ] Image blurring: Image changed. Blur H:\MUSIK\Alternative\A Perfect Circle\2000 - Mer De Noms\folder.jpg.
2020-03-02 13:21:30.506 T:16368 NOTICE: [ script.embuary.helper ] Average color: FF9c7c6f
2020-03-02 13:22:02.261 T:6876 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp3float
2020-03-02 13:22:02.517 T:16368 NOTICE: [ script.embuary.helper ] Image blurring: Image changed. Blur H:\MUSIK\Alternative\A Perfect Circle\2018 - Eat The Elephant\folder.jpg.
2020-03-02 13:22:02.538 T:16368 NOTICE: [ script.embuary.helper ] Average color: FF848082
2020-03-02 13:22:13.193 T:15120 ERROR: CGUIMediaWindow::GetDirectory(musicdb://artists/) failed
2020-03-02 13:22:52.433 T:16340 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp3float
2020-03-02 13:22:52.524 T:16368 NOTICE: [ script.embuary.helper ] Image blurring: Image changed. Blur H:\MUSIK\Post Punk_Dark Wave_Gothic\Bel Canto\1987 - White-Out Conditions\folder.jpg.
2020-03-02 13:22:52.583 T:16368 NOTICE: [ script.embuary.helper ] Average color: FF929a82
...
2020-03-02 13:25:15.754 T:14816 NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through)
2020-03-02 13:25:15.765 T:15120 NOTICE: DXVA::CProcessorHD::InitProcessor: supported deinterlace methods: blend:yes, bob:yes, adaptive:yes, mocomp:yes.
2020-03-02 13:25:15.767 T:16368 NOTICE: [ script.embuary.helper ] Image blurring: Image changed. Blur H:\Filme\American Hustle (2014)\American Hustle (2014)-poster.jpg.
2020-03-02 13:25:15.794 T:5596 NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 41727
2020-03-02 13:25:15.811 T:16368 NOTICE: [ script.embuary.helper ] Average color: FFa58959
2020-03-02 13:25:17.713 T:15120 NOTICE: CVideoPlayer::CloseFile()
2020-03-02 13:25:17.714 T:16128 NOTICE: CVideoPlayer::OnExit()
2020-03-02 13:25:17.714 T:16128 NOTICE: Closing stream player 1
2020-03-02 13:25:17.714 T:16128 NOTICE: Waiting for audio thread to exit
2020-03-02 13:25:17.714 T:14816 NOTICE: thread end: CVideoPlayerAudio::OnExit()
2020-03-02 13:25:17.715 T:16128 NOTICE: Closing audio device
2020-03-02 13:25:17.716 T:15120 NOTICE: VideoPlayer: waiting for threads to exit
2020-03-02 13:25:17.731 T:16128 NOTICE: Deleting audio codec
2020-03-02 13:25:17.731 T:16128 NOTICE: Closing stream player 2
2020-03-02 13:25:17.731 T:16128 NOTICE: waiting for video thread to exit
2020-03-02 13:25:17.758 T:5596 NOTICE: thread end: video_thread
2020-03-02 13:25:17.758 T:16128 NOTICE: deleting video codec
2020-03-02 13:25:17.760 T:16128 NOTICE: DXVA::CDecoder::Close: closing decoder.
2020-03-02 13:25:17.760 T:16128 NOTICE: DXVA: closing decoder context.
2020-03-02 13:25:17.760 T:16128 NOTICE: Closing stream player 3
2020-03-02 13:25:17.761 T:15120 NOTICE: VideoPlayer: finished waiting
2020-03-02 13:25:17.761 T:15120 NOTICE: CVideoPlayer::CloseFile()
2020-03-02 13:25:17.761 T:15120 NOTICE: VideoPlayer: waiting for threads to exit
2020-03-02 13:25:17.761 T:15120 NOTICE: VideoPlayer: finished waiting
2020-03-02 13:25:22.233 T:16368 NOTICE: [ script.embuary.helper ] Force widgets to refresh (VideoLibrary.OnUpdate)
2020-03-02 13:25:22.234 T:16368 NOTICE: [ script.embuary.helper ] Execute: AlarmClock(WidgetRefresh,SetProperty(EmbuaryWidgetUpdate,20200302122522,home),00:10,silent)
2020-03-02 13:25:23.167 T:16368 NOTICE: [ script.embuary.helper ] Force widgets to refresh (VideoLibrary.OnUpdate)
2020-03-02 13:25:23.167 T:16368 NOTICE: [ script.embuary.helper ] Execute: AlarmClock(WidgetRefresh,SetProperty(EmbuaryWidgetUpdate,20200302122523,home),00:10,silent)
2020-03-02 13:25:24.503 T:15120 NOTICE: VideoPlayer::OpenFile: H:\Filme\Nach der Hochzeit (2006)\Nach der Hochzeit (2006).CD1.avi
2020-03-02 13:25:24.504 T:15748 NOTICE: Creating InputStream
2020-03-02 13:25:24.597 T:15748 NOTICE: Creating Demuxer
2020-03-02 13:25:24.757 T:15748 NOTICE: Opening stream: 0 source: 256
2020-03-02 13:25:24.757 T:15748 NOTICE: Creating video codec with codec id: 12
2020-03-02 13:25:24.758 T:15748 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
2020-03-02 13:25:24.758 T:15748 NOTICE: Creating video thread
2020-03-02 13:25:24.759 T:15748 NOTICE: Opening stream: 1 source: 256
2020-03-02 13:25:24.759 T:15748 NOTICE: Finding audio codec for: 86019
2020-03-02 13:25:24.760 T:15672 NOTICE: running thread: video_thread
2020-03-02 13:25:24.760 T:15748 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder ac3
2020-03-02 13:25:24.760 T:15748 NOTICE: Creating audio thread
2020-03-02 13:25:24.761 T:11064 NOTICE: running thread: CVideoPlayerAudio:rocess()
2020-03-02 13:25:24.788 T:15672 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
2020-03-02 13:25:24.806 T:11064 NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through)
2020-03-02 13:25:24.843 T:15672 NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 40000
2020-03-02 13:25:25.878 T:16368 NOTICE: [ script.embuary.helper ] Image blurring: Image changed. Blur H:\Filme\Nach der Hochzeit (2006)\Nach der Hochzeit (2006)-thumb.jpg.
2020-03-02 13:25:26.040 T:16368 NOTICE: [ script.embuary.helper ] Average color: FF8e8377
2020-03-02 13:25:26.777 T:15120 NOTICE: CVideoPlayer::CloseFile()
...
2020-03-02 13:25:31.654 T:16368 NOTICE: [ script.embuary.helper ] Image blurring: Image changed. Blur H:\Filme\Soft Cell Say Hello, Wave Goodbye (2019)\Soft Cell Say Hello, Wave Goodbye (2019)-poster.jpg.
2020-03-02 13:25:31.793 T:16368 NOTICE: [ script.embuary.helper ] Average color: FF8559a9
RE: script.embuary.helper - a skin helper service / widgets alternative - sualfred - 2020-03-02
There is a blurring for the player artwork which is always enabled. It's on my list to make it optional. Just out of time atm.
The play commands never honors a current playlist. Why don't you use the context menu "queue item" ?
RE: script.embuary.helper - a skin helper service / widgets alternative - User 405025 - 2020-03-03
(2020-03-02, 19:29)sualfred Wrote: There is a blurring for the player artwork which is always enabled. It's on my list to make it optional. Just out of time atm.
The play commands never honors a current playlist. Why don't you use the context menu "queue item" ?
Thanks for response, i cannot queue item outside of myvideonav/mymusicnav.
Just thought it would be a nice feature but its not a must have.
I used the script method for playback currently in 'musicosd' / 'CustomDialog' / 'CustomWindow', in all of that cases queuing is sadly not possible.
RE: script.embuary.helper - a skin helper service / widgets alternative - sualfred - 2020-03-03
So you are looking just for a "queue" feature? Because the play would stop the current item and use the new one.
RE: script.embuary.helper - a skin helper service / widgets alternative - User 405025 - 2020-03-03
(2020-03-03, 09:48)sualfred Wrote: So you are looking just for a "queue" feature? Because the play would stop the current item and use the new one.
A "queue" feature would be really great as it'll help alot, if posiible.
The 'kepp (previous items) current List' too but it'll not be neccessary if queuing will be posibble .
;-)
RE: script.embuary.helper - a skin helper service / widgets alternative - sualfred - 2020-03-03
can you please open a issue thread on github? Otherwise there is a high chance that I'll forget it. I'm taking a break for a few days because of the birth of the my second monster.
RE: script.embuary.helper - a skin helper service / widgets alternative - User 405025 - 2020-03-03
(2020-03-03, 12:06)sualfred Wrote: can you please open a issue thread on github? Otherwise there is a high chance that I'll forget it. I'm taking a break for a few days because of the birth of the my second monster.
Sure, and Congratulations and hope all is goin well ;-)
RE: script.embuary.helper - a skin helper service / widgets alternative - nessus - 2020-03-20
Hi @sualfred... I have a couple a questions about the "Reset container positions" function.
1. Is this works only with the <onclick /> tag?. I tested in <onunload /> and it's not working.
2. Can this work on grouplists ?. I mean reset the position of multiple list containers in a grouplist.
Thanks and congrats on the coming of your second "little monster"
Mine happened years ago, but i still remember it like it was ... yesterday
EDIT: Also if the container is a panel with two rows of items the reset it's not working.
Cheers
Nessus
RE: script.embuary.helper - a skin helper service / widgets alternative - sualfred - 2020-03-20
Thanks. And with the lockdown and Corona I have a lot of time for the family.
It's sometimes a bit tricky and depends on the nature of the window (window/dialog). The Python overhead and delay can be too late until a window has been closed.
RE: script.embuary.helper - a skin helper service / widgets alternative - roidy - 2020-03-26
@sualfred Blurring of embedded artwork is broken again
https://github.com/sualfred/script.embuary.helper/issues/35
RE: script.embuary.helper - a skin helper service / widgets alternative - sualfred - 2020-03-26
Let's discuss this on GitHub. Please provide a log, too.
RE: script.embuary.helper - a skin helper service / widgets alternative - nessus - 2020-04-06
Hi @sualfred
I am trying to create a custom search which will be called from select dialog created with skin helper and i am having problem to make it work.
The Skin.SetString opens the k/b to type the string but after that the custom window it's not opening.
This is the code that i am using...
xml: <onclick>SetProperty(Dialog.1.Label,$LOCALIZE[3],Home)</onclick>
<onclick>SetProperty(Dialog.1.Label2,$LOCALIZE[31381],Home)</onclick>
<onclick>SetProperty(Dialog.1.Icon,icons/videos.png,Home)</onclick>
<onclick>SetProperty(Dialog.1.BuiltIn,RunScript(script.globalsearch,movies=true&tvshows=true&episodes=true&musicvideos=true),Home)</onclick>
<onclick>SetProperty(Dialog.2.Label,Search,Home)</onclick>
<onclick>SetProperty(Dialog.2.Label2,$LOCALIZE[31384],Home)</onclick>
<onclick>SetProperty(Dialog.2.Icon,icons/search.png,Home)</onclick>
<onclick>SetProperty(Dialog.2.BuiltIn,SetProperty(CustomSearch,1,Home)||Skin.Reset(SearchString)||Skin.SetString(SearchString)||ActivateWindow(1125),Home)</onclick>
<onclick>RunScript(script.embuary.helper,action=createselect,header=$LOCALIZE[137]...,usedetails=true)</onclick>
What am i doing wrong here?
RE: script.embuary.helper - a skin helper service / widgets alternative - sualfred - 2020-04-06
The actions are performed in a row. This means it's trying to activate a window while the keyboard is active.
You could activate the window before you open the keyboard. Or add a onunload to the keyboard dialog and use the skin string or a custom property as trigger.
Code: <onunload condition="!String.IsEmpty(Skin.String(SearchString))">ActivateWindow(1125)</onunload>
|