2003-05-31 16:41:41 +00:00
|
|
|
SLAVE MODE PROTOCOL
|
|
|
|
-------------------
|
|
|
|
|
2005-04-26 09:59:16 +00:00
|
|
|
The -slave option switches on slave mode, in which MPlayer works as a backend
|
|
|
|
for other programs. Instead of intercepting keyboard events, MPlayer will read
|
|
|
|
commands separated by a newline (\n) from stdin.
|
2005-04-25 09:20:21 +00:00
|
|
|
|
2005-04-26 09:59:16 +00:00
|
|
|
To try slave mode out by hand, run
|
|
|
|
|
|
|
|
mplayer -slave -quiet <movie>
|
|
|
|
|
|
|
|
and type slave commands into the console window.
|
|
|
|
|
|
|
|
Most slave mode commands are equivalent to command line options, though not
|
|
|
|
necessarily under the same name. Detailed descriptions can be found in the
|
|
|
|
man page.
|
2004-08-24 10:52:28 +00:00
|
|
|
|
2005-04-25 09:20:21 +00:00
|
|
|
All commands can be prefixed with "pausing ", causing MPlayer to pause as soon
|
|
|
|
as possible after processing the command. Please note that this can be before
|
|
|
|
the command is fully executed.
|
|
|
|
|
2005-04-26 09:59:16 +00:00
|
|
|
Available commands ('mplayer -input cmdlist' will print a list):
|
2003-05-31 16:41:41 +00:00
|
|
|
|
2005-02-12 17:22:49 +00:00
|
|
|
|
2003-11-08 01:33:38 +00:00
|
|
|
seek <value> [<type>]
|
|
|
|
Seek to some place in the movie.
|
|
|
|
0 is a relative seek of +/- <value> seconds (default).
|
|
|
|
1 is a seek to <value> % in the movie.
|
|
|
|
2 is a seek to an absolute position of <value> seconds.
|
2004-02-09 15:49:42 +00:00
|
|
|
|
2004-10-20 20:07:50 +00:00
|
|
|
speed_set <value>
|
|
|
|
Set the speed to <value>.
|
|
|
|
|
|
|
|
speed_incr <value>
|
|
|
|
Add <value> to the current playback speed.
|
|
|
|
|
|
|
|
speed_mult <value>
|
2004-10-21 10:41:07 +00:00
|
|
|
Multiply the current speed by <value>.
|
2004-10-20 20:07:50 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
edl_mark
|
2005-01-03 15:01:58 +00:00
|
|
|
Write the current position into the EDL file.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
audio_delay <value>
|
2004-09-04 09:29:08 +00:00
|
|
|
Adjust the audio delay by <value> seconds.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2004-09-17 15:35:47 +00:00
|
|
|
quit [<value>]
|
|
|
|
Quit MPlayer. The optional integer value is used as the return code
|
|
|
|
for the mplayer process (default: 0).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
pause
|
2003-11-08 01:33:38 +00:00
|
|
|
Pause/unpause the playback.
|
|
|
|
|
2004-10-12 22:10:56 +00:00
|
|
|
frame_step
|
|
|
|
Play one frame, then pause again.
|
|
|
|
|
2003-11-08 01:33:38 +00:00
|
|
|
grab_frames
|
2005-01-03 10:20:36 +00:00
|
|
|
Currently unimplemented.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
pt_step <value> [<force>]
|
2004-10-21 11:06:30 +00:00
|
|
|
Go to the next/previous entry in the playtree. The sign of <value> tells
|
|
|
|
the direction. If no entry is available in the given direction it will do
|
|
|
|
nothing unless force is non-zero.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
pt_up_step <value> [<force>]
|
2004-10-21 11:06:30 +00:00
|
|
|
Similar to pt_step but jumps to the next/previous entry in the parent list.
|
|
|
|
Useful to break out of the inner loop in the playtree.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2004-10-21 11:06:30 +00:00
|
|
|
alt_src_step <value> (ASX playlist only)
|
|
|
|
When more than one source is available it selects the next/previous one.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
sub_delay <value> [<abs>]
|
2004-08-24 10:52:28 +00:00
|
|
|
Adjust the subtitle delay by +/- <value> seconds or set it to <value>
|
|
|
|
seconds when <abs> is nonzero.
|
|
|
|
|
2005-01-03 10:20:36 +00:00
|
|
|
sub_step <value>
|
|
|
|
Step forward in the subtitle list by <value> steps or backwards if <value>
|
|
|
|
is negative.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-06-09 20:13:53 +00:00
|
|
|
sub_load <subtitle_file>
|
|
|
|
Loads subtitles from <subtitle_file>.
|
|
|
|
|
|
|
|
sub_remove [<value>]
|
|
|
|
If the <value> argument is present and non-negative, removes the subtitle
|
|
|
|
file with index <value>. If the argument is omitted or negative, removes
|
|
|
|
all subtitle files.
|
|
|
|
|
2003-11-08 01:33:38 +00:00
|
|
|
osd [<level>]
|
2004-08-24 10:52:28 +00:00
|
|
|
Toggle OSD mode or set it to level when <level> >= 0.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-01-03 10:20:36 +00:00
|
|
|
osd_show_text <string>
|
2005-01-03 15:01:58 +00:00
|
|
|
Show <string> on the OSD.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
volume <value>
|
|
|
|
Increase/decrease volume.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
use_master
|
2003-11-08 01:33:38 +00:00
|
|
|
Switch volume control between master and PCM.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
mute
|
2003-11-08 01:33:38 +00:00
|
|
|
Mute/unmute sound output.
|
|
|
|
|
2005-04-28 14:43:19 +00:00
|
|
|
switch_audio [<value>] (MPEG and Matroska only)
|
|
|
|
Switch to the audio track with the id <value>. Cycle through the
|
|
|
|
available tracks if <value> is omitted or negative.
|
2005-04-03 15:10:24 +00:00
|
|
|
|
2003-11-08 01:33:38 +00:00
|
|
|
[contrast|gamma|brightness|hue|saturation] <-100 - 100> [<abs>]
|
2004-08-24 10:52:28 +00:00
|
|
|
Set/adjust video parameters.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
frame_drop [<value>]
|
2004-08-24 10:52:28 +00:00
|
|
|
Toggle/set frame dropping mode.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
sub_pos <value>
|
2004-08-24 10:52:28 +00:00
|
|
|
Adjust subtitle position.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
sub_alignment <value>
|
2003-11-08 01:33:38 +00:00
|
|
|
Set subtitle alignment.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
sub_visibility
|
2003-11-08 01:33:38 +00:00
|
|
|
Toggle subtitle visibility.
|
|
|
|
|
2003-09-20 19:54:12 +00:00
|
|
|
get_sub_visibility
|
2003-11-08 01:33:38 +00:00
|
|
|
Print out subtitle visibility (1 == on, 0 == off).
|
|
|
|
|
2005-04-11 21:26:14 +00:00
|
|
|
sub_select [<value>]
|
|
|
|
Display subtitle with index <value>. Turn subtitle display off if
|
|
|
|
<value> is -1 or greater than the highest available subtitle index.
|
|
|
|
Cycle through the available subtitles if <value> is omitted or less
|
|
|
|
than -1. Supported subtitle sources are -sub options on the command
|
|
|
|
line, VOBsubs, DVD subtitles, and Ogg and Matroska text streams.
|
2004-08-22 18:47:48 +00:00
|
|
|
|
2005-02-12 14:45:54 +00:00
|
|
|
sub_log
|
|
|
|
Logs the current or last displayed subtitle together with filename
|
|
|
|
and time information to ~/.mplayer/subtitle_log. Intended purpose
|
|
|
|
is to allow convenient marking of bogus subtitles which need to be
|
|
|
|
fixed while watching the movie.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
vobsub_lang
|
2004-08-22 18:47:48 +00:00
|
|
|
This is a stub linked to sub_select for backwards compatibility.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
get_percent_pos
|
2004-08-24 10:52:28 +00:00
|
|
|
Print out the current position in the file, as integer percentage [0-100).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-05-18 11:38:06 +00:00
|
|
|
get_time_pos
|
|
|
|
Print out the current position in the file in seconds, as float.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
get_time_length
|
2003-11-08 01:33:38 +00:00
|
|
|
Print out the length of the current file in seconds.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
vo_fullscreen
|
2003-11-08 01:33:38 +00:00
|
|
|
Switch to fullscreen mode.
|
|
|
|
|
2003-09-22 09:19:41 +00:00
|
|
|
get_vo_fullscreen
|
2003-11-08 01:33:38 +00:00
|
|
|
Print out fullscreen status (1 == fullscreened, 0 == windowed).
|
|
|
|
|
2003-11-30 16:36:10 +00:00
|
|
|
vo_ontop
|
2004-08-24 10:55:02 +00:00
|
|
|
Toggle stay-on-top.
|
2003-11-30 16:36:10 +00:00
|
|
|
|
2004-08-22 19:01:56 +00:00
|
|
|
vo_rootwin
|
2004-08-24 10:55:02 +00:00
|
|
|
Toggle playback on the root window.
|
2004-08-22 19:01:56 +00:00
|
|
|
|
2004-09-04 09:29:08 +00:00
|
|
|
switch_vsync [<value>]
|
|
|
|
Toggle vsync (1 == on, 0 == off). If no value is provided,
|
|
|
|
vsync status is inverted.
|
|
|
|
|
2004-09-17 15:38:59 +00:00
|
|
|
switch_ratio [<value>]
|
|
|
|
Change aspect ratio at runtime. Value is the new aspect ratio expressed
|
|
|
|
as a float (e.g. 1.77778 for 16/9).
|
2004-09-19 18:36:18 +00:00
|
|
|
There might be problems with some video filters.
|
2004-09-17 15:38:59 +00:00
|
|
|
|
2005-01-03 15:01:58 +00:00
|
|
|
panscan <-1.0 - 1.0> | <0.0 - 1.0> <absolute>
|
|
|
|
Increase or decrease the pan-and-scan range by <value>, 1.0 is the maximum.
|
|
|
|
Negative values decrease the pan-and-scan range.
|
|
|
|
If <absolute> is != 0, then the pan-and scan range is interpreted as an
|
|
|
|
absolute range.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
loadfile <file|url>
|
2004-08-24 10:52:28 +00:00
|
|
|
Load the given file/URL.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
loadlist <file>
|
|
|
|
Load the given playlist file.
|
|
|
|
|
|
|
|
change_rectangle <val1> <val2>
|
2004-02-09 15:49:42 +00:00
|
|
|
Change the position of the rectangle filter rectangle.
|
2004-08-24 10:55:02 +00:00
|
|
|
<val1>
|
|
|
|
Must be one of the following:
|
|
|
|
0 = width
|
|
|
|
1 = height
|
|
|
|
2 = x position
|
|
|
|
3 = y position
|
|
|
|
<val2>
|
|
|
|
If <val1> is 0 or 1:
|
|
|
|
Integer amount to add/subtract from the width/height.
|
|
|
|
Positive values add to width/height and negative values
|
|
|
|
subtract from it.
|
|
|
|
If <val1> is 2 or 3:
|
|
|
|
Relative integer amount by which to move the upper left
|
|
|
|
rectangle corner. Positive values move the rectangle
|
|
|
|
right/down and negative values move the rectangle left/up.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
dvdnav <button>
|
|
|
|
Press the given dvdnav button.
|
|
|
|
1 up
|
2004-10-21 10:41:07 +00:00
|
|
|
2 down
|
|
|
|
3 left
|
|
|
|
4 right
|
|
|
|
5 menu
|
|
|
|
6 select
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
dvdnav_event <value>
|
2005-01-03 15:01:58 +00:00
|
|
|
Send <value> as DVDNAV event. DVDNAV support in MPlayer is disabled.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
tv_step_channel <channel>
|
2004-08-24 10:52:28 +00:00
|
|
|
Select next/previous TV channel.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
tv_step_norm
|
2003-11-08 01:33:38 +00:00
|
|
|
Change TV norm.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
tv_step_chanlist
|
2003-11-08 01:33:38 +00:00
|
|
|
Change channel list.
|
|
|
|
|
|
|
|
tv_set_channel <channel>
|
|
|
|
Set the current TV channel.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
tv_last_channel
|
2003-11-08 01:33:38 +00:00
|
|
|
Set the current TV channel to the last one.
|
|
|
|
|
2003-08-04 09:13:10 +00:00
|
|
|
tv_set_freq <frequency in MHz>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set the TV tuner frequency.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2003-08-04 09:13:10 +00:00
|
|
|
tv_set_norm <norm>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set the TV tuner norm (PAL, SECAM, NTSC, ...).
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
tv_set_brightness <-100 - 100>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set TV tuner brightness.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
tv_set_contrast <-100 -100>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set TV tuner contrast.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
tv_set_hue <-100 - 100>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set TV tuner hue.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
tv_set_saturation <-100 - 100>
|
2004-08-24 10:52:28 +00:00
|
|
|
Set TV tuner saturation.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
gui_[loadfile|loadsubtitle|about|play|stop|gui_playlist|gui_preferences|skinbrowser]
|
|
|
|
GUI actions
|
|
|
|
|
|
|
|
forced_subs_only
|
|
|
|
Display forced subtitles only.
|
|
|
|
|
2004-04-27 07:21:35 +00:00
|
|
|
dvb_set_channel <channel_number> <card_number>
|
2003-11-08 01:33:38 +00:00
|
|
|
Set DVB channel.
|
|
|
|
|
|
|
|
screenshot
|
2005-01-03 10:20:36 +00:00
|
|
|
Take a screenshot. Currently not implemented in any video output driver.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-01-03 15:01:58 +00:00
|
|
|
menu <command>
|
|
|
|
Execute an OSD menu command.
|
|
|
|
up Move cursor up.
|
|
|
|
down Move cursor down.
|
|
|
|
ok Accept selection.
|
|
|
|
cancel Cancel selection.
|
|
|
|
hide Hide the OSD menu.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-01-03 15:01:58 +00:00
|
|
|
set_menu <menu_name>
|
|
|
|
Display the menu named <menu_name>.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
2005-02-13 12:31:47 +00:00
|
|
|
The following commands are really only useful for OSD menu console mode:
|
|
|
|
|
2003-11-08 01:33:38 +00:00
|
|
|
help
|
2005-02-13 12:31:47 +00:00
|
|
|
Displays help text, currently empty.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
exit
|
2005-02-13 12:31:47 +00:00
|
|
|
Exits from OSD menu console. Unlike 'quit', does not quit MPlayer.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
hide
|
2005-02-13 12:31:47 +00:00
|
|
|
Hides the OSD menu console. Clicking a menu command unhides it. Other
|
|
|
|
keybindings act as usual.
|
2003-11-08 01:33:38 +00:00
|
|
|
|
|
|
|
run <value>
|
2005-02-13 12:31:47 +00:00
|
|
|
Run <value> as shell command. In OSD menu console mode stdout and stdin
|
|
|
|
are through the video output driver.
|