LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-30-2006, 04:18 PM   #1
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252

Rep: Reputation: 30
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
 
Old 03-30-2006, 06:54 PM   #2
Tormented
Member
 
Registered: Feb 2003
Location: ???
Distribution: Mandriva 2006
Posts: 92

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Special keyboard keys rdabra Linux - Newbie 3 01-04-2006 05:01 AM
Some keys in keyboard do NOT work bmccorm2 Linux - Newbie 1 11-08-2005 10:16 AM
How to configure my keyboard keys. jrfly Linux - Newbie 7 12-16-2004 03:54 PM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 09:36 PM
Bind keyboard keys DigitalTygrrr Linux - Hardware 1 07-24-2003 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration