annotate DOCS/tech/slave.txt @ 15706:c6bedab03c97

Add sub_load and sub_remove slave commands. Patch by kiriuja [mplayer-patches at en-directo dot net]
author reimar
date Thu, 09 Jun 2005 20:13:53 +0000
parents cec4a515061f
children 174830eb6c0b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
1 SLAVE MODE PROTOCOL
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
2 -------------------
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
3
15267
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
4 The -slave option switches on slave mode, in which MPlayer works as a backend
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
5 for other programs. Instead of intercepting keyboard events, MPlayer will read
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
6 commands separated by a newline (\n) from stdin.
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
7
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
8 To try slave mode out by hand, run
15264
1692cd76d52a better slave mode description
diego
parents: 15155
diff changeset
9
15267
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
10 mplayer -slave -quiet <movie>
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
11
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
12 and type slave commands into the console window.
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
13
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
14 Most slave mode commands are equivalent to command line options, though not
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
15 necessarily under the same name. Detailed descriptions can be found in the
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
16 man page.
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
17
15264
1692cd76d52a better slave mode description
diego
parents: 15155
diff changeset
18 All commands can be prefixed with "pausing ", causing MPlayer to pause as soon
1692cd76d52a better slave mode description
diego
parents: 15155
diff changeset
19 as possible after processing the command. Please note that this can be before
1692cd76d52a better slave mode description
diego
parents: 15155
diff changeset
20 the command is fully executed.
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
21
15267
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
22 Available commands ('mplayer -input cmdlist' will print a list):
15264
1692cd76d52a better slave mode description
diego
parents: 15155
diff changeset
23
14688
7a7565f28455 Put general note at the top of the file.
diego
parents: 14684
diff changeset
24
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
25 seek <value> [<type>]
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
26 Seek to some place in the movie.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
27 0 is a relative seek of +/- <value> seconds (default).
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
28 1 is a seek to <value> % in the movie.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
29 2 is a seek to an absolute position of <value> seconds.
11932
a3e5b0b07ba8 change_rectangle documentation by Angel <knight@sunflower.com>
diego
parents: 11542
diff changeset
30
13710
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
31 speed_set <value>
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
32 Set the speed to <value>.
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
33
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
34 speed_incr <value>
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
35 Add <value> to the current playback speed.
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
36
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
37 speed_mult <value>
13714
3995da1d8d68 grammar + indentation cosmetics
diego
parents: 13710
diff changeset
38 Multiply the current speed by <value>.
13710
d7af73cc38da allow changing playback speed during playback.
reimar
parents: 13626
diff changeset
39
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
40 edl_mark
14329
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
41 Write the current position into the EDL file.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
42
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
43 audio_delay <value>
13244
aa4114c517ea switch_vsync patch by Aurelien Jacobs <aurel @ gnuage.org>, small fix
diego
parents: 13109
diff changeset
44 Adjust the audio delay by <value> seconds.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
45
13366
a75512de0dad Quit now sends an optional return value, based on patch sent by Aurelien
diego
parents: 13244
diff changeset
46 quit [<value>]
a75512de0dad Quit now sends an optional return value, based on patch sent by Aurelien
diego
parents: 13244
diff changeset
47 Quit MPlayer. The optional integer value is used as the return code
a75512de0dad Quit now sends an optional return value, based on patch sent by Aurelien
diego
parents: 13244
diff changeset
48 for the mplayer process (default: 0).
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
49
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
50 pause
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
51 Pause/unpause the playback.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
52
13626
741649fe31cb allow to step only one frame forward by pressing s.
reimar
parents: 13390
diff changeset
53 frame_step
741649fe31cb allow to step only one frame forward by pressing s.
reimar
parents: 13390
diff changeset
54 Play one frame, then pause again.
741649fe31cb allow to step only one frame forward by pressing s.
reimar
parents: 13390
diff changeset
55
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
56 grab_frames
14323
862fab5f5fde grab_frame, osd_show_text, sub_step, screenshot documented.
diego
parents: 13991
diff changeset
57 Currently unimplemented.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
58
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
59 pt_step <value> [<force>]
13715
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
60 Go to the next/previous entry in the playtree. The sign of <value> tells
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
61 the direction. If no entry is available in the given direction it will do
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
62 nothing unless force is non-zero.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
63
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
64 pt_up_step <value> [<force>]
13715
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
65 Similar to pt_step but jumps to the next/previous entry in the parent list.
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
66 Useful to break out of the inner loop in the playtree.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
67
13715
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
68 alt_src_step <value> (ASX playlist only)
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
69 When more than one source is available it selects the next/previous one.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
70
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
71 sub_delay <value> [<abs>]
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
72 Adjust the subtitle delay by +/- <value> seconds or set it to <value>
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
73 seconds when <abs> is nonzero.
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
74
14323
862fab5f5fde grab_frame, osd_show_text, sub_step, screenshot documented.
diego
parents: 13991
diff changeset
75 sub_step <value>
862fab5f5fde grab_frame, osd_show_text, sub_step, screenshot documented.
diego
parents: 13991
diff changeset
76 Step forward in the subtitle list by <value> steps or backwards if <value>
862fab5f5fde grab_frame, osd_show_text, sub_step, screenshot documented.
diego
parents: 13991
diff changeset
77 is negative.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
78
15706
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
79 sub_load <subtitle_file>
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
80 Loads subtitles from <subtitle_file>.
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
81
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
82 sub_remove [<value>]
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
83 If the <value> argument is present and non-negative, removes the subtitle
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
84 file with index <value>. If the argument is omitted or negative, removes
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
85 all subtitle files.
c6bedab03c97 Add sub_load and sub_remove slave commands.
reimar
parents: 15504
diff changeset
86
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
87 osd [<level>]
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
88 Toggle OSD mode or set it to level when <level> >= 0.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
89
14323
862fab5f5fde grab_frame, osd_show_text, sub_step, screenshot documented.
diego
parents: 13991
diff changeset
90 osd_show_text <string>
14329
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
91 Show <string> on the OSD.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
92
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
93 volume <value>
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
94 Increase/decrease volume.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
95
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
96 use_master
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
97 Switch volume control between master and PCM.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
98
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
99 mute
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
100 Mute/unmute sound output.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
101
15285
39eb8a327ea9 adds a parameter to the switch_audio command to directly select a track.
reimar
parents: 15267
diff changeset
102 switch_audio [<value>] (MPEG and Matroska only)
39eb8a327ea9 adds a parameter to the switch_audio command to directly select a track.
reimar
parents: 15267
diff changeset
103 Switch to the audio track with the id <value>. Cycle through the
39eb8a327ea9 adds a parameter to the switch_audio command to directly select a track.
reimar
parents: 15267
diff changeset
104 available tracks if <value> is omitted or negative.
15047
c9eb0a051ed8 The online switching patch also features a slave command: switch_audio
gpoirier
parents: 14691
diff changeset
105
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
106 [contrast|gamma|brightness|hue|saturation] <-100 - 100> [<abs>]
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
107 Set/adjust video parameters.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
108
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
109 frame_drop [<value>]
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
110 Toggle/set frame dropping mode.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
111
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
112 sub_pos <value>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
113 Adjust subtitle position.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
114
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
115 sub_alignment <value>
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
116 Set subtitle alignment.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
117
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
118 sub_visibility
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
119 Toggle subtitle visibility.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
120
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
121 get_sub_visibility
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
122 Print out subtitle visibility (1 == on, 0 == off).
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
123
15128
96512bcb2eca allow sub_select and vobsub_lang to select particular subtitle
henry
parents: 15049
diff changeset
124 sub_select [<value>]
96512bcb2eca allow sub_select and vobsub_lang to select particular subtitle
henry
parents: 15049
diff changeset
125 Display subtitle with index <value>. Turn subtitle display off if
96512bcb2eca allow sub_select and vobsub_lang to select particular subtitle
henry
parents: 15049
diff changeset
126 <value> is -1 or greater than the highest available subtitle index.
96512bcb2eca allow sub_select and vobsub_lang to select particular subtitle
henry
parents: 15049
diff changeset
127 Cycle through the available subtitles if <value> is omitted or less
96512bcb2eca allow sub_select and vobsub_lang to select particular subtitle
henry
parents: 15049
diff changeset
128 than -1. Supported subtitle sources are -sub options on the command
96512bcb2eca allow sub_select and vobsub_lang to select particular subtitle
henry
parents: 15049
diff changeset
129 line, VOBsubs, DVD subtitles, and Ogg and Matroska text streams.
13089
b9171604a4ac moved combined vobsub_lang into sub_select
joey
parents: 12314
diff changeset
130
14684
a4767edef10d command to log current subtitle to file
henry
parents: 14329
diff changeset
131 sub_log
a4767edef10d command to log current subtitle to file
henry
parents: 14329
diff changeset
132 Logs the current or last displayed subtitle together with filename
a4767edef10d command to log current subtitle to file
henry
parents: 14329
diff changeset
133 and time information to ~/.mplayer/subtitle_log. Intended purpose
a4767edef10d command to log current subtitle to file
henry
parents: 14329
diff changeset
134 is to allow convenient marking of bogus subtitles which need to be
a4767edef10d command to log current subtitle to file
henry
parents: 14329
diff changeset
135 fixed while watching the movie.
a4767edef10d command to log current subtitle to file
henry
parents: 14329
diff changeset
136
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
137 vobsub_lang
13089
b9171604a4ac moved combined vobsub_lang into sub_select
joey
parents: 12314
diff changeset
138 This is a stub linked to sub_select for backwards compatibility.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
139
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
140 get_percent_pos
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
141 Print out the current position in the file, as integer percentage [0-100).
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
142
15504
cec4a515061f new get_time_pos slave mode commando
reimar
parents: 15285
diff changeset
143 get_time_pos
cec4a515061f new get_time_pos slave mode commando
reimar
parents: 15285
diff changeset
144 Print out the current position in the file in seconds, as float.
cec4a515061f new get_time_pos slave mode commando
reimar
parents: 15285
diff changeset
145
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
146 get_time_length
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
147 Print out the length of the current file in seconds.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
148
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
149 vo_fullscreen
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
150 Switch to fullscreen mode.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
151
10927
3037e30057bc Typo fix + some additions by Mike Swieton <swietonm@student.gvsu.edu>.
diego
parents: 10897
diff changeset
152 get_vo_fullscreen
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
153 Print out fullscreen status (1 == fullscreened, 0 == windowed).
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
154
11542
85e503ddf65f runtime 'stay-on-top' functionality
joey
parents: 11413
diff changeset
155 vo_ontop
13109
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
156 Toggle stay-on-top.
11542
85e503ddf65f runtime 'stay-on-top' functionality
joey
parents: 11413
diff changeset
157
13091
25f51c72eb06 added runtime toggle of root window playback
joey
parents: 13089
diff changeset
158 vo_rootwin
13109
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
159 Toggle playback on the root window.
13091
25f51c72eb06 added runtime toggle of root window playback
joey
parents: 13089
diff changeset
160
13244
aa4114c517ea switch_vsync patch by Aurelien Jacobs <aurel @ gnuage.org>, small fix
diego
parents: 13109
diff changeset
161 switch_vsync [<value>]
aa4114c517ea switch_vsync patch by Aurelien Jacobs <aurel @ gnuage.org>, small fix
diego
parents: 13109
diff changeset
162 Toggle vsync (1 == on, 0 == off). If no value is provided,
aa4114c517ea switch_vsync patch by Aurelien Jacobs <aurel @ gnuage.org>, small fix
diego
parents: 13109
diff changeset
163 vsync status is inverted.
aa4114c517ea switch_vsync patch by Aurelien Jacobs <aurel @ gnuage.org>, small fix
diego
parents: 13109
diff changeset
164
13367
81ca72fd45f6 runtime aspect switching, patch by Aurelien Jacobs <aurel at gnuage . org>
diego
parents: 13366
diff changeset
165 switch_ratio [<value>]
81ca72fd45f6 runtime aspect switching, patch by Aurelien Jacobs <aurel at gnuage . org>
diego
parents: 13366
diff changeset
166 Change aspect ratio at runtime. Value is the new aspect ratio expressed
81ca72fd45f6 runtime aspect switching, patch by Aurelien Jacobs <aurel at gnuage . org>
diego
parents: 13366
diff changeset
167 as a float (e.g. 1.77778 for 16/9).
13390
1f415687a3f7 switch_ratio may not work with some filter chains
faust3
parents: 13367
diff changeset
168 There might be problems with some video filters.
13367
81ca72fd45f6 runtime aspect switching, patch by Aurelien Jacobs <aurel at gnuage . org>
diego
parents: 13366
diff changeset
169
14329
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
170 panscan <-1.0 - 1.0> | <0.0 - 1.0> <absolute>
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
171 Increase or decrease the pan-and-scan range by <value>, 1.0 is the maximum.
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
172 Negative values decrease the pan-and-scan range.
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
173 If <absolute> is != 0, then the pan-and scan range is interpreted as an
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
174 absolute range.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
175
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
176 loadfile <file|url>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
177 Load the given file/URL.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
178
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
179 loadlist <file>
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
180 Load the given playlist file.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
181
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
182 change_rectangle <val1> <val2>
11932
a3e5b0b07ba8 change_rectangle documentation by Angel <knight@sunflower.com>
diego
parents: 11542
diff changeset
183 Change the position of the rectangle filter rectangle.
13109
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
184 <val1>
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
185 Must be one of the following:
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
186 0 = width
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
187 1 = height
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
188 2 = x position
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
189 3 = y position
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
190 <val2>
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
191 If <val1> is 0 or 1:
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
192 Integer amount to add/subtract from the width/height.
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
193 Positive values add to width/height and negative values
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
194 subtract from it.
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
195 If <val1> is 2 or 3:
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
196 Relative integer amount by which to move the upper left
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
197 rectangle corner. Positive values move the rectangle
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
198 right/down and negative values move the rectangle left/up.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
199
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
200 dvdnav <button>
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
201 Press the given dvdnav button.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
202 1 up
13714
3995da1d8d68 grammar + indentation cosmetics
diego
parents: 13710
diff changeset
203 2 down
3995da1d8d68 grammar + indentation cosmetics
diego
parents: 13710
diff changeset
204 3 left
3995da1d8d68 grammar + indentation cosmetics
diego
parents: 13710
diff changeset
205 4 right
3995da1d8d68 grammar + indentation cosmetics
diego
parents: 13710
diff changeset
206 5 menu
3995da1d8d68 grammar + indentation cosmetics
diego
parents: 13710
diff changeset
207 6 select
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
208
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
209 dvdnav_event <value>
14329
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
210 Send <value> as DVDNAV event. DVDNAV support in MPlayer is disabled.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
211
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
212 tv_step_channel <channel>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
213 Select next/previous TV channel.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
214
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
215 tv_step_norm
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
216 Change TV norm.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
217
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
218 tv_step_chanlist
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
219 Change channel list.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
220
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
221 tv_set_channel <channel>
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
222 Set the current TV channel.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
223
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
224 tv_last_channel
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
225 Set the current TV channel to the last one.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
226
10521
141141fdd250 I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents: 10218
diff changeset
227 tv_set_freq <frequency in MHz>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
228 Set the TV tuner frequency.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
229
10521
141141fdd250 I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents: 10218
diff changeset
230 tv_set_norm <norm>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
231 Set the TV tuner norm (PAL, SECAM, NTSC, ...).
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
232
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
233 tv_set_brightness <-100 - 100>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
234 Set TV tuner brightness.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
235
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
236 tv_set_contrast <-100 -100>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
237 Set TV tuner contrast.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
238
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
239 tv_set_hue <-100 - 100>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
240 Set TV tuner hue.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
241
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
242 tv_set_saturation <-100 - 100>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
243 Set TV tuner saturation.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
244
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
245 gui_[loadfile|loadsubtitle|about|play|stop|gui_playlist|gui_preferences|skinbrowser]
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
246 GUI actions
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
247
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
248 forced_subs_only
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
249 Display forced subtitles only.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
250
12314
c81c4930cadc dvb_set_channel now has two parameters, patch by Nico Sabbi.
diego
parents: 11932
diff changeset
251 dvb_set_channel <channel_number> <card_number>
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
252 Set DVB channel.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
253
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
254 screenshot
14323
862fab5f5fde grab_frame, osd_show_text, sub_step, screenshot documented.
diego
parents: 13991
diff changeset
255 Take a screenshot. Currently not implemented in any video output driver.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
256
14329
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
257 menu <command>
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
258 Execute an OSD menu command.
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
259 up Move cursor up.
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
260 down Move cursor down.
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
261 ok Accept selection.
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
262 cancel Cancel selection.
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
263 hide Hide the OSD menu.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
264
14329
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
265 set_menu <menu_name>
74e323b9e5db More commands documented, based on Reimar's findings.
diego
parents: 14323
diff changeset
266 Display the menu named <menu_name>.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
267
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
268 The following commands are really only useful for OSD menu console mode:
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
269
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
270 help
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
271 Displays help text, currently empty.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
272
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
273 exit
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
274 Exits from OSD menu console. Unlike 'quit', does not quit MPlayer.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
275
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
276 hide
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
277 Hides the OSD menu console. Clicking a menu command unhides it. Other
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
278 keybindings act as usual.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
279
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
280 run <value>
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
281 Run <value> as shell command. In OSD menu console mode stdout and stdin
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
282 are through the video output driver.