News:

HOT TIP! Exploring the commands packaged in VC's standard configurations is a great way to learn how to build your own. You can also clone a command as a starting point: just right-click and select "Clone" (or type Alt-C).

Main Menu

shortcut for volume amplification

Started by MrWolf, June 30, 2013, 06:56:19 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

MrWolf

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

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

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

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

#4
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.

<?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>

jitterjames

Did you get a chance to try this yet?

MrWolf

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


MrWolf

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

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

We'll have to call that your present for this year.  I can't compete with a trumpet.


MrWolf

QuoteDon't buddy me, buddy

http://www.youtube.com/watch?v=ttetmdOZXSU

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


MrWolf

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