LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2011, 09:02 PM   #1
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Rep: Reputation: 64
Mplayer with mouse bindings makes life easier.


For anyone that uses mplayer to play their videos, but doesnt get enough usability from basic mplayer itself, and doesnt like gmplayer, or the other GUI's, I've just found that mplayer does actually do all I need, if I use mouse bindings. The bindings give me some extra quick functionality.

Heres my ~/.mplayer/input.conf

Quote:
MOUSE_BTN2 vo_fullscreen [[right mouse - actually toggles between full and window]]
MOUSE_BTN0 osd_show_property_text "${time_pos} - ${length}" 5000 [[left-mouse]]
MOUSE_BTN3 seek +70 [[scroll-wheel up]]
MOUSE_BTN4 seek -70 [[scroll-wheel down]]
MOUSE_BTN2-MOUSE_BTN0 Volume -10 [[hold down right mouse+click left mouse]]
MOUSE_BTN0-MOUSE_BTN2 Volume +10 [[hold down left mouse+click right-mouse]]
MOUSE_BTN0_DBL switch_ratio 1.3333 [[double-click left-mouse for 4:3 aspect]]
MOUSE_BTN2_DBL switch_ratio 1.7777 [[double-click right-mouse for 16:9 aspect]]
MOUSE_BTN1 quit [[middle-mouse click]]
The above is fairly explanatory.

[[]] is not needed in the above, it was just to show which buttons need to be used to get the desired result.

Here is again for easy copy/paste into '~/.mplayer/input.conf' if you want to try it quickly:

Quote:
MOUSE_BTN2 vo_fullscreen
MOUSE_BTN0 osd_show_property_text "${time_pos} - ${length}" 5000
MOUSE_BTN3 seek +70
MOUSE_BTN4 seek -70
MOUSE_BTN2-MOUSE_BTN0 Volume -10
MOUSE_BTN0-MOUSE_BTN2 Volume +10
MOUSE_BTN0_DBL switch_ratio 1.3333
MOUSE_BTN2_DBL switch_ratio 1.7777
MOUSE_BTN1 quit

For fine-grained control of the volume up/down commands above, put this in your ~/.mplayer/config' file:

Code:
volstep = 20

You can find what your mouse button names are by opening a video in mplayer in a terminal, and clicking on the video, it should say if the key has a binding. If you cant get the button name that way, check the following website for ideas on what it could be.

http://how-to.wikia.com/wiki/How_to_configure_MPlayer

Also, You can use some of the commands from the following webpage for the mouse bindings:

http://www.mplayerhq.hu/DOCS/tech/slave.txt

Last edited by clifford227; 11-21-2011 at 09:38 PM.
 
Old 11-22-2011, 02:57 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Good to know. I rarely use mplayer, but it is good to know that I can set up mouse bindings. Normally, I like to control everything and anything with a command line
 
Old 11-22-2011, 09:41 PM   #3
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Original Poster
Rep: Reputation: 64
Quote:
Originally Posted by corp769 View Post
Normally, I like to control everything and anything with a command line
I like to go as low as I can, or rather, make things as simple as possible for those things I do frequently, but I find with watching videos, its easier for me to have mplayer associated to video files via my file manager (xfe).

The real problem I have been having is that I like to stick to GTK2 apps or commandline (burning discs with a small mkisofs & cdrecord script etc, I cant bear the bloated QT apps for such simple tasks, Im sure you can appreciate that as a fellow Slackware user), and that limits me in what GUI I use, and 'Gmplayer' really is fiddly and difficult to use, because of the small, fiddly GUI.

With these mouse bindings I can do all that and more with just the mouse. I really like it now. Its taken all the pain out of watching a video

Last edited by clifford227; 11-22-2011 at 09:47 PM.
 
Old 11-22-2011, 10:15 PM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Honestly dude, I use the command line for EVERYTHING I do..... I use Fedora on my laptop, which I use all the time, and I still use the command line more than I do in slackware..... But as far as watching videos, yes, I use a terminal to play and control them. Is that bad?
 
Old 11-23-2011, 07:38 AM   #5
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Original Poster
Rep: Reputation: 64
No its not bad if it works for you, I just wouldnt get the level of ease that I want from using the commandline for certain tasks. But definatley the CL is a very cool place to be, and a lot can be done from there. Its just that a file manager makes my life easier. I could do anything the FM does, on the commandline, but the FM does it faster for everyday tasks.

I think as regards the mplayer mouse bindings, they would compliment the playing of videos, wether started from the commandline or a file manager. Or you could use the key-bindings. I definatley think that one of those should be customized though if just using mplayer on its own.

Last edited by clifford227; 11-23-2011 at 07:43 AM.
 
Old 11-23-2011, 07:44 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Well I have a small multi-touch input pad, Bamboo Pen & Touch to be exact, and I use it for shortcuts as well (hardware buttons). I know, I'm on odd guy.... I just love to hack devices and make them do what I want them to do. On a side note, I rebinded the multimedia keys on my keyboard to take care of audio control, including changing songs and playing/pausing my music.
 
Old 11-23-2011, 07:50 AM   #7
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Original Poster
Rep: Reputation: 64
Quote:
Originally Posted by corp769 View Post
Well I have a small multi-touch input pad, Bamboo Pen & Touch to be exact, and I use it for shortcuts as well (hardware buttons).
So has this device replaced your mouse for everyday computing/web browsing? How does it work?

I have to say, I've had a horrible time with mice over the years, I cant get one that I feel comfortable with, the one I have at the moment is terrible.

Last edited by clifford227; 11-23-2011 at 07:51 AM.
 
Old 11-23-2011, 07:57 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Oh definitely not. Want to see my mouse? http://cyborggaming.com/prod/rat5.htm
Try not to drool.... LOL
 
Old 11-23-2011, 08:02 AM   #9
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Original Poster
Rep: Reputation: 64
That is a nice mouse looks expensive though

But thats gaming. Do you think a tablet could replace a mouse for everyday computing? In all honesty I'd love to get rid of the mouse..

Last edited by clifford227; 11-23-2011 at 08:03 AM.
 
Old 11-23-2011, 08:05 AM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Ehh, definitely not. I use it just as shortcuts, and to have fun with. And I'm not a gamer at all.... Well, yes, I do play minecraft, but I'm a geek, and I get to build T Flip-Flops out of redstone..... Doesn't get any better than that

But about the mouse.... I bought it because I had the same issues as you - I couldn't find a comfortable mouse. With the RAT 5, I can add counter-weights to weigh it down, and adjust the slider to fit in my palm better.
 
  


Reply

Tags
input, mouse, mplayer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to make my life easier with embedded Linux?????????? raedbenz Linux - Embedded & Single-board computer 7 06-11-2008 12:48 PM
LXer: Sometimes 330,000 employees makes life easier! LXer Syndicated Linux News 0 10-24-2007 09:20 AM
LXer: Five scripts that make life easier with Vim LXer Syndicated Linux News 0 06-07-2007 06:46 PM
LXer: Life Easier For Linux Makers LXer Syndicated Linux News 0 04-10-2007 07:46 PM
making life a little easier drfrankie Linux - Newbie 2 06-23-2003 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration