Hi,
I would like to change 300ms by a touch of my remote
Do not want to use “AudioDelayMinus” “AudioDelayPlus”
Is it possible ?
Thanks !
Hi,
I would like to change 300ms by a touch of my remote
Do not want to use “AudioDelayMinus” “AudioDelayPlus”
Is it possible ?
Thanks !
I am not sure – it’s probably doable with a keymap
Take a look at this Increase Subtitle and Audio Offset steps?
I am using this to change the subtitles delay with 1 second instead of the standard 0,1 second by calling SubtitleDelayMinus 10 times.
Works very well for me, maybe you can use something similar with “AudioDelayMinus” “AudioDelayPlus”
How do you create a script ?
mkdir ~/.kodi/userdata/scripts/
nano ~/.kodi/userdata/scripts/subplus.py
Paste in the following
xbmc.executebuiltin("Action(SubtitleDelayPlus)")
xbmc.executebuiltin("Action(SubtitleDelayPlus)")
xbmc.executebuiltin("Action(SubtitleDelayPlus)")
Then press (ctrl-X) (Y) (enter)
it does not work ! 2 script add audiominus.py and audioplus.py
Here is My script:
xbmc.executebuiltin("Action(AudioDelayMinus)")
xbmc.executebuiltin("Action(AudioDelayMinus)")
xbmc.executebuiltin("Action(AudioDelayMinus)")
&
xbmc.executebuiltin("Action(AudioDelayPlus)")
xbmc.executebuiltin("Action(AudioDelayPlus)")
xbmc.executebuiltin("Action(AudioDelayPlus)")
And my remote.xml:
<four>RunScript(special://masterprofile/scripts/audiominus.py</four>
<six>RunScript(special://masterprofile/scripts/audioplus.py</six>
Delete the remote.xml file you made. In kodi install keymap editor and program two buttons to whatever you want these new keys to be. It does not really matter what you program for them, as you just want to know what actual settings you need. After saving the new keymap you should have a ~/.kodi/userdata/keymaps/gen.xml file. edit that file and replace the commands you made in the keymap editor with the ‘runscript’ command.
Note: It is likely that the number keys are not available to Kodi for programing, especially if you use CEC. In keymap editor if you don’t see it taking a new key you will have to try another till you find something that works.
I prefer to keep remote.xml because I made a lot of changes at my convenience.
My scripts are installed here: /home/osmc/.kodi/userdata/scripts
Do you see anything wrong ?
Please post the full scripts, and the full remote.xml as they will not work if they are as you posted them here.
I just tried it, and it works fine here with f4 and f5 on the keyboard while video is playing
keymap.xml
<keymap>
<global>
<remote>
<blue>Info</blue>
<yellow>PlayMedia(rtsp://user:password@192.168.1.179:554/cam/realmonitor?channel=1&subtype=0)</yellow>
</remote>
<keyboard>
<f1>runscript(/home/osmc/.kodi/addons/service.vpn.manager/api.py, Connect 1)</f1>
<f2>runscript(/home/osmc/.kodi/addons/service.vpn.manager/api.py, Disconnect)</f2>
<f3>runscript(/home/osmc/.kodi/addons/service.vpn.manager/infopopup.py)</f3>
</keyboard>
</global>
<FullscreenVideo>
<remote>
<red>RunScript(special://masterprofile/scripts/subminus.py)</red>
<green>RunScript(special://masterprofile/scripts/subplus.py)</green>
<yellow>PlayerDebug</yellow>
<blue>Info</blue>
</remote>
<keyboard>
<f4>runscript(special://masterprofile/scripts/audiominus.py)</f4>
<f5>runscript(special://masterprofile/scripts/audioplus.py)</f5>
</keyboard>
</FullscreenVideo>
</keymap>
audiominus.py
located /home/osmc/.kodi/userdata/scripts
import xbmc
xbmc.executebuiltin("Action(AudioDelayMinus)")
xbmc.executebuiltin("Action(AudioDelayMinus)")
xbmc.executebuiltin("Action(AudioDelayMinus)")
audioplus.py
located /home/osmc/.kodi/userdata/scripts
import xbmc
xbmc.executebuiltin("Action(AudioDelayPlus)")
xbmc.executebuiltin("Action(AudioDelayPlus)")
xbmc.executebuiltin("Action(AudioDelayPlus)")
Edit: with this script the offset is only changed by 75ms, you have to change the script to have 12 lines instead of 3 to have the full 300ms offset.
No, I understood my mistake I did not add ) at the end.
<four>RunScript(special://masterprofile/scripts/audiominus.py</four>
for
<four>RunScript(special://masterprofile/scripts/audiominus.py)</four>
Is great now !