Posts: 1,267
Joined: Sep 2004
Reputation:
27
2020-08-18, 11:05
(This post was last modified: 2020-08-18, 11:09 by Solo0815.)
Is it possible to switch (and save) CEC-settings from Kodi also with audio profiles?
I have set CEC to put my Odroid N2 in standby, when I switching of the TV. I want to listen to music via a bluetooth speaker connected to Kodi (CoreELEC and snapcast) without having the TV running.
Therefore I have 2 audio profiles, which are working great:
#1 for Movies, TVShows, PVR, Videos, etc. (Sound over HDMI -> TV)
#2 for Music (Sound over Bluetooth/Snapcast)
Now, when I'm listen to music, I have to leave my TV on, but it's not needed. If I turn it off, my Kodi-device is also turned off.
It would be nice, if this addon saves the CEC-config also and would set it corresponding to the profile.
Then I can have 2 CEC-settings:
#1 turns the device off when turning TV off -> audio profile #1 for videos
#2 keeps the device running of TV is turned off -> audio profile #2 for music
btw: The CEC-settings are in $KODI/userdata/peripheral_data/cec_CEC_Adapter.xml
Thx
Philips TV with Kodi 20.2 with IPTV --- Orbsmart 500 Android 21 alpha/beta as Online-radio/TV in the kitchen
Posts: 48
Joined: Jul 2016
Reputation:
0
Hi.
Is it possible to add an auto-switch option that detects the name of what's being played?
I listen to some YouTube live radio streams, and would like to upmix those to 5.1. There's currently no way to do that now, without also upmixing other stereo streams.
Posts: 18
Joined: Dec 2015
Reputation:
0
Hi there,
Is it possible to add a "Bluetooth connected" option to the Auto Switch section?
I have a tv with ac3/dolby/dts decoder so I'm using KODI with passthrough mode most of the time, but in the evenings I have to put on the Bluetooth headphones usually.
(and there is no sound in passthrough mode with bluetooth).
I found another addon named Bluetooth Audio Device Changer that can change the audio device when connected, but nothing can do with all the other settings.
Regards
Posts: 158
Joined: Oct 2017
Reputation:
2
2020-12-02, 13:39
(This post was last modified: 2020-12-02, 13:57 by Gee11.)
Is it able to e.g. launch a script or batch file (windows 10) when stereo is played ? I want to switch my equalizer apo config
interresting for me is this feature: "option to automatically select a profile based on audio codec/number of audio channels used in stream"
Posts: 158
Joined: Oct 2017
Reputation:
2
2020-12-02, 14:23
(This post was last modified: 2020-12-02, 14:27 by Gee11.)
what is the pyton 3 (i only use Kodi Matrix) command for copying a text file froam a to b witch unasked autoverwrite ?
i simply want to do this:
if "audiochannels" = 2 then copy config_2ch.txt to /myFOLDER
elseif "audiochannels" > 2 then copy config_mch.txt to /myFOLDER
Posts: 158
Joined: Oct 2017
Reputation:
2
2020-12-02, 23:42
(This post was last modified: 2020-12-03, 16:16 by Gee11.)
my solution: i modified your "audioprofiles.py"
if channels:
if channels > 2:
channels_set = 'auto_multichannel'
# path where original file is located
sourcePath = "c:\\Program Files\\EqualizerAPO\\config\\mch.txt"
# path were a copy of file is needed
destinationPath = "c:\\Program Files\\EqualizerAPO\\config\\config.txt"
# call copyfile() method
shutil.copyfile(sourcePath, destinationPath)
else:
channels_set = 'auto_stereo'
# path where original file is located
sourcePath = "c:\\Program Files\\EqualizerAPO\\config\\2ch.txt"
# path were a copy of file is needed
destinationPath = "c:\\Program Files\\EqualizerAPO\\config\\config.txt"
# call copyfile() method
shutil.copyfile(sourcePath, destinationPath)
else:
channels_set = 'none'
now i can controll Equalizer APO thx
only problem: when i play music with Kodi it dosnt change the audio profile to stereo
Posts: 7
Joined: Dec 2020
Reputation:
0
Hi, I have a problem with auto-switching. Two profiles are set.
1. TV (HDMI)
2. 5.1 (Sound card in PC)
Profile set 1. TV as default at startup. The problem is as follows.
I turn on the PC => Start Kodi => AudioProfiles sets the profile 1. TV correctly, it even displays a change message = >> the sound does not come, there is no sound from the TV or other output ... then I go => Settings => System => One press down to Sound => Sound will start working without a problem without changing the sound output, just view the sound settings.
I tried to update all sound drivers, graphics card drivers, sound cards, install old drivers, official drivers from the manufacturer's website, download drivers using device manager, update Win, replace HDMI cable, reinstall Kodi, tested to version 17.6 - 18.9 - 19.0 BETA everywhere the same. Unfortunately, I did not find a solution anywhere, I started using AudioProfiles two weeks ago.
Windows 10-64bit