use utf8;

{
title => 'MPlayer',
version => '1.3',
intro => join("\n",
	'Default interface controls for the original MPlayer v1.0 media player.',
	'Mostly inherited by <a href="/mplayer/mpv">mpv</a>.',
),
description => [
	"Keyboard cheat sheet for the $mode media player,",
	"overviewing the default controls.",
],
keywords => [qw'mpv mplayer mplayer2 media player video audio'],
rows => [1, 0],

mode => {
	'' => "interactive control",
},

flag => {
	g1 => [osd       => "Print information or change display."],
	g2 => [subtitles => "Alter subtitle selection and settings."],
	g4 => [video     => "Video output adjustment."],
	g6 => [audio     => "Sound (track) configuration."],
	g7 => [playback  => "Playback control."],
	g9 => [general   => "Other MPlayer features."],

	arg => ["key<arg>" => "Commands with a dot read further input afterwards."],
	ext => ["optional" => "Some features depend on setup and/or parameters."],
},

def => {
	'' => {
		"\e"=> \'q',
		'[' => ['g7', "slow down 10%"],
		']' => ['g7', "speed up 10%"],
		'{' => ['g7', "half speed"],
		'}' => ['g7', "double speed"],
		'<' => ['g9', "previous file"],
		'>' => ['g9', "next file"],
		'p' => ['g7', "pause"],
		'.' => ['g7', "step forward"],
		'q' => ['g9', "stop and quit"],
		'+' => ['g6', "audio delay +<>.1s"],
		'-' => ['g6', "audio delay -<>.1s"],
		'/' => ['g6', "volume decrease"],
		'*' => ['g6', "volume increase"],
		'9' => \'/',
		'0' => \'*',
		'm' => ['g6', "mute sound"],
		'#' => ['g6', "cycle audio tr<>ack<>s"],
		'f' => ['g4', "full<>screen"],
		'T' => ['g4', "stay on top"],
		'w' => ['g4', "pan/sc. decr<>eas<>e"],
		'e' => ['g4', "pan/scan increase"],
		'o' => ['g1', "osd state switch"],
		'd' => ['g4', "frame drop mode"],
		'v' => ['g2', "subtitle visibility"],
		'b' => ['g2', "next sub<>title"],
		'j' => ['g2', "prev<>ious sub<>title"],
		'y' => ['g2', "forward in sub<>title<>s list"],
		'g' => ['g2', "back in sub<>title<>s list"],
		'F' => ['g2', "forced subtitles"],
		'a' => ['g2', "align subtitles"],
		'c' => ['g4 ext', "cycle fs mode"],
		'n' => ['g4 ext', "restore video mode"],
		'x' => ['g2', "subtitle delay +<>.1<>s"],
		'z' => ['g2', "subtitle delay -<>.1<>s"],
		'r' => ['g2', "subtitles up"],
		't' => ['g2', "subtitles down"],
		's' => ['g9 ext', "screen<>shot\n-vf screenshot"],
		'S' => ['g9 ext', "record screen<>shot<>s\n-vf screenshot"],
		'I' => ['g1', "filename"],
		'!' => ['g7', "chapter back"], # also pgdn in mpv
		'@' => ['g7', "chapter forward"], # also pgup in mpv
		'1' => ['g4 ext', "contrast less"],
		'2' => ['g4 ext', "contrast more"],
		'3' => ['g4 ext', "brighter"],
		'4' => ['g4 ext', "darker"],
		'5' => ['g4 ext', "hue to red"],
		'6' => ['g4 ext', "hue to blue"],
		'7' => ['g4 ext', "saturate"],
		'8' => ['g4 ext', "de<>saturate"],
	},
},
}
