LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mplayer Keys/Keyboard Config (https://www.linuxquestions.org/questions/linux-software-2/mplayer-keys-keyboard-config-430125/)

sadarax 03-30-2006 04:18 PM

Mplayer Keys/Keyboard Config
 
Hello, I have a bunch of questions about the ~/.mplayer/input.conf file. I could not find an mplayer specific forum, so I am posting here.

First I have some questions about specific syntax of the input.conf file:

1) How do you set a single letter key (for example, 'a' or 'l' or 'b') to do a command? I can have managed to make it use keys like RIGHT and LEFT but not single keys. Some simple example code would be much appreciated.
2) How do you specify a key with a modifier like CTRL or SHIFT? Is shift merely the uppercase letter used in the input.conf file?

Secondly, I would really get some help with determining the exact commands/syntax for the ~/.mplayer/input.conf file for certain actions. I know the help/man pages seem pretty explicit, but I'm still having trouble. I REALLY just need some examples of some of these commands in action.


Commands:
Code:

* Toggle loop playback on and off
* Cycle aspect ratios, or at least how to assign one to a specific key if cycling is not available
* Toggle window border on/off
* Zoom in/out
* Reset Video/Window size to original (source video size)
* Toggle interlace/deinterlace

Setting different keys for:
Code:

* Cycle through available internal subtitles (currently 'j' and 'b')
* Cycle through available internal audio tracks (currently '#' according to the man pages, but I cannot get it work)
* Volume increase/decrease (currently '9' and '0')
* Load file (currently 'l' in GUI mode)

Is it possible to do:
Code:

* Frame backwards and pause (similar to the key '.', but in reverse)
* Setting an A+B playback in the video

Disabling the following keys/features:
Code:

* contrast
* brightness
* hue
* saturation

I assume I could probably set the command to NULL or something, but I'm wondering if there is a better way

Tormented 03-30-2006 06:54 PM

To get a list of the commands mplayer uses in the config file:
Code:

mplayer -input cmdlist
To get a list of keys:
Code:

mplayer -input keylist
To bind a single letter key, put the letter then a space and the command:
Code:

z sub_delay -0.1
q quit

To disable a key you can put the key and then something mplayer doesn't understand as a command.
For example, do this to disable the contrast controls:
Code:

1 null
2 null



All times are GMT -5. The time now is 04:13 AM.