2003-05-31 16:41:41 +00:00
|
|
|
SLAVE MODE PROTOCOL
|
|
|
|
-------------------
|
|
|
|
|
2004-08-24 10:52:28 +00:00
|
|
|
FIXME: Some of these options are still not documented, patches welcome.
|
|
|
|
|
|
|
|
Most slave mode commands are equivalent to command line options.
|
|
|
|
Have a look at the man page for more detailed descriptions.
|
|
|
|
|
2003-05-31 16:41:41 +00:00
|
|
|
If the -slave option is given, playback is controlled by a line-based protocol.
|
|
|
|
Each line must contain one of the following commands:
|
|
|
|
|
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
|
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
|
|
|
|
???
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
sub_step
|
|
|
|
???
|
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
|
|
|
|
|
|
|
osd_show_text <value>
|
2004-08-24 10:52:28 +00:00
|
|
|
???
|
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.
|
|
|
|
|
|
|
|
[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).
|
|
|
|
|
2004-08-22 18:47:48 +00:00
|
|
|
sub_select
|
2004-08-24 10:52:28 +00:00
|
|
|
Cycle through the available subtitles. Supported subtitle sources are
|
|
|
|
-sub options on the command line, VOBsubs, DVD subtitles, and Ogg text
|
2004-08-22 18:47:48 +00:00
|
|
|
streams.
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
2003-11-08 01:33:38 +00:00
|
|
|
panscan <value> [value2]
|
|
|
|
???
|
|
|
|
|
|
|
|
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>
|
|
|
|
???
|
|
|
|
|
|
|
|
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
|
|
|
|
Take a screenshot.
|
|
|
|
|
|
|
|
menu <value>
|
|
|
|
???
|
|
|
|
|
|
|
|
set_menu <value>
|
|
|
|
???
|
|
|
|
|
|
|
|
help
|
|
|
|
???
|
|
|
|
|
|
|
|
exit
|
|
|
|
???
|
|
|
|
|
|
|
|
hide
|
|
|
|
???
|
|
|
|
|
|
|
|
run <value>
|
|
|
|
???
|