Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-19-2008, 04:28 PM   #1
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
How to stop mplayer from resuming play when any key is pressed (slave mode)?

This is bad behavior. there's a 'p' button in normal mode, and a "pause" command in slave mode so that you can control pause and unpause nicely. pressing the letter, oh, say...'x' shouldn't have anything to do with pausing and the like. But it does.

Anyone know a way around this?
Old 05-30-2012, 10:32 PM   #2
LQ Newbie
Registered: May 2012
Distribution: Debian
Posts: 2

Rep: Reputation: Disabled
My apologies for bumping such an old thread, but this is the only search result relating to this query I can find.

I've just started using mplayer and have everything tuned just as I like it, except for this issue. I would like to be able jump in and out of fullscreen mode without my video resuming. As lumix wants, I only wish for mplayer to pause/unpause when SPACE or p is pressed.

Any ideas?
Old 07-19-2012, 11:34 AM   #3
LQ Newbie
Registered: Aug 2010
Distribution: Arch
Posts: 2

Rep: Reputation: Disabled
It's possible, but there will be some problems.

You need to rebind keys in your ~/.mplayer/input.conf (see example in /etc/mplayer/input.conf or something like that, depending on distribution). If you'd like to disable all the default keys, use command-line option -input nodefault-bindings.

As for what you need to change, look at But remember that "pausing_keep " would still play through some frames while the command is executed, and then pause again. Also, this frequent pausing/unpausing will break audio/video sync temporarily (it will be gradually restored, see command-line -autosync option). There's also "pausing_keep_force " which doesn't pause/unpause but is experimental and not guaranteed to work.

As for me, I was particularily bothered by the fact that video starts playing when I just want to see time elapsed (key P), so I used the following line, which toggles pause and displays time on Space, and was done with it.
SPACE pausing_toggle osd_show_progression


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
1-key seems to be pressed Sovetryne Linux - Newbie 1 06-29-2008 08:00 AM
Which ioctl to use to get the key pressed in the key board? Sreeram B S Linux - Kernel 0 02-24-2007 02:02 AM
is certain key pressed at the moment ?? freeborn Programming 4 11-03-2004 03:13 AM
Unknown key pressed Khang Linux - Newbie 3 10-27-2004 04:12 PM
I am getting a ^H when the backspace key is pressed. The only time that it happens is mlawler Linux - Networking 2 04-29-2004 02:37 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:33 PM.

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