From: Mischa POSLAWSKY Date: Tue, 13 Oct 2009 23:28:56 +0000 (+0000) Subject: mplayer: add command modes and option classes X-Git-Tag: v1.3~106 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/7b3478ca9d98ec9b1ef2564f0691316b1d9d691d mplayer: add command modes and option classes --- diff --git a/mplayer.inc.pl b/mplayer.inc.pl index 66bd78d..9b1cf27 100644 --- a/mplayer.inc.pl +++ b/mplayer.inc.pl @@ -3,46 +3,54 @@ use utf8; '' => { desc => "interactive control", - 'p' => ["pause", 'co'], - '.' => ["step forward", 'co'], - 'q' => ["stop and quit"], - '+' => ["audio delay +$sign{_}.1s"], - '-' => ["audio delay -$sign{_}.1s"], - '/' => ["volume decrease"], - '*' => ["volume increase"], + '[' => ["slow down 10%", 'mi'], + ']' => ["speed up 10%", 'mi'], + '{' => ["half speed", 'mi'], + '}' => ["double speed", 'mi'], + '<' => ["previous file", 'mo'], + '>' => ["next file", 'mo'], + 'p' => ["pause", 'mi'], + '.' => ["step forward", 'mi'], + 'q' => ["stop and quit", 'mo'], + '+' => ["audio delay +$sign{_}.1s", 'co'], + '-' => ["audio delay -$sign{_}.1s", 'co'], + '/' => ["volume decrease", 'co'], + '*' => ["volume increase", 'co'], '9' => '/', '0' => '*', - 'm' => ["mute sound"], - '#' => ["cycle audio tr$sign{_}ack$sign{_}s"], - 'f' => ["full$sign{_}screen"], - 'T' => ["stay on top"], - 'w' => ["pan/sc. decr$sign{_}eas$sign{_}e"], - 'e' => ["pan/scan increase"], - 'o' => ["osd state switch"], - 'd' => ["frame drop mode"], - 'v' => ["subtitle visibility"], - 'b' => ["next sub$sign{_}title"], - 'j' => ["prev$sign{_}ious sub$sign{_}title"], - 'y' => ["forward in subtitle list"], #TODO + 'm' => ["mute sound", 'co'], + '#' => ["cycle audio tr$sign{_}ack$sign{_}s", 'co'], + 'f' => ["full$sign{_}screen", 'po'], + 'T' => ["stay on top", 'po'], + 'w' => ["pan/sc. decr$sign{_}eas$sign{_}e", 'po'], + 'e' => ["pan/scan increase", 'po'], + 'o' => ["osd state switch", 'ci'], + 'd' => ["frame drop mode", 'po'], + 'v' => ["subtitle visibility", 'pm'], + 'b' => ["next sub$sign{_}title", 'pm'], + 'j' => ["prev$sign{_}ious sub$sign{_}title", 'pm'], + 'y' => ["forward in subtitle list", 'pm'], #TODO 'g' => 'y', #TODO - 'F' => ["forced subtitles"], - 'a' => ["align subtitles"], - 'x' => ["subtitle delay +$sign{_}.1s"], - 'z' => ["subtitle delay -$sign{_}.1s"], - 'r' => ["subtitles up"], - 't' => ["subtitles down"], - 's' => ["screen$sign{_}shot", 'opt', "-vf screenshot"], - 'S' => ["record screen$sign{_}shot$sign{_}s", 'opt', "-vf screenshot"], - 'I' => ["filename"], - '!' => ["chapter back"], - '@' => ["chapter forward"], - '1' => ["contrast less", 'opt'], - '2' => ["contrast more", 'opt'], - '3' => ["brighter", 'opt'], - '4' => ["darker", 'opt'], - '5' => ["hue to red", 'opt'], - '6' => ["hue to blue", 'opt'], - '7' => ["saturate", 'opt'], - '8' => ["de$sign{_}saturate", 'opt'], + 'F' => ["forced subtitles", 'pm'], + 'a' => ["align subtitles", 'pm'], + 'c' => ["cycle fs mode", 'po ext'], + 'n' => ["restore video mode", 'po ext'], + 'x' => ["subtitle delay +$sign{_}.1s", 'pm'], + 'z' => ["subtitle delay -$sign{_}.1s", 'pm'], + 'r' => ["subtitles up", 'pm'], + 't' => ["subtitles down", 'pm'], + 's' => ["screen$sign{_}shot", 'mo ext', "-vf screenshot"], + 'S' => ["record screen$sign{_}shot$sign{_}s", 'mo ext', "-vf screenshot"], + 'I' => ["filename", 'ci'], + '!' => ["chapter back", 'mi'], + '@' => ["chapter forward", 'mi'], + '1' => ["contrast less", 'po ext'], + '2' => ["contrast more", 'po ext'], + '3' => ["brighter", 'po ext'], + '4' => ["darker", 'po ext'], + '5' => ["hue to red", 'po ext'], + '6' => ["hue to blue", 'po ext'], + '7' => ["saturate", 'po ext'], + '8' => ["de$sign{_}saturate", 'po ext'], }, diff --git a/mplayer.plp b/mplayer.plp index 73e79fb..9aab0ea 100644 --- a/mplayer.plp +++ b/mplayer.plp @@ -44,7 +44,7 @@ $header{content_type} = "text/html; charset=$sign{charset}";
  • @@ -53,7 +53,7 @@ $header{content_type} = "text/html; charset=$sign{charset}"; use Shiar_Sheet::Keyboard; my $keys = Shiar_Sheet::Keyboard->new({do 'mplayer.inc.pl'}); $keys->map($get{map}) or undef $get{map}; -$keys->print_rows($get{rows}); +$keys->print_rows($get{rows}, [1,0]); :> @@ -62,22 +62,18 @@ $keys->print_rows($get{rows});
    -
    aside -
    Temporarily display something without changing state. -
    select -
    Scroll list and/or select a different line. -
    search -
    Go to a specific message entry. -
    edit -
    Modify message flags or contents. -
    command -
    Any other action which does not alter an existing message. -
    send -
    Prepare and/or send a (new) message. -
    leave -
    Exit the opened folder. -
    display -
    Permanently alter/toggle current view. +
    osd +
    Print information or change display. +
    subtitles +
    Control subtitle selection or settings. +
    video +
    Video adjustment. +
    audio +
    Sound (track) configuration. +
    playback +
    Playback control. +
    general +
    Other MPlayer features.
    @@ -85,6 +81,8 @@ $keys->print_rows($get{rows});
    key<:= $sign{arg} :>
    Commands with a dot need an argument afterwards. +
    optional +
    Some features depend on setup and/or parameters.