Author Topic: shortcut for volume amplification  (Read 15074 times)

0 Members and 1 Guest are viewing this topic.

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
shortcut for volume amplification
« on: June 30, 2013, 06:56:19 PM »
Hey gents,

I'm sure you're already aware of the feature in XBMC to alter the amplification for any media that has not been properly normalised and is too quiet.

I can't find any shortcut to alter it using Vox.  Do you know of any?

The shortcut is there for audio offset: XJson.Btn.KB a

...and that is a really handy thing to have, I just really want to be able to alter amplification in the same way.  Any ideas?

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: shortcut for volume amplification
« Reply #1 on: June 30, 2013, 07:39:42 PM »
I'm not aware of any way to do this, although there is probably a way to pull up the audio settings screen while watching a movie and then you can do it manually, as you would adjust the offset by pressing 'a'.  Let me see if I can at least figure out how to get that window open...

It would be nice if the json api gave us access to this an a whole lot of other audio/video settings, but at the moment it seems to be "volume" and that's about it!  If you have time feel free to try to make a request for this stuff to be added.

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: shortcut for volume amplification
« Reply #2 on: June 30, 2013, 07:54:44 PM »
Thanks mate! Always appreciated. I had a look around for shortcuts but came up empty.

I shall drop them a line when I get a sec. I'm watching Disney's Alladin right now. I feel no need to quantify that fact.

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: shortcut for volume amplification
« Reply #3 on: June 30, 2013, 08:26:40 PM »
http://forum.xbmc.org/showthread.php?tid=124562&pid=1453459#pid1453459

Someone already requested it.

I've added my interest.

If we can at least get the window before it to pop up I can make a macro if there's no other option.

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: shortcut for volume amplification
« Reply #4 on: June 30, 2013, 09:51:00 PM »
Here are two commands to open the audio and video OSD settings.  There is also a command "audio booster" which is a macro.  It will of course only work on "analog" audio. For digital passthrough there is no volume amplification.

The macro actually works pretty well.  It opens the window, goes down, goes right 5 times (you might want to increase this) and then closes the window with "back".  It all happens very quickly.

Originally I tried to use the json command "Gui.Activatewindow," which is what I usually use with Frodo, but discovered another xbmc bug (it actually opens the window, but freezes and then comes back as "can't connect to xbmc" thus introducing an unpleasant delay of almost a second). So instead I used the execbuiltin version of activatewindow, which is only available to us thanks to the VoxTools addon for xbmc.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="False" name="XBMC OSD Settings" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="324" name="Audio settings" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.ExecBuiltin</cmdType>
      <cmdString>activatewindow(osdaudiosettings)</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Audio settings</phrase>
  </command>
  <command id="332" name="Audio Booster" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.ExecBuiltin</cmdType>
      <cmdString>activatewindow(osdaudiosettings)</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <cmdString>Input.ExecuteAction&amp;&amp;"action":"home"</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <cmdString>Input.ExecuteAction&amp;&amp;"action":"down"</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <cmdString>Input.ExecuteAction&amp;&amp;"action":"right"</cmdString>
      <cmdRepeat>5</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <cmdString>Input.ExecuteAction&amp;&amp;"action":"back"</cmdString>
      <cmdRepeat>5</cmdRepeat>
    </action>
    <phrase>Audio Booster</phrase>
  </command>
  <command id="336" name="Video settings" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.ExecBuiltin</cmdType>
      <cmdString>ActivateWindow(osdvideosettings)</cmdString>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Video settings</phrase>
  </command>
</commandGroup>
« Last Edit: June 30, 2013, 09:57:14 PM by nime5ter »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: shortcut for volume amplification
« Reply #5 on: July 02, 2013, 08:37:35 AM »
Did you get a chance to try this yet?

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: shortcut for volume amplification
« Reply #6 on: July 02, 2013, 10:54:55 AM »
Not yet buddy.

It's my birthday so I've been getting spoilt by the missus which has involved lots of travelling around.

I had an owl on my arm a couple of hours ago!

Will have a crack at it when I get home if she doesn't force me to do more awesome things. She is a pain ;)

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: shortcut for volume amplification
« Reply #7 on: July 02, 2013, 11:08:45 AM »
Cool.  Enjoy the big day!

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: shortcut for volume amplification
« Reply #8 on: July 02, 2013, 12:13:44 PM »
She literally just presented me with a trumpet. Not even joking.

Best girlfriend ever.

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: shortcut for volume amplification
« Reply #9 on: July 02, 2013, 03:32:45 PM »
http://www.thekeep.org/~kunoichi/kunoichi/red_dwarf/ace.jpg

In case you've never seen Red Dwarf, this is Ace Rimmer and everyone that met him felt compelled to say "what a guy!!"

I feel this way about you right now.

Works a treat :D

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: shortcut for volume amplification
« Reply #10 on: July 02, 2013, 04:17:52 PM »
We'll have to call that your present for this year.  I can't compete with a trumpet.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: shortcut for volume amplification
« Reply #11 on: July 02, 2013, 04:22:45 PM »
Not yet buddy.

Don't buddy me, buddy


MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: shortcut for volume amplification
« Reply #12 on: July 03, 2013, 05:52:11 AM »
Quote
Don't buddy me, buddy



Haha, Mint.  Now to listen to more Moxy Fruvous.

-P
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: shortcut for volume amplification
« Reply #13 on: February 26, 2015, 06:26:25 PM »

MrWolf

  • $upporter
  • Sr. Member
  • *****
  • Posts: 209
  • Karma: 4
    • View Profile
Re: shortcut for volume amplification
« Reply #14 on: March 02, 2015, 12:11:07 PM »
Wicked! Thanks for letting me know matey!

Neesha and I will finally be moving into our dream home in a couple weeks and there will be much automation happening and I shall remember to implement this :)

Xxx
Home automation guides for idiots like me by an idiot (me)...
https://www.youtube.com/user/wolfsweb