Mercurial > mplayer.hg
annotate DOCS/tech/slave.txt @ 25064:f9a966f36dae
Move setting media format code
closer to connection establishment routine.
author | voroshil |
---|---|
date | Sun, 18 Nov 2007 10:55:51 +0000 |
parents | e09187679c34 |
children | c04b64054255 |
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 | 4 The -slave option switches on slave mode, in which MPlayer works as a backend |
5 for other programs. Instead of intercepting keyboard events, MPlayer will read | |
6 commands separated by a newline (\n) from stdin. | |
7 | |
8 To try slave mode out by hand, run | |
15264 | 9 |
15267 | 10 mplayer -slave -quiet <movie> |
11 | |
12 and type slave commands into the console window. | |
13 | |
24932
230f1e6a7c2d
Add an example on how to use slave mode with a fifo
reimar
parents:
24258
diff
changeset
|
14 You can also use a fifo file: |
230f1e6a7c2d
Add an example on how to use slave mode with a fifo
reimar
parents:
24258
diff
changeset
|
15 |
230f1e6a7c2d
Add an example on how to use slave mode with a fifo
reimar
parents:
24258
diff
changeset
|
16 mplayer -input file=<fifofile> <movie> |
230f1e6a7c2d
Add an example on how to use slave mode with a fifo
reimar
parents:
24258
diff
changeset
|
17 |
15267 | 18 Most slave mode commands are equivalent to command line options, though not |
19 necessarily under the same name. Detailed descriptions can be found in the | |
20 man page. | |
13108 | 21 |
17241
3ab613cdf96a
add "pausing_keep" and "pausing_toggle" input cmd prefixes
ods15
parents:
17182
diff
changeset
|
22 All commands can be prefixed with one of "pausing ", "pausing_keep ", or |
3ab613cdf96a
add "pausing_keep" and "pausing_toggle" input cmd prefixes
ods15
parents:
17182
diff
changeset
|
23 "pausing_toggle ". "pausing " tells MPlayer to pause as soon as possible |
3ab613cdf96a
add "pausing_keep" and "pausing_toggle" input cmd prefixes
ods15
parents:
17182
diff
changeset
|
24 after processing the command. "pausing_keep " tells MPlayer to do so only if |
3ab613cdf96a
add "pausing_keep" and "pausing_toggle" input cmd prefixes
ods15
parents:
17182
diff
changeset
|
25 it was already in paused mode. "pausing_toggle " tells MPlayer to do so |
3ab613cdf96a
add "pausing_keep" and "pausing_toggle" input cmd prefixes
ods15
parents:
17182
diff
changeset
|
26 only if it was not already in paused mode. Please note that "as soon as |
3ab613cdf96a
add "pausing_keep" and "pausing_toggle" input cmd prefixes
ods15
parents:
17182
diff
changeset
|
27 possible" can be before the command is fully executed. |
10218
f82646fc1431
Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff
changeset
|
28 |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
29 |
15267 | 30 Available commands ('mplayer -input cmdlist' will print a list): |
15264 | 31 |
14688 | 32 |
13715 | 33 alt_src_step <value> (ASX playlist only) |
34 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
|
35 |
17954 | 36 audio_delay <value> [abs] |
17937 | 37 Set/adjust the audio delay. |
17954 | 38 If [abs] is not given or is zero, adjust the delay by <value> seconds. |
39 If [abs] is nonzero, set the delay to <value> seconds. | |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
40 |
17954 | 41 [brightness|contrast|gamma|hue|saturation] <value> [abs] |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
42 Set/adjust video parameters. |
17954 | 43 If [abs] is not given or is zero, modifies parameter by <value>. |
44 If [abs] is non-zero, parameter is set to <value>. | |
17182
3a892a5656db
minor grammar clarification to the last commit, + omitted periods
wanderer
parents:
17178
diff
changeset
|
45 <value> is in the range [-100, 100]. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
46 |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
47 change_rectangle <val1> <val2> |
11932
a3e5b0b07ba8
change_rectangle documentation by Angel <knight@sunflower.com>
diego
parents:
11542
diff
changeset
|
48 Change the position of the rectangle filter rectangle. |
13109 | 49 <val1> |
50 Must be one of the following: | |
51 0 = width | |
52 1 = height | |
53 2 = x position | |
54 3 = y position | |
55 <val2> | |
56 If <val1> is 0 or 1: | |
57 Integer amount to add/subtract from the width/height. | |
58 Positive values add to width/height and negative values | |
59 subtract from it. | |
60 If <val1> is 2 or 3: | |
61 Relative integer amount by which to move the upper left | |
62 rectangle corner. Positive values move the rectangle | |
63 right/down and negative values move the rectangle left/up. | |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
64 |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
65 dvb_set_channel <channel_number> <card_number> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
66 Set DVB channel. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
67 |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
68 dvdnav <button> |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
69 Press the given dvdnav button. |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
70 1 up |
13714 | 71 2 down |
72 3 left | |
73 4 right | |
74 5 menu | |
75 6 select | |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
76 |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
77 edl_mark |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
78 Write the current position into the EDL file. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
79 |
17954 | 80 frame_drop [value] |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
81 Toggle/set frame dropping mode. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
82 |
19534 | 83 get_audio_bitrate |
84 Print out the audio bitrate of the current file. | |
85 | |
86 get_audio_codec | |
87 Print out the audio codec name of the current file. | |
88 | |
89 get_audio_samples | |
90 Print out the audio frequency and number of channels of the current file. | |
91 | |
92 get_file_name | |
93 Print out the name of the current file. | |
94 | |
95 get_meta_album | |
96 Print out the 'Album' metadata of the current file. | |
97 | |
98 get_meta_artist | |
99 Print out the 'Artist' metadata of the current file. | |
100 | |
101 get_meta_comment | |
102 Print out the 'Comment' metadata of the current file. | |
103 | |
104 get_meta_genre | |
105 Print out the 'Genre' metadata of the current file. | |
106 | |
107 get_meta_title | |
108 Print out the 'Title' metadata of the current file. | |
109 | |
110 get_meta_track | |
111 Print out the 'Track Number' metadata of the current file. | |
112 | |
113 get_meta_year | |
114 Print out the 'Year' metadata of the current file. | |
115 | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
116 get_percent_pos |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
117 Print out the current position in the file, as integer percentage [0-100). |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
118 |
17924
0eac85e451cb
Add get/set_property and update volume/mute to the last changes.
albeu
parents:
17241
diff
changeset
|
119 get_property <property> |
0eac85e451cb
Add get/set_property and update volume/mute to the last changes.
albeu
parents:
17241
diff
changeset
|
120 Print out the current value of a property. |
0eac85e451cb
Add get/set_property and update volume/mute to the last changes.
albeu
parents:
17241
diff
changeset
|
121 |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
122 get_sub_visibility |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
123 Print out subtitle visibility (1 == on, 0 == off). |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
124 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
125 get_time_length |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
126 Print out the length of the current file in seconds. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
127 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
128 get_time_pos |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
129 Print out the current position in the file in seconds, as float. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
130 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
131 get_vo_fullscreen |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
132 Print out fullscreen status (1 == fullscreened, 0 == windowed). |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
133 |
19534 | 134 get_video_bitrate |
135 Print out the video bitrate of the current file. | |
136 | |
137 get_video_codec | |
138 Print out the video codec name of the current file. | |
139 | |
140 get_video_resolution | |
141 Print out the video resolution of the current file. | |
142 | |
19833 | 143 screenshot <value> |
16479
e56a4aea6512
The screenshot command is now implemented, wording/spelling fixes.
diego
parents:
16445
diff
changeset
|
144 Take a screenshot. Requires the screenshot filter to be loaded. |
19858 | 145 0 Take a single screenshot. |
146 1 Start/stop taking screenshot of each frame. | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
147 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
148 gui_[about|loadfile|loadsubtitle|play|playlist|preferences|skinbrowser|stop] |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
149 GUI actions |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
150 |
16445 | 151 key_down_event <value> |
20109 | 152 Inject <value> key code event into MPlayer. |
16445 | 153 |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
154 loadfile <file|url> <append> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
155 Load the given file/URL, stopping playback of the current file/URL. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
156 If <append> is nonzero playback continues and the file/URL is |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
157 appended to the current playlist instead. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
158 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
159 loadlist <file> <append> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
160 Load the given playlist file, stopping playback of the current file. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
161 If <append> is nonzero playback continues and the playlist file is |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
162 appended to the current playlist instead. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
163 |
23727 | 164 loop <value> [abs] |
165 Adjust/set how many times the movie should be looped. -1 means no loop, | |
166 and 0 forever. | |
167 | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
168 menu <command> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
169 Execute an OSD menu command. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
170 up Move cursor up. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
171 down Move cursor down. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
172 ok Accept selection. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
173 cancel Cancel selection. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
174 hide Hide the OSD menu. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
175 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
176 set_menu <menu_name> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
177 Display the menu named <menu_name>. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
178 |
17954 | 179 mute [value] |
17955 | 180 Toggle sound output muting or set it to [value] when [value] >= 0 |
17924
0eac85e451cb
Add get/set_property and update volume/mute to the last changes.
albeu
parents:
17241
diff
changeset
|
181 (1 == on, 0 == off). |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
182 |
17954 | 183 osd [level] |
184 Toggle OSD mode or set it to [level] when [level] >= 0. | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
185 |
18222
8c35bd43135f
Add a new command: osd_show_property_text that show an expanded property
albeu
parents:
18208
diff
changeset
|
186 osd_show_property_text <string> [duration] [level] |
8c35bd43135f
Add a new command: osd_show_property_text that show an expanded property
albeu
parents:
18208
diff
changeset
|
187 Show an expanded property string on the OSD, see -playing-msg for a |
8c35bd43135f
Add a new command: osd_show_property_text that show an expanded property
albeu
parents:
18208
diff
changeset
|
188 description of the available expansions. If [duration] is >= 0 the text |
18224 | 189 is shown for [duration] ms. [level] sets the minimum OSD level needed |
190 for the message to be visible (default: 0 - always show). | |
18222
8c35bd43135f
Add a new command: osd_show_property_text that show an expanded property
albeu
parents:
18208
diff
changeset
|
191 |
18223 | 192 osd_show_text <string> [duration] [level] |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
193 Show <string> on the OSD. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
194 |
17955 | 195 panscan <-1.0 - 1.0> | <0.0 - 1.0> <abs> |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
196 Increase or decrease the pan-and-scan range by <value>, 1.0 is the maximum. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
197 Negative values decrease the pan-and-scan range. |
17955 | 198 If <abs> is != 0, then the pan-and scan range is interpreted as an |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
199 absolute range. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
200 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
201 pause |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
202 Pause/unpause the playback. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
203 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
204 frame_step |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
205 Play one frame, then pause again. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
206 |
17954 | 207 pt_step <value> [force] |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
208 Go to the next/previous entry in the playtree. The sign of <value> tells |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
209 the direction. If no entry is available in the given direction it will do |
17954 | 210 nothing unless [force] is non-zero. |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
211 |
17954 | 212 pt_up_step <value> [force] |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
213 Similar to pt_step but jumps to the next/previous entry in the parent list. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
214 Useful to break out of the inner loop in the playtree. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
215 |
17954 | 216 quit [value] |
217 Quit MPlayer. The optional integer [value] is used as the return code | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
218 for the mplayer process (default: 0). |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
219 |
19589
d5c80704c04c
description of radio slave commands, copied from TV command descriptions :-)
reimar
parents:
19534
diff
changeset
|
220 radio_set_channel <channel> |
19607 | 221 Switch to <channel>. The 'channels' radio parameter needs to be set. |
19589
d5c80704c04c
description of radio slave commands, copied from TV command descriptions :-)
reimar
parents:
19534
diff
changeset
|
222 |
d5c80704c04c
description of radio slave commands, copied from TV command descriptions :-)
reimar
parents:
19534
diff
changeset
|
223 radio_set_freq <frequency in MHz> |
d5c80704c04c
description of radio slave commands, copied from TV command descriptions :-)
reimar
parents:
19534
diff
changeset
|
224 Set the radio tuner frequency. |
d5c80704c04c
description of radio slave commands, copied from TV command descriptions :-)
reimar
parents:
19534
diff
changeset
|
225 |
19607 | 226 radio_step_channel <-1|1> |
227 Step forwards (1) or backwards (-1) in channel list. Works only when the | |
228 'channels' radio parameter was set. | |
229 | |
21042 | 230 radio_step_freq <value> |
231 Tune frequency by the <value> (positive - up, negative - down). | |
232 | |
17954 | 233 seek <value> [type] |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
234 Seek to some place in the movie. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
235 0 is a relative seek of +/- <value> seconds (default). |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
236 1 is a seek to <value> % in the movie. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
237 2 is a seek to an absolute position of <value> seconds. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
238 |
19342 | 239 seek_chapter <value> [type] |
240 Seek to the start of a chapter. | |
19346 | 241 0 is a relative seek of +/- <value> chapters (default). |
242 1 is a seek to chapter <value>. | |
19342 | 243 |
19855 | 244 set_mouse_pos <x> <y> |
19871 | 245 Tells MPlayer the coordinates of the mouse in the window. |
246 This command doesn't move the mouse! | |
19855 | 247 |
17924
0eac85e451cb
Add get/set_property and update volume/mute to the last changes.
albeu
parents:
17241
diff
changeset
|
248 set_property <property> <value> |
0eac85e451cb
Add get/set_property and update volume/mute to the last changes.
albeu
parents:
17241
diff
changeset
|
249 Set a property. |
0eac85e451cb
Add get/set_property and update volume/mute to the last changes.
albeu
parents:
17241
diff
changeset
|
250 |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
251 speed_incr <value> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
252 Add <value> to the current playback speed. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
253 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
254 speed_mult <value> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
255 Multiply the current speed by <value>. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
256 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
257 speed_set <value> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
258 Set the speed to <value>. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
259 |
23412
f6c225ffe60d
Allow setting the direction in the step_property command.
albeu
parents:
22667
diff
changeset
|
260 step_property <property> [value] [direction] |
f6c225ffe60d
Allow setting the direction in the step_property command.
albeu
parents:
22667
diff
changeset
|
261 Change a property by value, or increase by a default if value is |
f6c225ffe60d
Allow setting the direction in the step_property command.
albeu
parents:
22667
diff
changeset
|
262 not given or zero. The direction is reversed if direction is less |
f6c225ffe60d
Allow setting the direction in the step_property command.
albeu
parents:
22667
diff
changeset
|
263 than zero. |
20915 | 264 |
17976 | 265 sub_alignment [value] |
17937 | 266 Toggle/set subtitle alignment. |
17976 | 267 0 top alignment |
268 1 center alignment | |
269 2 bottom alignment | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
270 |
17954 | 271 sub_delay <value> [abs] |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
272 Adjust the subtitle delay by +/- <value> seconds or set it to <value> |
17954 | 273 seconds when [abs] is nonzero. |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
274 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
275 sub_load <subtitle_file> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
276 Loads subtitles from <subtitle_file>. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
277 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
278 sub_log |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
279 Logs the current or last displayed subtitle together with filename |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
280 and time information to ~/.mplayer/subtitle_log. Intended purpose |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
281 is to allow convenient marking of bogus subtitles which need to be |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
282 fixed while watching the movie. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
283 |
17954 | 284 sub_pos <value> [abs] |
17937 | 285 Adjust/set subtitle position. |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
286 |
17954 | 287 sub_remove [value] |
288 If the [value] argument is present and non-negative, removes the subtitle | |
289 file with index [value]. If the argument is omitted or negative, removes | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
290 all subtitle files. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
291 |
17954 | 292 sub_select [value] |
293 Display subtitle with index [value]. Turn subtitle display off if | |
294 [value] is -1 or greater than the highest available subtitle index. | |
295 Cycle through the available subtitles if [value] is omitted or less | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
296 than -1. Supported subtitle sources are -sub options on the command |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
297 line, VOBsubs, DVD subtitles, and Ogg and Matroska text streams. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
298 |
23725 | 299 sub_scale <value> [abs] |
300 Adjust the subtitle size by +/- <value> or set it to <value> when [abs] | |
301 is nonzero. | |
302 | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
303 vobsub_lang |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
304 This is a stub linked to sub_select for backwards compatibility. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
305 |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
306 sub_step <value> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
307 Step forward in the subtitle list by <value> steps or backwards if <value> |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
308 is negative. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
309 |
17954 | 310 sub_visibility [value] |
17937 | 311 Toggle/set subtitle visibility. |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
312 |
17954 | 313 forced_subs_only [value] |
17937 | 314 Toggle/set forced subtitles only. |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
315 |
24985
e09187679c34
switch_audio works with many other formats than described
nicodvb
parents:
24932
diff
changeset
|
316 switch_audio [value] (currently MPEG*, AVI, Matroska and streams handled by libavformat) |
17954 | 317 Switch to the audio track with the id [value]. Cycle through the |
318 available tracks if [value] is omitted or negative. | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
319 |
17954 | 320 switch_ratio [value] |
321 Change aspect ratio at runtime. [value] is the new aspect ratio expressed | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
322 as a float (e.g. 1.77778 for 16/9). |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
323 There might be problems with some video filters. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
324 |
17954 | 325 switch_vsync [value] |
326 Toggle vsync (1 == on, 0 == off). If [value] is not provided, | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
327 vsync status is inverted. |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
328 |
23904 | 329 teletext_add_digit <value> |
330 Enter/leave teletext page number editing mode and append given digit to | |
331 previously entered one. | |
332 0..9 - Append apropriate digit. (Enables editing mode if called from normal | |
333 mode, and switches to normal mode when third digit is entered.) | |
334 - - Delete last digit from page number. (Backspace emulation, works only | |
335 in page number editing mode.) | |
336 | |
24244 | 337 teletext_go_link <1-6> |
24258 | 338 Follow given link on current teletext page. |
24244 | 339 |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
23904
diff
changeset
|
340 tv_start_scan |
24258 | 341 Start automatic TV channel scanning. |
24105
9e71e0345c35
Automatic TV channels scanning ability for MPlayer.
voroshil
parents:
23904
diff
changeset
|
342 |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
343 tv_step_channel <channel> |
13108 | 344 Select next/previous TV channel. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
345 |
10218
f82646fc1431
Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff
changeset
|
346 tv_step_norm |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
347 Change TV norm. |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
348 |
10218
f82646fc1431
Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff
changeset
|
349 tv_step_chanlist |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
350 Change channel list. |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
351 |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
352 tv_set_channel <channel> |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
353 Set the current TV channel. |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
354 |
10218
f82646fc1431
Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff
changeset
|
355 tv_last_channel |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
356 Set the current TV channel to the last one. |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
357 |
10521
141141fdd250
I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents:
10218
diff
changeset
|
358 tv_set_freq <frequency in MHz> |
13108 | 359 Set the TV tuner frequency. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
360 |
22667 | 361 tv_step_freq <frequency offset in MHz> |
362 Set the TV tuner frequency relative to current value. | |
363 | |
10521
141141fdd250
I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents:
10218
diff
changeset
|
364 tv_set_norm <norm> |
13108 | 365 Set the TV tuner norm (PAL, SECAM, NTSC, ...). |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
366 |
18208
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
367 tv_set_brightness <-100 - 100> [abs] |
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
368 Set TV tuner brightness or adjust it if [abs] is set to 0. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
369 |
18208
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
370 tv_set_contrast <-100 -100> [abs] |
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
371 Set TV tuner contrast or adjust it if [abs] is set to 0. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
372 |
18208
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
373 tv_set_hue <-100 - 100> [abs] |
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
374 Set TV tuner hue or adjust it if [abs] is set to 0. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
375 |
18208
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
376 tv_set_saturation <-100 - 100> [abs] |
70edbfdeca61
The tv color control commands can now also adjust the values.
albeu
parents:
17976
diff
changeset
|
377 Set TV tuner saturation or adjust it if [abs] is set to 0. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
378 |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
379 use_master |
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
380 Switch volume control between master and PCM. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
381 |
17954 | 382 vo_border [value] |
17937 | 383 Toggle/set borderless display. |
16969 | 384 |
17954 | 385 vo_fullscreen [value] |
17937 | 386 Toggle/set fullscreen mode. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
387 |
17954 | 388 vo_ontop [value] |
17937 | 389 Toggle/set stay-on-top. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
390 |
17954 | 391 vo_rootwin [value] |
17937 | 392 Toggle/set playback on the root window. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
393 |
17954 | 394 volume <value> [abs] |
395 Increase/decrease volume or set it to <value> if [abs] is nonzero. | |
16386
9e1ba1ac3c7d
Reorder slave mode commands to appear in alphabetical order with a few
diego
parents:
16254
diff
changeset
|
396 |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
397 |
14691 | 398 The following commands are really only useful for OSD menu console mode: |
399 | |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
400 help |
14691 | 401 Displays help text, currently empty. |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
402 |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
403 exit |
14691 | 404 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
|
405 |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
406 hide |
14691 | 407 Hides the OSD menu console. Clicking a menu command unhides it. Other |
408 keybindings act as usual. | |
11413
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
409 |
e250b0e9e608
Missing commands added, parameters checked, explanations improved.
diego
parents:
10927
diff
changeset
|
410 run <value> |
14691 | 411 Run <value> as shell command. In OSD menu console mode stdout and stdin |
412 are through the video output driver. | |
22046 | 413 |
414 | |
415 Available properties: | |
416 | |
22047 | 417 name type min max get set step comment |
418 ================================================================= | |
22046 | 419 |
22047 | 420 osdlevel int 0 3 X X X as -osdlevel |
421 speed float 0.01 100 X X X as -speed | |
23727 | 422 loop int -1 X X X as -loop |
22047 | 423 filename string X file playing wo path |
424 path string X file playing | |
425 demuxer string X demuxer used | |
426 stream_pos pos 0 X X position in stream | |
427 stream_start pos 0 X start pos in stream | |
428 stream_end pos 0 X end pos in stream | |
429 stream_length pos 0 X (end - start) | |
23417 | 430 length time X length of file in seconds |
23418 | 431 percent_pos int 0 100 X X X position in percent |
432 time_pos time 0 X X X position in seconds | |
23413
62018ec2eb35
Add the recently introduced properties to the documentation.
albeu
parents:
23412
diff
changeset
|
433 metadata str list X list of metadata key/value |
62018ec2eb35
Add the recently introduced properties to the documentation.
albeu
parents:
23412
diff
changeset
|
434 metadata/* string X metadata values |
22047 | 435 volume float 0 100 X X X change volume |
23568 | 436 balance float -1 1 X X X change audio balance |
22047 | 437 mute flag 0 1 X X X |
438 audio_delay float -100 100 X X X | |
439 audio_format int X | |
23413
62018ec2eb35
Add the recently introduced properties to the documentation.
albeu
parents:
23412
diff
changeset
|
440 audio_codec string X |
22047 | 441 audio_bitrate int X |
442 samplerate int X | |
443 channels int X | |
444 switch_audio int -2 255 X X X select audio stream | |
445 fullscreen flag 0 1 X X X | |
446 deinterlace flag 0 1 X X X | |
447 ontop flag 0 1 X X X | |
448 rootwin flag 0 1 X X X | |
449 border flag 0 1 X X X | |
450 framedropping int 0 2 X X X 1 = soft, 2 = hard | |
451 gamma int -100 100 X X X | |
452 brightness int -100 100 X X X | |
453 contrast int -100 100 X X X | |
454 saturation int -100 100 X X X | |
455 hue int -100 100 X X X | |
456 panscan float 0 1 X X X | |
457 vsync flag 0 1 X X X | |
458 video_format int X | |
23413
62018ec2eb35
Add the recently introduced properties to the documentation.
albeu
parents:
23412
diff
changeset
|
459 video_codec string X |
22047 | 460 video_bitrate int X |
461 width int X "display" width | |
462 height int X "display" height | |
463 fps float X | |
464 aspect float X | |
465 switch_video int -2 255 X X X select video stream | |
466 switch_program int -1 65535 X X X (see TAB default keybind) | |
467 sub int -1 X X X select subtitle stream | |
468 sub_delay float X X X | |
469 sub_pos int 0 100 X X X subtitle position | |
470 sub_alignment int 0 2 X X X subtitle alignment | |
471 sub_visibility flag 0 1 X X X show/hide subtitles | |
472 sub_forced_only flag 0 1 X X X | |
23725 | 473 sub_scale float 0 100 X X X subtitles font size |
22047 | 474 tv_brightness int -100 100 X X X |
475 tv_contrast int -100 100 X X X | |
476 tv_saturation int -100 100 X X X | |
477 tv_hue int -100 100 X X X | |
23904 | 478 teletext_page int 0 799 X X X |
479 teletext_subpage int 0 64 X X X | |
480 teletext_mode flag 0 1 X X X 0 - off, 1 - on | |
481 teletext_format int 0 3 X X X 0 - opaque, | |
482 1 - transparent, | |
483 2 - opaque inverted, | |
484 3 - transp. inv. | |
485 teletext_half_page int 0 2 X X X 0 - off, 1 - top half, | |
486 2- bottom half | |
23573 | 487 |