LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-19-2008, 05:28 PM   #1
lumix
Member
 
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, 11:32 PM   #2
haveanicelife
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, 12:34 PM   #3
kevin-d
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 http://www.mplayerhq.hu/DOCS/tech/slave.txt. 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
 
  


Reply


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 09:00 AM
Which ioctl to use to get the key pressed in the key board? Sreeram B S Linux - Kernel 0 02-24-2007 03:02 AM
is certain key pressed at the moment ?? freeborn Programming 4 11-03-2004 04:13 AM
Unknown key pressed Khang Linux - Newbie 3 10-27-2004 05: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 03:37 AM


All times are GMT -5. The time now is 11:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration