Kodi Community Forum
Release Audio Profiles - Easy switch between different audio settings - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Release Audio Profiles - Easy switch between different audio settings (/showthread.php?tid=200081)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25


RE: Audio Profiles - Easy switch between different audio settings - Roby77 - 2017-02-08

With 1.20 Everytime i change profile i get an error

I change It using remote Key

Kodi 18 on x86

Anyone get same errore ?

Here my logs

log-2017-02-08-21.14.45.zip 56 KBhttps://mega.nz/#!DVEDAQCC


RE: Audio Profiles - Easy switch between different audio settings - Regss - 2017-02-09

I can't take this log. I need key to download it.
Best past log on http://pastebin.com


RE: Audio Profiles - Easy switch between different audio settings - candrian - 2017-02-09

@ Regss:

does this help?
https://dl.dropboxusercontent.com/u/23586257/kodi.log

Live TV:

09:17:48.742 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. METHOD: Player.OnPlay
09:17:48.742 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. DATA: {"item":{"channeltype":"tv","id":1,"title":"Das Erste HD","type":"channel"},"player":{"playerid":1,"speed":1}}

Radio Channel:

09:18:12.489 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. METHOD: Player.OnPlay
09:18:12.489 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. DATA: {"item":{"channeltype":"radio","id":66,"title":"Bayern 1","type":"channel"},"player":{"playerid":0,"speed":1}}

Movie:

09:18:35.123 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. METHOD: Player.OnPlay
09:18:35.123 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. DATA: {"item":{"id":120,"type":"movie"},"player":{"playerid":1,"speed":1}}

Music:

09:19:08.283 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. METHOD: Player.OnPlay
09:19:08.283 T:7004 NOTICE: ..::[AUDIO PROFILES TEST]::.. DATA: {"item":{"id":90979,"type":"song"},"player":{"playerid":0,"speed":1}}


RE: Audio Profiles - Easy switch between different audio settings - Regss - 2017-02-09

@candrian, Please download again modified autoexec.py. I must check that every channel switch KODI generate event with OnStop. Put only kodi.log. Thanks.


RE: Audio Profiles - Easy switch between different audio settings - candrian - 2017-02-09

Check this:
https://dl.dropboxusercontent.com/u/23586257/kodi_autoexec_2.log


RE: Audio Profiles - Easy switch between different audio settings - Regss - 2017-02-09

I added version 1.2.1 to my repository. Check how it works now. The autoexec.py no longer needed. I implement debuging options to script. You must only enable logging in kodi -> system -> logging -> enable debug logging.


RE: Audio Profiles - Easy switch between different audio settings - Roby77 - 2017-02-09

(2017-02-09, 09:18)Regss Wrote: I can't take this log. I need key to download it.
Best past log on http://pastebin.com

Sorry..

https://www.dropbox.com/s/dye88t1yk0trnj3/log-2017-02-08-21.14.45.zip?dl=0

in autoexec i have

Code:
import xbmc
xbmc.executebuiltin('XBMC.RunScript(script.audio.profiles,1)')

thanks


RE: Audio Profiles - Easy switch between different audio settings - candrian - 2017-02-09

Yippie - works like a charm!

Test config:
all video --> profile 1 (in my case 5.1)
all audio --> profile 2 (in my case 2.1 + stereo upmix)

Testet this:
TV channel, Movie Files, Movie DB, Youtube addon, other video addons --> automatic switch to profile 1
Radio channel, music files, music DB, Spotify addon, Radio (Webradio) addon --> automatic switch to profile 2

Absolute cool Cool - you integrated the Automatic Audio Switcher (obsolete now) into your Audio Profiles with more options!

Thanks a lot Blush


RE: Audio Profiles - Easy switch between different audio settings - Regss - 2017-02-09

(2017-02-09, 12:52)Roby77 Wrote:
(2017-02-09, 09:18)Regss Wrote: I can't take this log. I need key to download it.
Best past log on http://pastebin.com

Sorry..

https://www.dropbox.com/s/dye88t1yk0trnj3/log-2017-02-08-21.14.45.zip?dl=0

in autoexec i have

Code:
import xbmc
xbmc.executebuiltin('XBMC.RunScript(script.audio.profiles,1)')

thanks

I fix this parse error on v. 1.2.2.
Now you don't need to use autoexec.py to set profile on kodi start. Just in addon settings in automatic switch choose profile for GUI then every time if you change profile then stop playing or restart KODI profile for GUI will be activated.


Guys maybe I add one more automatic switch option - "Force to enable profile when KODI start/wake up". This helps when we do some manual change in audio settings and restart KODI then force to switch to choosen profile.


RE: Audio Profiles - Easy switch between different audio settings - Roby77 - 2017-02-09

(2017-02-09, 14:18)Regss Wrote:
(2017-02-09, 12:52)Roby77 Wrote:
(2017-02-09, 09:18)Regss Wrote: I can't take this log. I need key to download it.
Best past log on http://pastebin.com

Sorry..

https://www.dropbox.com/s/dye88t1yk0trnj3/log-2017-02-08-21.14.45.zip?dl=0

in autoexec i have

Code:
import xbmc
xbmc.executebuiltin('XBMC.RunScript(script.audio.profiles,1)')

thanks

I fix this parse error on v. 1.2.2.
Now you don't need to use autoexec.py to set profile on kodi start. Just in addon settings in automatic switch choose profile for GUI then every time if you change profile then stop playing or restart KODI profile for GUI will be activated.


Guys maybe I add one more automatic switch option - "Force to enable profile when KODI start/wake up". This helps when we do some manual change in audio settings and restart KODI then force to switch to choosen profile.


Sorry updated to 1.22 and deleted autoexec but i still get error Everytime time i change profile via remote Key

New log

https://www.dropbox.com/s/uhltqfxnj5j97xb/log-2017-02-09-13.08.23.zip?dl=0

Edit new logs using dmesg

LibreELEC (community) Version: devel-20170207215743-#0207-g8e51cee
LibreELEC git: 8e51cee404d675b026ab720e069392489e520f37
LibreELEC:~ # cat /storage/.kodi/temp/kodi.log | pastebinit

http://sprunge.us/jQEA
LibreELEC:~ #
LibreELEC:~ #
LibreELEC:~ #
LibreELEC:~ # dmesg | pastebinit
http://sprunge.us/PZgO


RE: Audio Profiles - Easy switch between different audio settings - Regss - 2017-02-09

Fast fix. Check 1.2.3 Smile


RE: Audio Profiles - Easy switch between different audio settings - candrian - 2017-02-09

Wow - Regss, seems that your activity level is really high - is it raining outside? Cool

One minor thing: I start Kodi with "Continue on last channel on startup" to jump directly into the last PVR channel.

So when I left Kodi e.g. with the audio profile he doesn't switch to the video profile after startup. Need to change channel then it works.
Probably solved with your "Force to enable profile when KODI start/wake up".

Once again: minor thing


RE: Audio Profiles - Easy switch between different audio settings - candrian - 2017-02-09

.....but setting the profile for GUI also to the profile used for video works fine.


RE: Audio Profiles - Easy switch between different audio settings - Roby77 - 2017-02-09

(2017-02-09, 15:24)Regss Wrote: Fast fix. Check 1.2.3 Smile

Can't find 1.23 in your repo

Btw now with 1.22 problem disappeared ...strange


RE: Audio Profiles - Easy switch between different audio settings - axlt2002 - 2017-02-09

Hi,

Just want to notify the following missing label in the settings (version 1.2.3):

Image

Ciao!