LinHES Forums
http://forum.linhes.org/

Mplayer Key Bindings
http://forum.linhes.org/viewtopic.php?f=6&t=17204
Page 1 of 1

Author:  Davidonabus [ Wed Nov 07, 2007 10:49 pm ]
Post subject:  Mplayer Key Bindings

Hey Guys.

I'm using Mplayer to play HD MKV videos on my MythTv installation because the internal player is unable to play them back at full-speed.

Buy, obviously, my key bindings are different from the internal player to Mplayer. So, I want to be able to change the key bindings for MPLAYER (I already have the internal set up the way I want it)..

Is there anywhere I can do this?

I've tried every single key on the keyboard and I cannot find a fastforward or skip ahead/behind button while using Mplayer. I'm sure there must be one though.. ?

Any help would be appreciated.

David

Author:  Kirk [ Wed Nov 07, 2007 11:44 pm ]
Post subject: 

Not sure about the keyboard, but if you're using a remote you can use the 'seek' keyword.

Here's what I use for my remote, seek is in seconds and can be any value you wish;

Code:
begin
        prog = mplayer
        button = Rewind
        config = seek -10
end
begin
        prog = mplayer
        button = FastForward
        config = seek +10
end
begin
        prog = mplayer
        button = PrevChapter
        config = seek -60
end
begin
        prog = mplayer
        button = NextChapter
        config = seek +60
end


Regards,
Kirk.

Author:  Kirk [ Wed Nov 07, 2007 11:49 pm ]
Post subject: 

Just found the keyboard stuff. It's in ~/.mplayer/input.conf

Mine is looking like this atm, though I don't use the keyboard.

Code:
PGUP seek -60
PGDWN seek +60
p pause
l pause


To get a list of the keywords use 'mplayer -input keylist'. For a list of commands use 'mplayer -input cmdlist'.

Further reading here.

Regards,
Kirk.

Author:  Davidonabus [ Thu Nov 08, 2007 11:20 pm ]
Post subject: 

Thanks so much for your help.

I managed to get the keyboard setup with a bunch of commands..

BUT..

seek doesn't seem to work.

For instance.. I tried

RIGHT seek +60
LEFT seek -60

And .. nothing.

Thanks again.

d.

Author:  Davidonabus [ Thu Nov 08, 2007 11:39 pm ]
Post subject: 

Awww.. I figured it out.

Mplayer is not able to seek an HD MKV file.. or, at least, that's what the command line output says.

O well...

d.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/