annotate DOCS/tech/slave.txt @ 36726:ed1d856ec43d

Use DECLARE_ALIGNED helper macros. Patch by Matt Oliver [protogonoi gmail.com].
author reimar
date Sun, 09 Feb 2014 22:19:07 +0000
parents 57aad765dd8b
children
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
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
14 You can also use a FIFO file (named pipe):
24932
230f1e6a7c2d Add an example on how to use slave mode with a fifo
reimar
parents: 24258
diff changeset
15
26235
635327338b41 add complete fifo instructions, user didnt know to use mkfifo first.
compn
parents: 25822
diff changeset
16 mkfifo </tmp/fifofile>
27791
0215eb4439cc minor fix in example command line for users
compn
parents: 27648
diff changeset
17 mplayer -slave -input file=</tmp/fifofile> <movie>
24932
230f1e6a7c2d Add an example on how to use slave mode with a fifo
reimar
parents: 24258
diff changeset
18
15267
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
19 Most slave mode commands are equivalent to command line options, though not
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
20 necessarily under the same name. Detailed descriptions can be found in the
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
21 man page.
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
22
17241
3ab613cdf96a add "pausing_keep" and "pausing_toggle" input cmd prefixes
ods15
parents: 17182
diff changeset
23 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
24 "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
25 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
26 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
27 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
28 possible" can be before the command is fully executed.
27633
6a7cdd00599f Add an experimental pausing_keep_force slave mode command prefix
reimar
parents: 27068
diff changeset
29 As a temporary hack, there is also the _experimental_ "pausing_keep_force "
6a7cdd00599f Add an experimental pausing_keep_force slave mode command prefix
reimar
parents: 27068
diff changeset
30 prefix, with which MPlayer will not exit the pause loop at all.
6a7cdd00599f Add an experimental pausing_keep_force slave mode command prefix
reimar
parents: 27068
diff changeset
31 Like this you can avoid the "frame stepping" effect of "pausing_keep "
6a7cdd00599f Add an experimental pausing_keep_force slave mode command prefix
reimar
parents: 27068
diff changeset
32 but most commands will either not work at all or behave in unexpected ways.
28835
6f5824a39ada Make pausing_keep_force the default for the set_mouse_pos and key_down_event -
reimar
parents: 27791
diff changeset
33 For "set_mouse_pos" and "key_down_event", "pausing_keep_force" is the default
6f5824a39ada Make pausing_keep_force the default for the set_mouse_pos and key_down_event -
reimar
parents: 27791
diff changeset
34 since other values do not make much sense for them.
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
35
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
36
29858
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
37 Various tips and tricks (please help expand it!):
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
38
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
39 - Try using something like
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
40 pausing_keep_force pt_step 1
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
41 get_property pause
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
42 to switch to the next file. It avoids audio playback starting to play
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
43 the old file for a short time before switching to the new one.
31529
ddedbe455bae Add disabling input to hints.
reimar
parents: 31312
diff changeset
44 - To ensure the user can't control MPlayer "behind your back" use
ddedbe455bae Add disabling input to hints.
reimar
parents: 31312
diff changeset
45 something like -input nodefault-bindings -noconfig all
29858
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
46
9ad7e1eb5ad1 Add a "tips and tricks" section to the slave mode documentation.
reimar
parents: 29263
diff changeset
47
15267
ed3a0e55240f (hopefully) better description of slave mode
diego
parents: 15264
diff changeset
48 Available commands ('mplayer -input cmdlist' will print a list):
15264
1692cd76d52a better slave mode description
diego
parents: 15155
diff changeset
49
30988
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
50 af_add <filter_arguments_list> (comma separated list of audio filters with parameters)
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
51 (experimental) Load the given list of audio filters.
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
52
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
53 af_clr
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
54 (experimental) Unload all loaded audio filters.
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
55
32419
8f35fc25523f Add experimental af_cmdline slave command to allow changing filter options at runtime.
reimar
parents: 32392
diff changeset
56 af_cmdline <filter_name> <filter_arguments>
8f35fc25523f Add experimental af_cmdline slave command to allow changing filter options at runtime.
reimar
parents: 32392
diff changeset
57 (experimental) Send new command-line options to a filter with the given name.
8f35fc25523f Add experimental af_cmdline slave command to allow changing filter options at runtime.
reimar
parents: 32392
diff changeset
58
30988
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
59 af_del <filter_name_list> (comma separated list of audio filter's names)
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
60 (experimental) Unload the first occurrence of the filters, if loaded.
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
61
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
62 af_switch <filter_arguments_list> (comma separated list of audio filters with parameters)
8d840754a921 Add slave commands for loading and unloading audio filters at runtime.
cehoyos
parents: 30986
diff changeset
63 (experimental) Remove all the audio filters and replace them with the given list.
14688
7a7565f28455 Put general note at the top of the file.
diego
parents: 14684
diff changeset
64
13715
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
65 alt_src_step <value> (ASX playlist only)
ca0a780a6a47 Better descriptions merged from the XML docs.
diego
parents: 13714
diff changeset
66 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
67
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
68 audio_delay <value> [abs]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
69 Set/adjust the audio delay.
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
70 If [abs] is not given or is zero, adjust the delay by <value> seconds.
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
71 If [abs] is nonzero, set the delay to <value> seconds.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
72
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
73 [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
74 Set/adjust video parameters.
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
75 If [abs] is not given or is zero, modifies parameter by <value>.
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
76 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
77 <value> is in the range [-100, 100].
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
78
32438
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32419
diff changeset
79 capturing [value]
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32419
diff changeset
80 Toggle/set capturing the primary stream like -dumpstream.
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32419
diff changeset
81 Requires the -capture parameter to be given.
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32419
diff changeset
82
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
83 change_rectangle <val1> <val2>
11932
a3e5b0b07ba8 change_rectangle documentation by Angel <knight@sunflower.com>
diego
parents: 11542
diff changeset
84 Change the position of the rectangle filter rectangle.
13109
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
85 <val1>
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
86 Must be one of the following:
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
87 0 = width
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
88 1 = height
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
89 2 = x position
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
90 3 = y position
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
91 <val2>
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
92 If <val1> is 0 or 1:
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
93 Integer amount to add/subtract from the width/height.
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
94 Positive values add to width/height and negative values
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
95 subtract from it.
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
96 If <val1> is 2 or 3:
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
97 Relative integer amount by which to move the upper left
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
98 rectangle corner. Positive values move the rectangle
693f3b591c25 cosmetics
diego
parents: 13108
diff changeset
99 right/down and negative values move the rectangle left/up.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
100
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
101 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
102 Set DVB channel.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
103
27068
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
104 dvdnav <button_name>
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
105 Press the given dvdnav button.
27068
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
106 up
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
107 down
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
108 left
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
109 right
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
110 menu
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
111 select
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
112 prev
d7e0e33c546f Change DVDNAV command key names.
ben
parents: 26877
diff changeset
113 mouse
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
114
31956
a6c25d94e60e Add new slave mode command for loading EDL file on demand.
reynaldo
parents: 31728
diff changeset
115 edl_loadfile <filename>
31965
37ed97889941 Fix nit pointed out by Diego Biurrun
reynaldo
parents: 31956
diff changeset
116 Load new EDL file.
31956
a6c25d94e60e Add new slave mode command for loading EDL file on demand.
reynaldo
parents: 31728
diff changeset
117
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
118 edl_mark
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
119 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
120
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
121 frame_drop [value]
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
122 Toggle/set frame dropping mode.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
123
19534
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
124 get_audio_bitrate
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
125 Print out the audio bitrate of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
126
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
127 get_audio_codec
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
128 Print out the audio codec name of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
129
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
130 get_audio_samples
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
131 Print out the audio frequency and number of channels of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
132
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
133 get_file_name
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
134 Print out the name of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
135
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
136 get_meta_album
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
137 Print out the 'Album' metadata of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
138
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
139 get_meta_artist
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
140 Print out the 'Artist' metadata of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
141
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
142 get_meta_comment
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
143 Print out the 'Comment' metadata of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
144
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
145 get_meta_genre
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
146 Print out the 'Genre' metadata of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
147
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
148 get_meta_title
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
149 Print out the 'Title' metadata of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
150
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
151 get_meta_track
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
152 Print out the 'Track Number' metadata of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
153
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
154 get_meta_year
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
155 Print out the 'Year' metadata of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
156
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
157 get_percent_pos
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
158 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
159
17924
0eac85e451cb Add get/set_property and update volume/mute to the last changes.
albeu
parents: 17241
diff changeset
160 get_property <property>
0eac85e451cb Add get/set_property and update volume/mute to the last changes.
albeu
parents: 17241
diff changeset
161 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
162
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
163 get_sub_visibility
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
164 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
165
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
166 get_time_length
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
167 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
168
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
169 get_time_pos
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
170 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
171
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
172 get_vo_fullscreen
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
173 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
174
19534
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
175 get_video_bitrate
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
176 Print out the video bitrate of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
177
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
178 get_video_codec
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
179 Print out the video codec name of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
180
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
181 get_video_resolution
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
182 Print out the video resolution of the current file.
b0a6a97e2ba0 documented new slave mode commands
ben
parents: 19346
diff changeset
183
34339
f05c75392897 Enable gui slave commands.
ib
parents: 32627
diff changeset
184 gui <message>
f05c75392897 Enable gui slave commands.
ib
parents: 32627
diff changeset
185 Send GUI skin message <message>. (See the skin documentation on GUI
f05c75392897 Enable gui slave commands.
ib
parents: 32627
diff changeset
186 messages for details.)
f05c75392897 Enable gui slave commands.
ib
parents: 32627
diff changeset
187
19833
10f36060390a Add repeated screenshot mode to vf_screenshot.
eugeni
parents: 19609
diff changeset
188 screenshot <value>
16479
e56a4aea6512 The screenshot command is now implemented, wording/spelling fixes.
diego
parents: 16445
diff changeset
189 Take a screenshot. Requires the screenshot filter to be loaded.
19858
309640f57902 minor wording/spelling changes
diego
parents: 19855
diff changeset
190 0 Take a single screenshot.
309640f57902 minor wording/spelling changes
diego
parents: 19855
diff changeset
191 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
192
16445
9597d55ee7ab key_down_event
nplourde
parents: 16386
diff changeset
193 key_down_event <value>
20109
c3133ab04741 Cosmetics: remove lone (evil ;-) ) tab
reimar
parents: 19907
diff changeset
194 Inject <value> key code event into MPlayer.
16445
9597d55ee7ab key_down_event
nplourde
parents: 16386
diff changeset
195
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
196 loadfile <file|url> <append>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
197 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
198 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
199 appended to the current playlist instead.
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 loadlist <file> <append>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
202 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
203 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
204 appended to the current playlist instead.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
205
23727
2de8f66b3570 Add a loop command and property.
albeu
parents: 23725
diff changeset
206 loop <value> [abs]
2de8f66b3570 Add a loop command and property.
albeu
parents: 23725
diff changeset
207 Adjust/set how many times the movie should be looped. -1 means no loop,
2de8f66b3570 Add a loop command and property.
albeu
parents: 23725
diff changeset
208 and 0 forever.
2de8f66b3570 Add a loop command and property.
albeu
parents: 23725
diff changeset
209
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
210 menu <command>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
211 Execute an OSD menu command.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
212 up Move cursor up.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
213 down Move cursor down.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
214 ok Accept selection.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
215 cancel Cancel selection.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
216 hide Hide the OSD menu.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
217
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
218 set_menu <menu_name>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
219 Display the menu named <menu_name>.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
220
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
221 mute [value]
17955
15c0dba0d759 typo, parameter naming consistency
diego
parents: 17954
diff changeset
222 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
223 (1 == on, 0 == off).
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
224
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
225 osd [level]
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
226 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
227
30986
2186c040f9e0 Add osd_show_progression: Show progress bar and elapsed/total time.
cehoyos
parents: 30633
diff changeset
228 osd_show_progression
2186c040f9e0 Add osd_show_progression: Show progress bar and elapsed/total time.
cehoyos
parents: 30633
diff changeset
229 Show the progression bar, the elapsed time and the total duration of the
2186c040f9e0 Add osd_show_progression: Show progress bar and elapsed/total time.
cehoyos
parents: 30633
diff changeset
230 movie on the OSD.
2186c040f9e0 Add osd_show_progression: Show progress bar and elapsed/total time.
cehoyos
parents: 30633
diff changeset
231
18222
8c35bd43135f Add a new command: osd_show_property_text that show an expanded property
albeu
parents: 18208
diff changeset
232 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
233 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
234 description of the available expansions. If [duration] is >= 0 the text
18224
c4e25e4d7117 Fix up osd_show_/operty_text.
diego
parents: 18223
diff changeset
235 is shown for [duration] ms. [level] sets the minimum OSD level needed
c4e25e4d7117 Fix up osd_show_/operty_text.
diego
parents: 18223
diff changeset
236 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
237
18223
cdf3cb516027 Align osd_show_text with osd_show_property_text.
albeu
parents: 18222
diff changeset
238 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
239 Show <string> on the OSD.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
240
17955
15c0dba0d759 typo, parameter naming consistency
diego
parents: 17954
diff changeset
241 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
242 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
243 Negative values decrease the pan-and-scan range.
17955
15c0dba0d759 typo, parameter naming consistency
diego
parents: 17954
diff changeset
244 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
245 absolute range.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
246
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
247 pause
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
248 Pause/unpause the playback.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
249
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
250 frame_step
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
251 Play one frame, then pause again.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
252
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
253 pt_step <value> [force]
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
254 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
255 the direction. If no entry is available in the given direction it will do
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
256 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
257
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
258 pt_up_step <value> [force]
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
259 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
260 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
261
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
262 quit [value]
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
263 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
264 for the mplayer process (default: 0).
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
265
19589
d5c80704c04c description of radio slave commands, copied from TV command descriptions :-)
reimar
parents: 19534
diff changeset
266 radio_set_channel <channel>
19607
f83205ac7cfb Improve radio command descriptions.
diego
parents: 19589
diff changeset
267 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
268
d5c80704c04c description of radio slave commands, copied from TV command descriptions :-)
reimar
parents: 19534
diff changeset
269 radio_set_freq <frequency in MHz>
d5c80704c04c description of radio slave commands, copied from TV command descriptions :-)
reimar
parents: 19534
diff changeset
270 Set the radio tuner frequency.
d5c80704c04c description of radio slave commands, copied from TV command descriptions :-)
reimar
parents: 19534
diff changeset
271
19607
f83205ac7cfb Improve radio command descriptions.
diego
parents: 19589
diff changeset
272 radio_step_channel <-1|1>
f83205ac7cfb Improve radio command descriptions.
diego
parents: 19589
diff changeset
273 Step forwards (1) or backwards (-1) in channel list. Works only when the
f83205ac7cfb Improve radio command descriptions.
diego
parents: 19589
diff changeset
274 'channels' radio parameter was set.
f83205ac7cfb Improve radio command descriptions.
diego
parents: 19589
diff changeset
275
21042
c549c2de24ce new slave command: radio_step_freq
voroshil
parents: 20915
diff changeset
276 radio_step_freq <value>
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28835
diff changeset
277 Tune frequency by the <value> (positive - up, negative - down).
21042
c549c2de24ce new slave command: radio_step_freq
voroshil
parents: 20915
diff changeset
278
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
279 seek <value> [type]
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
280 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
281 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
282 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
283 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
284
19342
4e68a3881201 Add matroska chapter seeking capability.
eugeni
parents: 18224
diff changeset
285 seek_chapter <value> [type]
4e68a3881201 Add matroska chapter seeking capability.
eugeni
parents: 18224
diff changeset
286 Seek to the start of a chapter.
19346
1e10616c5fbd punctuation, slight clarification
diego
parents: 19342
diff changeset
287 0 is a relative seek of +/- <value> chapters (default).
1e10616c5fbd punctuation, slight clarification
diego
parents: 19342
diff changeset
288 1 is a seek to chapter <value>.
19342
4e68a3881201 Add matroska chapter seeking capability.
eugeni
parents: 18224
diff changeset
289
25579
341174008bbb documented angle commands
nicodvb
parents: 25363
diff changeset
290 switch_angle <value>
25822
536b602c1902 spelling cosmetics
diego
parents: 25821
diff changeset
291 Switch to the angle with the ID [value]. Cycle through the
25579
341174008bbb documented angle commands
nicodvb
parents: 25363
diff changeset
292 available angles if [value] is omitted or negative.
341174008bbb documented angle commands
nicodvb
parents: 25363
diff changeset
293
19855
bf4bd549e4b2 documented set_mouse_pos
nicodvb
parents: 19833
diff changeset
294 set_mouse_pos <x> <y>
19871
7dc38438c7ce better description of set_mouse_pos.
nicodvb
parents: 19858
diff changeset
295 Tells MPlayer the coordinates of the mouse in the window.
7dc38438c7ce better description of set_mouse_pos.
nicodvb
parents: 19858
diff changeset
296 This command doesn't move the mouse!
19855
bf4bd549e4b2 documented set_mouse_pos
nicodvb
parents: 19833
diff changeset
297
17924
0eac85e451cb Add get/set_property and update volume/mute to the last changes.
albeu
parents: 17241
diff changeset
298 set_property <property> <value>
0eac85e451cb Add get/set_property and update volume/mute to the last changes.
albeu
parents: 17241
diff changeset
299 Set a property.
0eac85e451cb Add get/set_property and update volume/mute to the last changes.
albeu
parents: 17241
diff changeset
300
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
301 speed_incr <value>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
302 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
303
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
304 speed_mult <value>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
305 Multiply the current speed by <value>.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
306
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
307 speed_set <value>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
308 Set the speed to <value>.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
309
23412
f6c225ffe60d Allow setting the direction in the step_property command.
albeu
parents: 22667
diff changeset
310 step_property <property> [value] [direction]
f6c225ffe60d Allow setting the direction in the step_property command.
albeu
parents: 22667
diff changeset
311 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
312 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
313 than zero.
20915
8fa904597f2a Introduce step_property command.
reimar
parents: 20109
diff changeset
314
26877
4ab1cfcee430 Add a slave command to stop stream playback.
ben
parents: 26235
diff changeset
315 stop
4ab1cfcee430 Add a slave command to stop stream playback.
ben
parents: 26235
diff changeset
316 Stop playback.
4ab1cfcee430 Add a slave command to stop stream playback.
ben
parents: 26235
diff changeset
317
17976
4c22d2209563 Properly document sub_alignment.
diego
parents: 17955
diff changeset
318 sub_alignment [value]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
319 Toggle/set subtitle alignment.
17976
4c22d2209563 Properly document sub_alignment.
diego
parents: 17955
diff changeset
320 0 top alignment
4c22d2209563 Properly document sub_alignment.
diego
parents: 17955
diff changeset
321 1 center alignment
4c22d2209563 Properly document sub_alignment.
diego
parents: 17955
diff changeset
322 2 bottom alignment
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
323
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
324 sub_delay <value> [abs]
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
325 Adjust the subtitle delay by +/- <value> seconds or set it to <value>
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
326 seconds when [abs] is nonzero.
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
327
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
328 sub_load <subtitle_file>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
329 Loads subtitles from <subtitle_file>.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
330
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
331 sub_log
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
332 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
333 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
334 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
335 fixed while watching the movie.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
336
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
337 sub_pos <value> [abs]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
338 Adjust/set subtitle position.
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
339
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
340 sub_remove [value]
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
341 If the [value] argument is present and non-negative, removes the subtitle
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
342 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
343 all subtitle files.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
344
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
345 sub_select [value]
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
346 Display subtitle with index [value]. Turn subtitle display off if
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
347 [value] is -1 or greater than the highest available subtitle index.
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
348 Cycle through the available subtitles if [value] is omitted or less
32627
223be180109d get rid of double (
reimar
parents: 32593
diff changeset
349 than -1 (forward or backward respectively).
32593
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
350 Supported subtitle sources are -sub options on the command
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
351 line, VOBsubs, DVD subtitles, and Ogg and Matroska text streams.
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
352 This command is mainly for cycling all subtitles, if you want to set
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
353 a specific subtitle, use sub_file, sub_vob, or sub_demux.
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
354
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
355 sub_source [source]
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
356 Display first subtitle from [source]. Here [source] is an integer:
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
357 SUB_SOURCE_SUBS (0) for file subs
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
358 SUB_SOURCE_VOBSUB (1) for VOBsub files
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
359 SUB_SOURCE_DEMUX (2) for subtitle embedded in the media file or DVD subs.
32593
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
360 If [source] is -1, will turn off subtitle display.
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
361 If [value] is omitted or less than -1, will cycle between the first subtitle
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
362 of each currently available source (forward or backward respectively).
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
363
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
364 sub_file [value]
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
365 Display subtitle specified by [value] for file subs. The [value] is
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
366 corresponding to ID_FILE_SUB_ID values reported by '-identify'.
32593
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
367 If [value] is -1, will turn off subtitle display.
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
368 If [value] is omitted or less than -1, will cycle all file subs
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
369 (forward or backward respectively).
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
370
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
371 sub_vob [value]
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
372 Display subtitle specified by [value] for VOBsubs. The [value] is
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
373 corresponding to ID_VOBSUB_ID values reported by '-identify'.
32593
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
374 If [value] is -1, will turn off subtitle display.
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
375 If [value] is omitted or less than -1, will cycle all VOBsubs
32593
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
376 (forward or backward respectively).
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
377
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
378 sub_demux [value]
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
379 Display subtitle specified by [value] for subtitles from DVD or embedded
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
380 in media file. The [value] is corresponding to ID_SUBTITLE_ID values
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
381 reported by '-identify'. If [value] is -1, will turn off subtitle display.
32593
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
382 If [value] is omitted or less than -1, will cycle all DVD subs or embedded subs
0c5bb45690ea Allow cycling subtitles backwards with 'J'.
reimar
parents: 32438
diff changeset
383 (forward or backward respectively).
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
384
23725
a0432f65040e Add the sub_scale property and command.
albeu
parents: 23573
diff changeset
385 sub_scale <value> [abs]
a0432f65040e Add the sub_scale property and command.
albeu
parents: 23573
diff changeset
386 Adjust the subtitle size by +/- <value> or set it to <value> when [abs]
a0432f65040e Add the sub_scale property and command.
albeu
parents: 23573
diff changeset
387 is nonzero.
a0432f65040e Add the sub_scale property and command.
albeu
parents: 23573
diff changeset
388
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
389 vobsub_lang
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
390 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
391
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
392 sub_step <value>
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
393 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
394 is negative.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
395
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
396 sub_visibility [value]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
397 Toggle/set subtitle visibility.
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
398
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
399 forced_subs_only [value]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
400 Toggle/set forced subtitles only.
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
401
24985
e09187679c34 switch_audio works with many other formats than described
nicodvb
parents: 24932
diff changeset
402 switch_audio [value] (currently MPEG*, AVI, Matroska and streams handled by libavformat)
25822
536b602c1902 spelling cosmetics
diego
parents: 25821
diff changeset
403 Switch to the audio track with the ID [value]. Cycle through the
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
404 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
405
25821
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
406 switch_angle [value] (DVDs only)
25822
536b602c1902 spelling cosmetics
diego
parents: 25821
diff changeset
407 Switch to the DVD angle with the ID [value]. Cycle through the
25821
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
408 available angles if [value] is omitted or negative.
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
409
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
410 switch_ratio [value]
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
411 Change aspect ratio at runtime. [value] is the new aspect ratio expressed
36295
0bd0297b073a Handle special argument -1 to switch_ratio as intended.
ib
parents: 34987
diff changeset
412 as a float (e.g. 1.77778 for 16/9), or special value -1 to reset to
36314
57aad765dd8b Revise switch_ratio documentation.
ib
parents: 36313
diff changeset
413 original aspect ratio (ditto if [value] is missing), or special value 0
57aad765dd8b Revise switch_ratio documentation.
ib
parents: 36313
diff changeset
414 to disable automatic movie aspect ratio compensation.
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
415 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
416
25821
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
417 switch_title [value] (DVDNAV only)
25822
536b602c1902 spelling cosmetics
diego
parents: 25821
diff changeset
418 Switch to the DVD title with the ID [value]. Cycle through the
25821
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
419 available titles if [value] is omitted or negative.
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
420
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
421 switch_vsync [value]
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
422 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
423 vsync status is inverted.
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
424
23904
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
425 teletext_add_digit <value>
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
426 Enter/leave teletext page number editing mode and append given digit to
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
427 previously entered one.
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
428 0..9 - Append appropriate digit. (Enables editing mode if called from normal
23904
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
429 mode, and switches to normal mode when third digit is entered.)
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
430 - - Delete last digit from page number. (Backspace emulation, works only
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
431 in page number editing mode.)
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
432
24244
e446bad0872c Implement X/27/0 packet decoding.
voroshil
parents: 24105
diff changeset
433 teletext_go_link <1-6>
24258
diego
parents: 24244
diff changeset
434 Follow given link on current teletext page.
24244
e446bad0872c Implement X/27/0 packet decoding.
voroshil
parents: 24105
diff changeset
435
24105
9e71e0345c35 Automatic TV channels scanning ability for MPlayer.
voroshil
parents: 23904
diff changeset
436 tv_start_scan
24258
diego
parents: 24244
diff changeset
437 Start automatic TV channel scanning.
24105
9e71e0345c35 Automatic TV channels scanning ability for MPlayer.
voroshil
parents: 23904
diff changeset
438
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
439 tv_step_channel <channel>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
440 Select next/previous TV channel.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
441
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
442 tv_step_norm
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
443 Change TV norm.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
444
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
445 tv_step_chanlist
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
446 Change channel list.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
447
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
448 tv_set_channel <channel>
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
449 Set the current TV channel.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
450
10218
f82646fc1431 Moved video filters to a separate section, moved slave mode section to the
jonas
parents:
diff changeset
451 tv_last_channel
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
452 Set the current TV channel to the last one.
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
453
10521
141141fdd250 I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents: 10218
diff changeset
454 tv_set_freq <frequency in MHz>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
455 Set the TV tuner frequency.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
456
22667
e1859558b37d New slave command: tv_step_freq <offset in MHz>
voroshil
parents: 22255
diff changeset
457 tv_step_freq <frequency offset in MHz>
e1859558b37d New slave command: tv_step_freq <offset in MHz>
voroshil
parents: 22255
diff changeset
458 Set the TV tuner frequency relative to current value.
e1859558b37d New slave command: tv_step_freq <offset in MHz>
voroshil
parents: 22255
diff changeset
459
10521
141141fdd250 I'd like to change tv tuner frequency in the slave mode. So this patch
gabucino
parents: 10218
diff changeset
460 tv_set_norm <norm>
13108
a7ff30cf339f spelling, rewording, some additions
diego
parents: 13091
diff changeset
461 Set the TV tuner norm (PAL, SECAM, NTSC, ...).
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
462
18208
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
463 tv_set_brightness <-100 - 100> [abs]
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
464 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
465
18208
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
466 tv_set_contrast <-100 -100> [abs]
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
467 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
468
18208
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
469 tv_set_hue <-100 - 100> [abs]
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
470 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
471
18208
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
472 tv_set_saturation <-100 - 100> [abs]
70edbfdeca61 The tv color control commands can now also adjust the values.
albeu
parents: 17976
diff changeset
473 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
474
16386
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
475 use_master
9e1ba1ac3c7d Reorder slave mode commands to appear in alphabetical order with a few
diego
parents: 16254
diff changeset
476 Switch volume control between master and PCM.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
477
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
478 vo_border [value]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
479 Toggle/set borderless display.
16969
c35e21308577 alphabetical order
diego
parents: 16968
diff changeset
480
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
481 vo_fullscreen [value]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
482 Toggle/set fullscreen mode.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
483
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
484 vo_ontop [value]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
485 Toggle/set stay-on-top.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
486
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
487 vo_rootwin [value]
17937
ec6781a09b3a Update to the recent properties changes.
albeu
parents: 17924
diff changeset
488 Toggle/set playback on the root window.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
489
17954
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
490 volume <value> [abs]
16ecd1994e2a Use <value> and [value] consistently.
diego
parents: 17937
diff changeset
491 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
492
32392
7fd2de8d6f32 Add the overlay_add and overlay_remove commands.
cigaes
parents: 31965
diff changeset
493 overlay_add <file> <id> <x> <y> <color>
7fd2de8d6f32 Add the overlay_add and overlay_remove commands.
cigaes
parents: 31965
diff changeset
494 Add an overlay bitmap. <file> must be a PGM file without comments.
7fd2de8d6f32 Add the overlay_add and overlay_remove commands.
cigaes
parents: 31965
diff changeset
495 <id> is an arbitrary integer used to identify the overlay.
7fd2de8d6f32 Add the overlay_add and overlay_remove commands.
cigaes
parents: 31965
diff changeset
496
7fd2de8d6f32 Add the overlay_add and overlay_remove commands.
cigaes
parents: 31965
diff changeset
497 overlay_remove <id>
7fd2de8d6f32 Add the overlay_add and overlay_remove commands.
cigaes
parents: 31965
diff changeset
498 Remove all overlays identified by <id>.
7fd2de8d6f32 Add the overlay_add and overlay_remove commands.
cigaes
parents: 31965
diff changeset
499
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
500
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
501 The following commands are really only useful for OSD menu console mode:
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
502
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
503 help
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
504 Displays help text, currently empty.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
505
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
506 exit
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
507 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
508
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
509 hide
14691
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
510 Hides the OSD menu console. Clicking a menu command unhides it. Other
17f07706a4a0 Document missing slave mode commands.
diego
parents: 14688
diff changeset
511 keybindings act as usual.
11413
e250b0e9e608 Missing commands added, parameters checked, explanations improved.
diego
parents: 10927
diff changeset
512
34987
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
513 run <string>
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
514 Run <string> with properties expanded as shell command. In OSD menu
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
515 console mode stdout and stdin are through the video output driver.
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
516 Property expansion happens in the same way as for osd_show_property_text.
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
517 Note: MPlayer will do property expansion on anything of the form
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
518 ${somevar} before it is passed to the shell.
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
519 This means that you cannot use this syntax for anything you actually
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
520 want the shell to handle, though any other form like $somevar will
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
521 be passed on to and processed by the shell.
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
522
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
523 Example:
bdf9478e9374 Change "run" command to expand properties.
reimar
parents: 34616
diff changeset
524 run "echo ${filename} ${stream_pos} >> <path_to_file>"
22046
e1d6e672cd58 List available properties
reimar
parents: 21042
diff changeset
525
e1d6e672cd58 List available properties
reimar
parents: 21042
diff changeset
526
e1d6e672cd58 List available properties
reimar
parents: 21042
diff changeset
527 Available properties:
e1d6e672cd58 List available properties
reimar
parents: 21042
diff changeset
528
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
529 name type min max get set step comment
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
530 =================================================================
22046
e1d6e672cd58 List available properties
reimar
parents: 21042
diff changeset
531
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
532 osdlevel int 0 3 X X X as -osdlevel
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
533 speed float 0.01 100 X X X as -speed
23727
2de8f66b3570 Add a loop command and property.
albeu
parents: 23725
diff changeset
534 loop int -1 X X X as -loop
27648
427fec163870 Add a "pause" property to allow checking if MPlayer is paused.
reimar
parents: 27635
diff changeset
535 pause flag 0 1 X 1 if paused, use with pausing_keep_force
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
536 filename string X file playing w/o path
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
537 path string X file playing
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
538 demuxer string X demuxer used
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
539 stream_pos pos 0 X X position in stream
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
540 stream_start pos 0 X start pos in stream
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
541 stream_end pos 0 X end pos in stream
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
542 stream_length pos 0 X (end - start)
31728
25820228c2f1 Add stream_time_pos property.
reimar
parents: 31529
diff changeset
543 stream_time_pos time 0 X present position in stream (in seconds)
34386
206264c532f5 Add new stream control command STREAM_CTRL_GET_NUM_TITLES.
ib
parents: 34339
diff changeset
544 titles int X number of titles
25363
fa776bd7ebc4 Support chapter as a property.
ulion
parents: 25129
diff changeset
545 chapter int 0 X X X select chapter
27635
22bdd7ba8892 slave command to get the number of chapters; patch by Kevin DeKorte - kdekorte gmail com
nicodvb
parents: 27633
diff changeset
546 chapters int X number of chapters
25579
341174008bbb documented angle commands
nicodvb
parents: 25363
diff changeset
547 angle int 0 X X X select angle
23417
a829005cbcd5 Make the length property use the time type.
albeu
parents: 23413
diff changeset
548 length time X length of file in seconds
23418
f6055798121d Add new properties percent_pos and time_pos.
albeu
parents: 23417
diff changeset
549 percent_pos int 0 100 X X X position in percent
f6055798121d Add new properties percent_pos and time_pos.
albeu
parents: 23417
diff changeset
550 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
551 metadata str list X list of metadata key/value
62018ec2eb35 Add the recently introduced properties to the documentation.
albeu
parents: 23412
diff changeset
552 metadata/* string X metadata values
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
553 volume float 0 100 X X X change volume
23568
519e42b716aa The audio balance feature implemented with af_pan.
zuxy
parents: 23510
diff changeset
554 balance float -1 1 X X X change audio balance
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
555 mute flag 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
556 audio_delay float -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
557 audio_format int X
23413
62018ec2eb35 Add the recently introduced properties to the documentation.
albeu
parents: 23412
diff changeset
558 audio_codec string X
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
559 audio_bitrate int X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
560 samplerate int X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
561 channels int X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
562 switch_audio int -2 255 X X X select audio stream
25821
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
563 switch_angle int -2 255 X X X select DVD angle
ff2e44f77e52 add documentation about switch_angle and switch_title slave commands
ben
parents: 25579
diff changeset
564 switch_title int -2 255 X X X select DVD title
32438
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32419
diff changeset
565 capturing flag 0 1 X X X dump primary stream if enabled
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
566 fullscreen flag 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
567 deinterlace flag 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
568 ontop flag 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
569 rootwin flag 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
570 border flag 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
571 framedropping int 0 2 X X X 1 = soft, 2 = hard
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
572 gamma int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
573 brightness int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
574 contrast int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
575 saturation int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
576 hue int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
577 panscan float 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
578 vsync flag 0 1 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
579 video_format int X
23413
62018ec2eb35 Add the recently introduced properties to the documentation.
albeu
parents: 23412
diff changeset
580 video_codec string X
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
581 video_bitrate int X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
582 width int X "display" width
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
583 height int X "display" height
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
584 fps float X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
585 aspect float X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
586 switch_video int -2 255 X X X select video stream
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
587 switch_program int -1 65535 X X X (see TAB default keybinding)
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
588 sub int -1 X X X select subtitle stream
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
589 sub_source int -1 2 X X X select subtitle source
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
590 sub_file int -1 X X X select file subtitles
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
591 sub_vob int -1 X X X select VOBsubs
25129
c04b64054255 Support select subtitle by source, add 4 properties:
ulion
parents: 24985
diff changeset
592 sub_demux int -1 X X X select subs from demux
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
593 sub_delay float X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
594 sub_pos int 0 100 X X X subtitle position
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
595 sub_alignment int 0 2 X X X subtitle alignment
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
596 sub_visibility flag 0 1 X X X show/hide subtitles
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
597 sub_forced_only flag 0 1 X X X
23725
a0432f65040e Add the sub_scale property and command.
albeu
parents: 23573
diff changeset
598 sub_scale float 0 100 X X X subtitles font size
22047
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
599 tv_brightness int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
600 tv_contrast int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
601 tv_saturation int -100 100 X X X
3c88917db443 Expand property documentation
reimar
parents: 22046
diff changeset
602 tv_hue int -100 100 X X X
23904
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
603 teletext_page int 0 799 X X X
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
604 teletext_subpage int 0 64 X X X
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
605 teletext_mode flag 0 1 X X X 0 - off, 1 - on
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
606 teletext_format int 0 3 X X X 0 - opaque,
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 28835
diff changeset
607 1 - transparent,
23904
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
608 2 - opaque inverted,
34616
9c19ed884ee2 slave.txt: Fix a number of typos.
diego
parents: 34386
diff changeset
609 3 - transparency inverted,
23904
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
610 teletext_half_page int 0 2 X X X 0 - off, 1 - top half,
545aef4edc84 Teletext support
voroshil
parents: 23727
diff changeset
611 2- bottom half