My audio consistently skips 2-3 times when I increase or decrease the audio using this script:
Bash
#!/bin/bash
action() {
cec-ctl --to 0 --user-control-pressed ui-cmd=volume-up
exit 1
}
action &
The volume up script is the same but using 0x41 instead.
This is my keymap:
Code
<keymap>
<global>
<keyboard>
<key id="61637">stepforward</key>
<key id="61636">stepback</key>
<key id="61625">System.Exec(/storage/.kodi/userdata/keymaps/volumeup.sh)</key>
<key id="61624">System.Exec(/storage/.kodi/userdata/keymaps/volumedown.sh)</key>
<key id="61623">noop</key>
<key id="61952">menu</key>
</keyboard>
</global>
</keymap>
Display More
I'm sure there's a better way to do this, but I'm at my wits end. It doesn't skip when I run it from the command line on root.
Here is what I think is the relevant part of the logs:
Code
2024-10-23 01:34:02.135 T:1093 info <general>: Loading skin file: /storage/.kodi/addons/script.plexmod/resources/skins/Main/1080i/script-plex-busy.xml, load type: LOAD_ON_GUI_INIT
2024-10-23 01:34:03.645 T:3461 info <general>: script.plex: Notification: xbmc Application.OnVolumeChanged {"muted":false,"volume":60}
2024-10-23 01:34:04.023 T:3461 info <general>: script.plex: Notification: xbmc Info.OnChanged null
2024-10-23 01:34:04.023 T:3461 info <general>: script.plex: Notification: xbmc Player.OnPlay {"item":{"type":"unknown"},"player":{"playerid":0,"speed":1}}
2024-10-23 01:34:04.617 T:3649 info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder mp3float
2024-10-23 01:34:04.699 T:3649 info <general>: AudioDecoder: File is queued
2024-10-23 01:34:04.726 T:1101 info <general>: CActiveAESink::OpenSink - initialize sink
2024-10-23 01:34:04.926 T:1101 info <general>: CAESinkALSA::Initialize - Attempting to open device "default"
2024-10-23 01:34:04.927 T:1101 info <general>: CAESinkALSA::Initialize - Opened device "default"
2024-10-23 01:34:04.927 T:1101 info <general>: CAESinkALSA::InitializeHW - Unable to open the required number of channels
2024-10-23 01:34:04.927 T:1101 info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2024-10-23 01:34:04.927 T:1101 info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE3
2024-10-23 01:34:04.937 T:3649 info <general>: PAPlayer::PrepareStream - Ready
2024-10-23 01:34:05.038 T:3461 info <general>: script.plex: Notification: xbmc Player.OnAVStart {"item":{"type":"unknown"},"player":{"playerid":0,"speed":1}}
2024-10-23 01:34:05.335 T:1100 info <general>: CAESinkALSA - Unable to open device "sysdefault:CARD=vc4hdmi1" for playback
2024-10-23 01:34:05.335 T:1100 info <general>: CAESinkALSA - Unable to open device "hdmi:CARD=vc4hdmi1,DEV=0" for playback
2024-10-23 01:34:05.336 T:1100 warning <general>: Pulseaudio module module-allow-passthrough not loaded - opening PT devices might fail
2024-10-23 01:34:05.336 T:1100 info <general>: Found 2 Lists of Devices
2024-10-23 01:34:05.336 T:1100 info <general>: Enumerated ALSA devices:
2024-10-23 01:34:05.336 T:1100 info <general>: Device 1
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceName : default
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayName : Default Audio Device ()
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayNameExtra:
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceType : AE_DEVTYPE_PCM
2024-10-23 01:34:05.336 T:1100 info <general>: m_channels : FL, FR
2024-10-23 01:34:05.336 T:1100 info <general>: m_sampleRates : 32000,44100,48000,176400,192000
2024-10-23 01:34:05.336 T:1100 info <general>: m_dataFormats : AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
2024-10-23 01:34:05.336 T:1100 info <general>: m_streamTypes : No passthrough capabilities
2024-10-23 01:34:05.336 T:1100 info <general>: Device 2
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceName : sysdefault
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayName : vc4-hdmi-0 ()
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayNameExtra: MAI PCM i2s-hifi-0
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceType : AE_DEVTYPE_PCM
2024-10-23 01:34:05.336 T:1100 info <general>: m_channels : FL, FR
2024-10-23 01:34:05.336 T:1100 info <general>: m_sampleRates : 32000,44100,48000,176400,192000
2024-10-23 01:34:05.336 T:1100 info <general>: m_dataFormats : AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
2024-10-23 01:34:05.336 T:1100 info <general>: m_streamTypes : No passthrough capabilities
2024-10-23 01:34:05.336 T:1100 info <general>: Device 3
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceName : sysdefault:CARD=vc4hdmi0
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayName : vc4-hdmi-0 (vc4hdmi0)
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayNameExtra: MAI PCM i2s-hifi-0
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceType : AE_DEVTYPE_PCM
2024-10-23 01:34:05.336 T:1100 info <general>: m_channels : FL, FR
2024-10-23 01:34:05.336 T:1100 info <general>: m_sampleRates : 32000,44100,48000,176400,192000
2024-10-23 01:34:05.336 T:1100 info <general>: m_dataFormats : AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE
2024-10-23 01:34:05.336 T:1100 info <general>: m_streamTypes : No passthrough capabilities
2024-10-23 01:34:05.336 T:1100 info <general>: Device 4
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceName : hdmi:CARD=vc4hdmi0,DEV=0
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayName : vc4-hdmi-0 (vc4hdmi0)
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayNameExtra: TCL 85S435 on HDMI
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceType : AE_DEVTYPE_HDMI
2024-10-23 01:34:05.336 T:1100 info <general>: m_channels : FL, FR
2024-10-23 01:34:05.336 T:1100 info <general>: m_sampleRates : 32000,44100,48000,176400,192000
2024-10-23 01:34:05.336 T:1100 info <general>: m_dataFormats : AE_FMT_RAW,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_U8,AE_FMT_RAW
2024-10-23 01:34:05.336 T:1100 info <general>: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_MA,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD
2024-10-23 01:34:05.336 T:1100 info <general>: Enumerated PULSE devices:
2024-10-23 01:34:05.336 T:1100 info <general>: Device 1
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceName : Default
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayName : Default
2024-10-23 01:34:05.336 T:1100 info <general>: m_displayNameExtra: Bluetooth Audio (PULSEAUDIO)
2024-10-23 01:34:05.336 T:1100 info <general>: m_deviceType : AE_DEVTYPE_PCM
2024-10-23 01:34:05.336 T:1100 info <general>: m_channels : FL, FR
2024-10-23 01:34:05.336 T:1100 info <general>: m_sampleRates : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
2024-10-23 01:34:05.336 T:1100 info <general>: m_dataFormats : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
2024-10-23 01:34:05.336 T:1100 info <general>: m_streamTypes : No passthrough capabilities
2024-10-23 01:34:05.336 T:1101 info <general>: CActiveAESink::OpenSink - initialize sink
2024-10-23 01:34:05.336 T:1101 info <general>: CAESinkALSA::Initialize - Attempting to open device "default"
2024-10-23 01:34:05.337 T:1101 info <general>: CAESinkALSA::Initialize - Opened device "default"
2024-10-23 01:34:05.337 T:1101 info <general>: CAESinkALSA::InitializeHW - Unable to open the required number of channels
2024-10-23 01:34:05.337 T:1101 info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2024-10-23 01:34:05.337 T:1101 info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE3
Display More