2 * This file is part of MPlayer.
4 * MPlayer is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * MPlayer is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #ifndef MPLAYER_CFG_MPLAYER_H
20 #define MPLAYER_CFG_MPLAYER_H
23 * config for cfgparser
27 #include <sys/types.h>
33 #include "libmpdemux/demux_ts.h"
34 #include "stream/tv.h"
35 #include "stream/stream_radio.h"
37 extern char *fb_mode_cfgfile
;
38 extern char *fb_mode_name
;
40 extern char *lirc_configfile
;
42 /* only used at startup (setting these values from configfile) */
43 extern char *vo_geometry
;
44 extern int stop_xscreensaver
;
46 extern int menu_startup
;
47 extern int menu_keepdir
;
48 extern char *menu_chroot
;
49 extern char *menu_fribidi_charset
;
50 extern int menu_flip_hebrew
;
51 extern int menu_fribidi_flip_commas
;
53 extern char *unrar_executable
;
55 extern char *mp_msg_charset
;
56 extern int mp_msg_color
;
57 extern int mp_msg_module
;
59 /* defined in codec-cfg.c */
60 extern char *codecs_file
;
62 /* defined in dec_video.c */
63 extern int field_dominance
;
65 /* from dec_audio, currently used for ac3surround decoder only */
68 /* defined in network.c */
69 extern char *network_username
;
70 extern char *network_password
;
71 extern int network_bandwidth
;
72 extern char *network_useragent
;
73 extern char *network_referrer
;
74 extern int network_cookies_enabled
;
75 extern char *cookies_file
;
77 extern int network_prefer_ipv4
;
78 extern int network_ipv4_only_proxy
;
79 extern int reuse_socket
;
81 extern int dvd_speed
; /* stream/stream_dvd.c */
83 /* defined in libmpdemux: */
84 extern const m_option_t demux_rawaudio_opts
[];
85 extern const m_option_t demux_rawvideo_opts
[];
86 extern const m_option_t cdda_opts
[];
89 extern int ts_keep_broken
;
90 extern off_t ts_probe
;
91 extern int audio_substream_id
;
92 extern off_t ps_probe
;
98 const m_option_t radioopts_conf
[]={
99 {"device", &stream_radio_defaults
.device
, CONF_TYPE_STRING
, 0, 0 ,0, NULL
},
100 {"driver", &stream_radio_defaults
.driver
, CONF_TYPE_STRING
, 0, 0 ,0, NULL
},
101 #ifdef RADIO_BSDBT848_HDR
102 {"freq_min", &stream_radio_defaults
.freq_min
, CONF_TYPE_FLOAT
, 0, 0 ,0, NULL
},
103 {"freq_max", &stream_radio_defaults
.freq_max
, CONF_TYPE_FLOAT
, 0, 0 ,0, NULL
},
105 {"channels", &stream_radio_defaults
.channels
, CONF_TYPE_STRING_LIST
, 0, 0 ,0, NULL
},
106 {"volume", &stream_radio_defaults
.volume
, CONF_TYPE_INT
, CONF_RANGE
, 0 ,100, NULL
},
107 {"adevice", &stream_radio_defaults
.adevice
, CONF_TYPE_STRING
, 0, 0 ,0, NULL
},
108 {"arate", &stream_radio_defaults
.arate
, CONF_TYPE_INT
, CONF_MIN
, 0 ,0, NULL
},
109 {"achannels", &stream_radio_defaults
.achannels
, CONF_TYPE_INT
, CONF_MIN
, 0 ,0, NULL
},
110 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
112 #endif /* CONFIG_RADIO */
115 const m_option_t tvopts_conf
[]={
116 {"on", "-tv on has been removed, use tv:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
117 {"immediatemode", &stream_tv_defaults
.immediate
, CONF_TYPE_INT
, CONF_RANGE
, 0, 1, NULL
},
118 {"noaudio", &stream_tv_defaults
.noaudio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
119 {"audiorate", &stream_tv_defaults
.audiorate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
120 {"driver", &stream_tv_defaults
.driver
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
121 {"device", &stream_tv_defaults
.device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
122 {"freq", &stream_tv_defaults
.freq
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
123 {"channel", &stream_tv_defaults
.channel
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
124 {"chanlist", &stream_tv_defaults
.chanlist
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
125 {"norm", &stream_tv_defaults
.norm
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
126 {"automute", &stream_tv_defaults
.automute
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
127 #if defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
128 {"normid", &stream_tv_defaults
.normid
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
130 {"width", &stream_tv_defaults
.width
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
131 {"height", &stream_tv_defaults
.height
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
132 {"input", &stream_tv_defaults
.input
, CONF_TYPE_INT
, 0, 0, 20, NULL
},
133 {"outfmt", &stream_tv_defaults
.outfmt
, CONF_TYPE_IMGFMT
, 0, 0, 0, NULL
},
134 {"fps", &stream_tv_defaults
.fps
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
135 {"channels", &stream_tv_defaults
.channels
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
136 {"brightness", &stream_tv_defaults
.brightness
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
137 {"contrast", &stream_tv_defaults
.contrast
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
138 {"hue", &stream_tv_defaults
.hue
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
139 {"saturation", &stream_tv_defaults
.saturation
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
140 {"gain", &stream_tv_defaults
.gain
, CONF_TYPE_INT
, CONF_RANGE
, -1, 100, NULL
},
141 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
142 {"buffersize", &stream_tv_defaults
.buffer_size
, CONF_TYPE_INT
, CONF_RANGE
, 16, 1024, NULL
},
143 {"amode", &stream_tv_defaults
.amode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
144 {"volume", &stream_tv_defaults
.volume
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
146 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2)
147 {"bass", &stream_tv_defaults
.bass
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
148 {"treble", &stream_tv_defaults
.treble
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
149 {"balance", &stream_tv_defaults
.balance
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
150 {"forcechan", &stream_tv_defaults
.forcechan
, CONF_TYPE_INT
, CONF_RANGE
, 1, 2, NULL
},
151 {"forceaudio", &stream_tv_defaults
.force_audio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
152 {"buffersize", &stream_tv_defaults
.buffer_size
, CONF_TYPE_INT
, CONF_RANGE
, 16, 1024, NULL
},
153 {"mjpeg", &stream_tv_defaults
.mjpeg
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
154 {"decimation", &stream_tv_defaults
.decimation
, CONF_TYPE_INT
, CONF_RANGE
, 1, 4, NULL
},
155 {"quality", &stream_tv_defaults
.quality
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
157 {"alsa", &stream_tv_defaults
.alsa
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
158 #endif /* CONFIG_ALSA */
159 #endif /* defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) */
160 {"adevice", &stream_tv_defaults
.adevice
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
161 {"tdevice", &stream_tv_defaults
.teletext
.device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
162 {"tpage", &stream_tv_defaults
.teletext
.page
, CONF_TYPE_INT
, CONF_RANGE
, 100, 899, NULL
},
163 {"tformat", &stream_tv_defaults
.teletext
.format
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
164 {"tlang", &stream_tv_defaults
.teletext
.lang
, CONF_TYPE_INT
, CONF_RANGE
, -1, 0x7f, NULL
},
165 {"audioid", &stream_tv_defaults
.audio_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 9, NULL
},
166 #ifdef CONFIG_TV_DSHOW
167 {"hidden_video_renderer", &stream_tv_defaults
.hidden_video_renderer
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
168 {"nohidden_video_renderer", &stream_tv_defaults
.hidden_video_renderer
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
169 {"hidden_vp_renderer", &stream_tv_defaults
.hidden_vp_renderer
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
170 {"nohidden_vp_renderer", &stream_tv_defaults
.hidden_vp_renderer
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
171 {"system_clock", &stream_tv_defaults
.system_clock
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
172 {"nosystem_clock", &stream_tv_defaults
.system_clock
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
173 {"normalize_audio_chunks", &stream_tv_defaults
.normalize_audio_chunks
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
174 {"nonormalize_audio_chunks", &stream_tv_defaults
.normalize_audio_chunks
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
176 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
178 #endif /* CONFIG_TV */
180 extern int pvr_param_aspect_ratio
;
181 extern int pvr_param_sample_rate
;
182 extern int pvr_param_audio_layer
;
183 extern int pvr_param_audio_bitrate
;
184 extern char *pvr_param_audio_mode
;
185 extern int pvr_param_bitrate
;
186 extern char *pvr_param_bitrate_mode
;
187 extern int pvr_param_bitrate_peak
;
188 extern char *pvr_param_stream_type
;
191 const m_option_t pvropts_conf
[]={
192 {"aspect", &pvr_param_aspect_ratio
, CONF_TYPE_INT
, 0, 1, 4, NULL
},
193 {"arate", &pvr_param_sample_rate
, CONF_TYPE_INT
, 0, 32000, 48000, NULL
},
194 {"alayer", &pvr_param_audio_layer
, CONF_TYPE_INT
, 0, 1, 2, NULL
},
195 {"abitrate", &pvr_param_audio_bitrate
, CONF_TYPE_INT
, 0, 32, 448, NULL
},
196 {"amode", &pvr_param_audio_mode
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
197 {"vbitrate", &pvr_param_bitrate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
198 {"vmode", &pvr_param_bitrate_mode
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
199 {"vpeak", &pvr_param_bitrate_peak
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
200 {"fmt", &pvr_param_stream_type
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
201 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
203 #endif /* CONFIG_PVR */
205 extern const m_option_t dvbin_opts_conf
[];
206 extern const m_option_t lavfdopts_conf
[];
208 extern int rtsp_transport_tcp
;
209 extern int rtsp_transport_http
;
210 extern int rtsp_transport_sctp
;
211 extern int rtsp_port
;
212 extern char *rtsp_destination
;
215 extern int sws_chr_vshift
;
216 extern int sws_chr_hshift
;
217 extern float sws_chr_gblur
;
218 extern float sws_lum_gblur
;
219 extern float sws_chr_sharpen
;
220 extern float sws_lum_sharpen
;
222 const m_option_t scaler_filter_conf
[]={
223 {"lgb", &sws_lum_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
224 {"cgb", &sws_chr_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
225 {"cvs", &sws_chr_vshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
226 {"chs", &sws_chr_hshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
227 {"ls", &sws_lum_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
228 {"cs", &sws_chr_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
229 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
232 /* VIVO demuxer options: */
233 extern int vivo_param_version
;
234 extern char *vivo_param_acodec
;
235 extern int vivo_param_abitrate
;
236 extern int vivo_param_samplerate
;
237 extern int vivo_param_bytesperblock
;
238 extern int vivo_param_width
;
239 extern int vivo_param_height
;
240 extern int vivo_param_vformat
;
241 extern char *dvd_device
, *cdrom_device
;
243 const m_option_t vivoopts_conf
[]={
244 {"version", &vivo_param_version
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
246 {"acodec", &vivo_param_acodec
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
247 {"abitrate", &vivo_param_abitrate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
248 {"samplerate", &vivo_param_samplerate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
249 {"bytesperblock", &vivo_param_bytesperblock
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
251 {"width", &vivo_param_width
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
252 {"height", &vivo_param_height
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
253 {"vformat", &vivo_param_vformat
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
254 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
259 extern double mf_fps
;
260 extern char * mf_type
;
261 extern m_obj_list_t vf_obj_list
;
263 const m_option_t mfopts_conf
[]={
264 {"on", "-mf on has been removed, use mf:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
265 {"w", &mf_w
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
266 {"h", &mf_h
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
267 {"fps", &mf_fps
, CONF_TYPE_DOUBLE
, 0, 0, 0, NULL
},
268 {"type", &mf_type
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
269 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
272 #include "libaf/af.h"
273 extern af_cfg_t af_cfg
; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
274 const m_option_t audio_filter_conf
[]={
275 {"list", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
276 {"force", &af_cfg
.force
, CONF_TYPE_INT
, CONF_RANGE
, 0, 7, NULL
},
277 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
280 extern int mp_msg_levels
[MSGT_MAX
];
281 extern int mp_msg_level_all
;
283 const m_option_t msgl_config
[]={
284 { "all", &mp_msg_level_all
, CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
286 { "global", &mp_msg_levels
[MSGT_GLOBAL
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
287 { "cplayer", &mp_msg_levels
[MSGT_CPLAYER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
288 { "vo", &mp_msg_levels
[MSGT_VO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
289 { "ao", &mp_msg_levels
[MSGT_AO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
290 { "demuxer", &mp_msg_levels
[MSGT_DEMUXER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
291 { "ds", &mp_msg_levels
[MSGT_DS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
292 { "demux", &mp_msg_levels
[MSGT_DEMUX
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
293 { "header", &mp_msg_levels
[MSGT_HEADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
294 { "avsync", &mp_msg_levels
[MSGT_AVSYNC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
295 { "autoq", &mp_msg_levels
[MSGT_AUTOQ
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
296 { "cfgparser", &mp_msg_levels
[MSGT_CFGPARSER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
297 { "decaudio", &mp_msg_levels
[MSGT_DECAUDIO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
298 { "decvideo", &mp_msg_levels
[MSGT_DECVIDEO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
299 { "seek", &mp_msg_levels
[MSGT_SEEK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
300 { "win32", &mp_msg_levels
[MSGT_WIN32
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
301 { "open", &mp_msg_levels
[MSGT_OPEN
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
302 { "dvd", &mp_msg_levels
[MSGT_DVD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
303 { "parsees", &mp_msg_levels
[MSGT_PARSEES
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
304 { "lirc", &mp_msg_levels
[MSGT_LIRC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
305 { "stream", &mp_msg_levels
[MSGT_STREAM
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
306 { "cache", &mp_msg_levels
[MSGT_CACHE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
307 { "xacodec", &mp_msg_levels
[MSGT_XACODEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
308 { "tv", &mp_msg_levels
[MSGT_TV
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
309 { "radio", &mp_msg_levels
[MSGT_RADIO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
310 { "osdep", &mp_msg_levels
[MSGT_OSDEP
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
311 { "spudec", &mp_msg_levels
[MSGT_SPUDEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
312 { "playtree", &mp_msg_levels
[MSGT_PLAYTREE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
313 { "input", &mp_msg_levels
[MSGT_INPUT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
314 { "vfilter", &mp_msg_levels
[MSGT_VFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
315 { "osd", &mp_msg_levels
[MSGT_OSD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
316 { "network", &mp_msg_levels
[MSGT_NETWORK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
317 { "cpudetect", &mp_msg_levels
[MSGT_CPUDETECT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
318 { "codeccfg", &mp_msg_levels
[MSGT_CODECCFG
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
319 { "sws", &mp_msg_levels
[MSGT_SWS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
320 { "vobsub", &mp_msg_levels
[MSGT_VOBSUB
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
321 { "subreader", &mp_msg_levels
[MSGT_SUBREADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
322 { "afilter", &mp_msg_levels
[MSGT_AFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
323 { "netst", &mp_msg_levels
[MSGT_NETST
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
324 { "muxer", &mp_msg_levels
[MSGT_MUXER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
325 { "osd-menu", &mp_msg_levels
[MSGT_OSD_MENU
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
326 { "identify", &mp_msg_levels
[MSGT_IDENTIFY
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
327 { "ass", &mp_msg_levels
[MSGT_ASS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
328 { "statusline", &mp_msg_levels
[MSGT_STATUSLINE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
329 { "fixme", &mp_msg_levels
[MSGT_FIXME
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
330 {"help", "Available msg modules:\n"
331 " global - common player errors/information\n"
332 " cplayer - console player (mplayer.c)\n"
335 " demuxer - demuxer.c (general stuff)\n"
336 " ds - demux stream (add/read packet etc)\n"
337 " demux - fileformat-specific stuff (demux_*.c)\n"
338 " header - fileformat-specific header (*header.c)\n"
339 " avsync - mplayer.c timer stuff\n"
340 " autoq - mplayer.c auto-quality stuff\n"
341 " cfgparser - cfgparser.c\n"
342 " decaudio - av decoder\n"
344 " seek - seeking code\n"
345 " win32 - win32 dll stuff\n"
346 " open - open.c (stream opening)\n"
347 " dvd - open.c (DVD init/read/seek)\n"
348 " parsees - parse_es.c (mpeg stream parser)\n"
349 " lirc - lirc_mp.c and input lirc driver\n"
350 " stream - stream.c\n"
351 " cache - cache2.c\n"
352 " xacodec - XAnim codecs\n"
353 " tv - TV input subsystem\n"
354 " osdep - OS-dependent parts\n"
355 " spudec - spudec.c\n"
356 " playtree - Playtree handling (playtree.c, playtreeparser.c)\n"
366 " osd-menu - OSD menu messages\n"
367 " afilter - Audio filter messages\n"
368 " netst - Netstream\n"
369 " muxer - muxer layer\n"
370 " identify - identify output\n"
371 " ass - libass messages\n"
372 " statusline - playback/encoding status line\n"
373 " fixme - messages not yet fixed to map to module\n"
374 "\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
375 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
379 extern const m_option_t lavc_decode_opts_conf
[];
380 extern const m_option_t xvid_dec_opts
[];
382 const m_option_t common_opts
[] = {
383 // ------------------------- common options --------------------
384 OPT_MAKE_FLAGS("quiet", quiet
, CONF_GLOBAL
),
385 {"really-quiet", &verbose
, CONF_TYPE_FLAG
, CONF_GLOBAL
|CONF_PRE_PARSE
, 0, -10, NULL
},
386 {"v", cfg_inc_verbose
, CONF_TYPE_FUNC
, CONF_GLOBAL
|CONF_NOSAVE
, 0, 0, NULL
},
387 {"msglevel", (void *) msgl_config
, CONF_TYPE_SUBCONFIG
, CONF_GLOBAL
, 0, 0, NULL
},
388 {"msgcolor", &mp_msg_color
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
389 {"nomsgcolor", &mp_msg_color
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
390 {"msgmodule", &mp_msg_module
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
391 {"nomsgmodule", &mp_msg_module
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
393 {"msgcharset", &mp_msg_charset
, CONF_TYPE_STRING
, CONF_GLOBAL
, 0, 0, NULL
},
395 #ifdef CONFIG_PRIORITY
396 {"priority", &proc_priority
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
398 {"codecpath", &codec_path
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
399 OPT_CHOICE("noconfig", noconfig
, CONF_GLOBAL
| CONF_NOCFG
| CONF_PRE_PARSE
,
400 ({"off", 0}, {"user", 1}, {"system", 2}, {"all", 3})),
402 // ------------------------- stream options --------------------
404 #ifdef CONFIG_STREAM_CACHE
405 {"cache", &stream_cache_size
, CONF_TYPE_INT
, CONF_RANGE
, 32, 1048576, NULL
},
406 {"nocache", &stream_cache_size
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
407 OPT_FLOATRANGE("cache-min", stream_cache_min_percent
, 0, 0, 99),
408 OPT_FLOATRANGE("cache-seek-min", stream_cache_seek_min_percent
, 0, 0, 99),
410 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
411 #endif /* CONFIG_STREAM_CACHE */
412 {"vcd", "-vcd N has been removed, use vcd://N instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
},
413 {"cuefile", "-cuefile has been removed, use cue://filename:N where N is the track number.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
414 {"cdrom-device", &cdrom_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
415 #ifdef CONFIG_DVDREAD
416 {"dvd-device", &dvd_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
417 {"dvd-speed", &dvd_speed
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
418 {"dvd", "-dvd N has been removed, use dvd://N instead.\n" , CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
419 {"dvdangle", &dvd_angle
, CONF_TYPE_INT
, CONF_RANGE
, 1, 99, NULL
},
421 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
422 {"dvd-speed", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
423 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
424 #endif /* CONFIG_DVDREAD */
425 OPT_INTPAIR("chapter", chapterrange
, 0),
426 OPT_INTRANGE("edition", edition_id
, 0, -1, 8190),
427 #ifdef CONFIG_LIBBLURAY
428 {"bluray-device", &bluray_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
429 {"bluray-angle", &bluray_angle
, CONF_TYPE_INT
, CONF_RANGE
, 0, 999, NULL
},
430 {"bluray-chapter", &bluray_chapter
, CONF_TYPE_INT
, CONF_RANGE
, 0, 999, NULL
},
432 {"bluray-device", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
433 {"bluray-angle", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
434 {"bluray-chapter", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
435 #endif /* CONFIG_LIBBLURAY */
437 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
438 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
439 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
441 #ifdef CONFIG_NETWORKING
442 {"user", &network_username
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
443 {"passwd", &network_password
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
444 {"bandwidth", &network_bandwidth
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
445 {"http-header-fields", &network_http_header_fields
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
446 {"user-agent", &network_useragent
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
447 {"referrer", &network_referrer
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
448 {"cookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
449 {"nocookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
450 {"cookies-file", &cookies_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
451 {"prefer-ipv4", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
452 {"ipv4-only-proxy", &network_ipv4_only_proxy
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
453 {"reuse-socket", &reuse_socket
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
454 {"noreuse-socket", &reuse_socket
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
456 {"prefer-ipv6", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
458 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
459 #endif /* HAVE_AF_INET6 */
462 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
463 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
464 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
465 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
466 #endif /* CONFIG_NETWORKING */
468 #ifdef CONFIG_LIVE555
469 {"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
470 {"rtsp-stream-over-http", &rtsp_transport_http
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
472 {"rtsp-stream-over-http", "-rtsp-stream-over-http requires the \"LIVE555 Streaming Media\" library.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
473 #endif /* CONFIG_LIVE555 */
474 #if defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555)
475 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
476 {"rtsp-stream-over-tcp", &rtsp_transport_tcp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
478 {"rtsp-stream-over-tcp", "-rtsp-stream-over-tcp requires the \"LIVE555 Streaming Media\" or \"libnemesi\" libraries.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
479 #endif /* defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555) */
480 #ifdef CONFIG_LIBNEMESI
481 {"rtsp-stream-over-sctp", &rtsp_transport_sctp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
483 {"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
484 #endif /* CONFIG_LIBNEMESI */
485 #ifdef CONFIG_NETWORKING
486 {"rtsp-port", &rtsp_port
, CONF_TYPE_INT
, CONF_RANGE
, -1, 65535, NULL
},
487 {"rtsp-destination", &rtsp_destination
, CONF_TYPE_STRING
, CONF_MIN
, 0, 0, NULL
},
489 {"rtsp-port", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
490 {"rtsp-destination", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
491 #endif /* CONFIG_NETWORKING */
493 // ------------------------- demuxer options --------------------
495 // number of frames to play/convert
496 {"frames", &play_n_frames_mf
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
498 // seek to byte/seconds position
499 {"sb", &seek_to_byte
, CONF_TYPE_POSITION
, CONF_MIN
, 0, 0, NULL
},
500 {"ss", &seek_to_sec
, CONF_TYPE_TIME
, 0, 0, 0, NULL
},
502 // stop at given position
503 {"endpos", &end_at
, CONF_TYPE_TIME_SIZE
, 0, 0, 0, NULL
},
505 {"edl", &edl_filename
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
507 // AVI specific: force non-interleaved mode
508 {"ni", &force_ni
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
509 {"noni", &force_ni
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
511 // AVI and Ogg only: (re)build index at startup
512 {"noidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 0, NULL
},
513 {"idx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
514 {"forceidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 2, NULL
},
515 {"saveidx", &index_file_save
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
516 {"loadidx", &index_file_load
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
518 // select audio/video/subtitle stream
519 OPT_INTRANGE("aid", audio_id
, 0, -2, 8190),
520 {"ausid", &audio_substream_id
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
521 OPT_INTRANGE("vid", video_id
, 0, -2, 8190),
522 OPT_INTRANGE("sid", sub_id
, 0, -2, 8190),
523 OPT_FLAG_CONSTANTS("nosub", sub_id
, 0, -1, -2),
524 OPT_FLAG_CONSTANTS("novideo", video_id
, 0, -1, -2),
525 OPT_FLAG_CONSTANTS("sound", audio_id
, 0, -2, -1),
526 OPT_FLAG_CONSTANTS("nosound", audio_id
, 0, -1, -2),
527 OPT_STRINGLIST("alang", audio_lang
, 0),
528 OPT_STRINGLIST("slang", sub_lang
, 0),
530 OPT_MAKE_FLAGS("hr-mp3-seek", hr_mp3_seek
, 0),
532 { "rawaudio", &demux_rawaudio_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
533 { "rawvideo", &demux_rawvideo_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
536 { "cdda", &cdda_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
539 // demuxer.c - select audio/sub file/demuxer
540 OPT_STRING("audiofile", audio_stream
, 0),
541 OPT_INTRANGE("audiofile-cache", audio_stream_cache
, 0, 50, 65536),
542 OPT_STRING("subfile", sub_stream
, 0),
543 OPT_STRING("demuxer", demuxer_name
, 0),
544 OPT_STRING("audio-demuxer", audio_demuxer_name
, 0),
545 OPT_STRING("sub-demuxer", sub_demuxer_name
, 0),
546 OPT_MAKE_FLAGS("extbased", extension_parsing
, 0),
548 {"mf", (void *) mfopts_conf
, CONF_TYPE_SUBCONFIG
, 0,0,0, NULL
},
550 {"radio", radioopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
552 {"radio", "MPlayer was compiled without Radio interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
553 #endif /* CONFIG_RADIO */
555 {"tv", (void *) tvopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
557 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
558 #endif /* CONFIG_TV */
560 {"pvr", (void *) pvropts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
562 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
563 #endif /* CONFIG_PVR */
564 {"vivo", (void *) vivoopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
566 {"dvbin", (void *) dvbin_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
569 // ------------------------- a-v sync options --------------------
571 // AVI specific: A-V sync mode (bps vs. interleaving)
572 {"bps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
573 {"nobps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
575 // set A-V sync correction speed (0=disables it):
576 {"mc", &default_max_pts_correction
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
578 // force video/audio rate:
579 {"fps", &force_fps
, CONF_TYPE_DOUBLE
, CONF_MIN
, 0, 0, NULL
},
580 {"srate", &force_srate
, CONF_TYPE_INT
, CONF_RANGE
, 1000, 8*48000, NULL
},
581 OPT_INTRANGE("channels", audio_output_channels
, 0, 1, 8),
582 OPT_AUDIOFORMAT("format", audio_output_format
, 0),
583 OPT_FLOATRANGE("speed", playback_speed
, 0, 0.01, 100.0),
586 {"delay", &audio_delay
, CONF_TYPE_FLOAT
, CONF_RANGE
, -100.0, 100.0, NULL
},
588 // ignore header-specified delay (dwStart)
589 {"ignore-start", &ignore_start
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
590 {"noignore-start", &ignore_start
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
592 OPT_FLOATRANGE("a52drc", drc_level
, 0, 0, 2),
594 // ------------------------- codec/vfilter options --------------------
596 // MP3-only: select stereo/left/right
597 #ifdef CONFIG_FAKE_MONO
598 {"stereo", &fakemono
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
601 {"af*", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
602 {"af-adv", (void *) audio_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
604 {"vop", "-vop has been removed, use -vf instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
},
605 OPT_SETTINGSLIST("vf*", vf_settings
, 0, &vf_obj_list
),
606 // select audio/video codec (by name) or codec family (by number):
607 {"afm", &audio_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
608 {"vfm", &video_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
609 {"ac", &audio_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
610 {"vc", &video_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
614 {"pp", &divx_quality
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
615 {"pphelp", &pp_help
, CONF_TYPE_PRINT_INDIRECT
, CONF_NOCFG
, 0, 0, NULL
},
619 {"sws", &sws_flags
, CONF_TYPE_INT
, 0, 0, 2, NULL
},
620 {"ssf", (void *) scaler_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
621 OPT_MAKE_FLAGS("zoom", softzoom
, 0),
622 OPT_FLOATRANGE("aspect", movie_aspect
, 0, 0.2, 3.0),
623 OPT_FLAG_CONSTANTS("noaspect", movie_aspect
, 0, 0, 0),
624 OPT_FLOATRANGE("xy", screen_size_xy
, 0, 0.001, 4096),
626 OPT_FLAG_CONSTANTS("flip", flip
, 0, -1, 1),
627 OPT_FLAG_CONSTANTS("noflip", flip
, 0, -1, 0),
628 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
630 {"tsprog", &ts_prog
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65534, NULL
},
631 {"tsprobe", &ts_probe
, CONF_TYPE_POSITION
, 0, 0, TS_MAX_PROBE_SIZE
, NULL
},
632 {"psprobe", &ps_probe
, CONF_TYPE_POSITION
, 0, 0, TS_MAX_PROBE_SIZE
, NULL
},
633 {"tskeepbroken", &ts_keep_broken
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
635 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
636 OPT_MAKE_FLAGS("slices", vd_use_slices
, 0),
637 {"field-dominance", &field_dominance
, CONF_TYPE_INT
, CONF_RANGE
, -1, 1, NULL
},
640 {"lavdopts", (void *) lavc_decode_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
641 {"lavfdopts", (void *) lavfdopts_conf
, CONF_TYPE_SUBCONFIG
, CONF_GLOBAL
, 0, 0, NULL
},
644 {"xvidopts", (void *)xvid_dec_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
646 {"codecs-file", &codecs_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
647 // ------------------------- subtitles options --------------------
649 OPT_STRINGLIST("sub", sub_name
, 0),
650 OPT_PATHLIST("sub-paths", sub_paths
, 0),
651 #ifdef CONFIG_FRIBIDI
652 {"fribidi-charset", &fribidi_charset
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
653 {"flip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
654 {"noflip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
655 {"flip-hebrew-commas", &fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
656 {"noflip-hebrew-commas", &fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
658 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
659 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
660 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
661 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
662 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
663 #endif /* CONFIG_FRIBIDI */
665 {"subcp", &sub_cp
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
667 {"subdelay", &sub_delay
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
668 {"subfps", &sub_fps
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
669 OPT_MAKE_FLAGS("autosub", sub_auto
, 0),
670 {"unicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
671 {"nounicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
672 {"utf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
673 {"noutf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
674 {"forcedsubsonly", &forced_subs_only
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
675 // specify IFO file for VOBSUB subtitle
676 {"ifo", &spudec_ifo
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
677 // enable Closed Captioning display
678 {"subcc", &subcc_enabled
, CONF_TYPE_INT
, CONF_RANGE
, 0, 4, NULL
},
679 {"nosubcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
680 {"overlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
681 {"nooverlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
682 {"sub-bg-color", &sub_bg_color
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
683 {"sub-bg-alpha", &sub_bg_alpha
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
684 {"sub-no-text-pp", &sub_no_text_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
685 {"sub-fuzziness", &sub_match_fuzziness
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
686 {"font", &font_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
687 {"subfont", &sub_font_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
688 {"ffactor", &font_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 10.0, NULL
},
689 {"subpos", &sub_pos
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
690 {"subalign", &sub_alignment
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
691 {"subwidth", &sub_width_p
, CONF_TYPE_INT
, CONF_RANGE
, 10, 100, NULL
},
692 {"spualign", &spu_alignment
, CONF_TYPE_INT
, CONF_RANGE
, -1, 2, NULL
},
693 {"spuaa", &spu_aamode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
694 {"spugauss", &spu_gaussvar
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 3.0, NULL
},
695 #ifdef CONFIG_FREETYPE
696 {"subfont-encoding", &subtitle_font_encoding
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
697 {"subfont-text-scale", &text_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
698 {"subfont-osd-scale", &osd_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
699 {"subfont-blur", &subtitle_font_radius
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
700 {"subfont-outline", &subtitle_font_thickness
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
701 {"subfont-autoscale", &subtitle_autoscale
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
704 OPT_MAKE_FLAGS("ass", ass_enabled
, 0),
705 {"ass-font-scale", &ass_font_scale
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
706 {"ass-line-spacing", &ass_line_spacing
, CONF_TYPE_FLOAT
, CONF_RANGE
, -1000, 1000, NULL
},
707 {"ass-top-margin", &ass_top_margin
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2000, NULL
},
708 {"ass-bottom-margin", &ass_bottom_margin
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2000, NULL
},
709 {"ass-use-margins", &ass_use_margins
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
710 {"noass-use-margins", &ass_use_margins
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
711 {"embeddedfonts", &use_embedded_fonts
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
712 {"noembeddedfonts", &use_embedded_fonts
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
713 {"ass-force-style", &ass_force_style_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
714 {"ass-color", &ass_color
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
715 {"ass-border-color", &ass_border_color
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
716 {"ass-styles", &ass_styles_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
717 {"ass-hinting", &ass_hinting
, CONF_TYPE_INT
, CONF_RANGE
, 0, 7, NULL
},
719 #ifdef CONFIG_FONTCONFIG
720 {"fontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
721 {"nofontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, 1, -1, NULL
},
723 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
724 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
725 #endif /* CONFIG_FONTCONFIG */
726 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
729 const m_option_t vd_conf
[]={
730 {"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT
, CONF_NOCFG
|CONF_GLOBAL
, 0, 0, NULL
},
731 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
735 const m_option_t tvscan_conf
[]={
736 {"autostart", &stream_tv_defaults
.scan
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
737 {"threshold", &stream_tv_defaults
.scan_threshold
, CONF_TYPE_INT
, CONF_RANGE
, 1, 100, NULL
},
738 {"period", &stream_tv_defaults
.scan_period
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.1, 2.0, NULL
},
739 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
743 const m_option_t mplayer_opts
[]={
744 /* name, pointer, type, flags, min, max */
746 //---------------------- libao/libvo options ------------------------
747 {"o", "Option -o has been renamed to -vo (video-out), use -vo.\n",
748 CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
749 OPT_STRINGLIST("vo", video_driver_list
, 0),
750 OPT_STRINGLIST("ao", audio_driver_list
, 0),
751 OPT_MAKE_FLAGS("fixed-vo", fixed_vo
, CONF_GLOBAL
),
752 OPT_MAKE_FLAGS("ontop", vo_ontop
, 0),
753 {"rootwin", &vo_rootwin
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
754 {"border", &vo_border
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
755 {"noborder", &vo_border
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
757 {"aop", "-aop has been removed, use -af instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
758 {"dsp", "-dsp has been removed. Use -ao oss:dsp_path instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
759 {"mixer", &mixer_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
760 {"mixer-channel", &mixer_channel
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
761 {"softvol", &soft_vol
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
762 {"nosoftvol", &soft_vol
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
763 {"softvol-max", &soft_vol_max
, CONF_TYPE_FLOAT
, CONF_RANGE
, 10, 10000, NULL
},
764 {"volstep", &volstep
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
765 {"volume", &start_volume
, CONF_TYPE_FLOAT
, CONF_RANGE
, -1, 10000, NULL
},
766 OPT_MAKE_FLAGS("gapless-audio", gapless_audio
, 0),
767 {"master", "Option -master has been removed, use -af volume instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
768 // override audio buffer size (used only by -ao oss/win32, obsolete)
769 OPT_INT("abs", ao_buffersize
, 0),
772 {"aofile", "-aofile has been removed. Use -ao pcm:file=<filename> instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
773 {"waveheader", "-waveheader has been removed. Use -ao pcm:waveheader instead.\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
774 {"nowaveheader", "-nowaveheader has been removed. Use -ao pcm:nowaveheader instead.\n", CONF_TYPE_PRINT
, 0, 1, 0, NULL
},
776 {"alsa", "-alsa has been removed. Remove it from your config file.\n",
777 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
778 {"noalsa", "-noalsa has been removed. Remove it from your config file.\n",
779 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
780 {"edlout", &edl_output_filename
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
783 {"display", &mDisplayName
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
788 {"z", "-z has been removed. Use -vo png:z=<0-9> instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
792 {"jpeg", "-jpeg has been removed. Use -vo jpeg:<options> instead.\n",
793 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
796 {"sdl", "Use -vo sdl:driver=<driver> instead of -vo sdl -sdl driver.\n",
797 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
798 {"noxv", "-noxv has been removed. Use -vo sdl:nohwaccel instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
799 {"forcexv", "-forcexv has been removed. Use -vo sdl:forcexv instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
801 {"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver.\n",
802 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
804 #if defined(CONFIG_FBDEV) || defined(CONFIG_VESA)
805 {"monitor-hfreq", &monitor_hfreq_str
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
806 {"monitor-vfreq", &monitor_vfreq_str
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
807 {"monitor-dotclock", &monitor_dotclock_str
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
811 {"fbmode", &fb_mode_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
812 {"fbmodeconfig", &fb_mode_cfgfile
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
815 // force window width/height or resolution (with -vm)
816 OPT_INTRANGE("x", screen_size_x
, 0, 0, 4096),
817 OPT_INTRANGE("y", screen_size_y
, 0, 0, 4096),
818 // set screen dimensions (when not detectable or virtual!=visible)
819 OPT_INTRANGE("screenw", vo_screenwidth
, CONF_NOSAVE
, 0, 4096),
820 OPT_INTRANGE("screenh", vo_screenheight
, CONF_NOSAVE
, 0, 4096),
822 {"geometry", &vo_geometry
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
823 OPT_MAKE_FLAGS("force-window-position", force_window_position
, 0),
824 // vo name (X classname) and window title strings
825 OPT_STRING("name", vo_winname
, 0),
826 OPT_STRING("title", vo_wintitle
, 0),
827 // set aspect ratio of monitor - useful for 16:9 TV-out
828 OPT_FLOATRANGE("monitoraspect", force_monitor_aspect
, 0, 0.0, 9.0),
829 OPT_FLOATRANGE("monitorpixelaspect", monitor_pixel_aspect
, 0, 0.2, 9.0),
830 // video mode switching: (x11,xv,dga)
831 OPT_MAKE_FLAGS("vm", vidmode
, 0),
832 // start in fullscreen mode:
833 OPT_MAKE_FLAGS("fs", fullscreen
, CONF_NOSAVE
),
834 // set fullscreen switch method (workaround for buggy WMs)
835 {"fsmode", "-fsmode is obsolete, avoid it and use -fstype instead.\nIf you really want it, try -fsmode-dontuse, but don't report bugs!\n", CONF_TYPE_PRINT
, CONF_RANGE
, 0, 31, NULL
},
836 {"fsmode-dontuse", &vo_fsmode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
837 // set bpp (x11+vm, dga, fbdev, vesa, svga?)
838 OPT_INTRANGE("bpp", vo_dbpp
, 0, 0, 32),
839 {"colorkey", &vo_colorkey
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
840 {"nocolorkey", &vo_colorkey
, CONF_TYPE_FLAG
, 0, 0, 0x1000000, NULL
},
841 {"double", &vo_doublebuffering
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
842 {"nodouble", &vo_doublebuffering
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
843 // wait for v-sync (vesa)
844 {"vsync", &vo_vsync
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
845 {"novsync", &vo_vsync
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
846 {"panscan", &vo_panscan
, CONF_TYPE_FLOAT
, CONF_RANGE
, -1.0, 1.0, NULL
},
847 OPT_FLOATRANGE("panscanrange", vo_panscanrange
, 0, -19.0, 99.0),
849 {"grabpointer", &vo_grabpointer
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
850 {"nograbpointer", &vo_grabpointer
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
852 {"adapter", &vo_adapter_num
, CONF_TYPE_INT
, CONF_RANGE
, 0, 5, NULL
},
853 {"refreshrate",&vo_refresh_rate
,CONF_TYPE_INT
,CONF_RANGE
, 0,100, NULL
},
854 {"wid", &WinID
, CONF_TYPE_INT64
, 0, 0, 0, NULL
},
856 {"icelayer", "-icelayer has been removed. Use -fstype layer:<number> instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
857 {"stop-xscreensaver", &stop_xscreensaver
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
858 {"nostop-xscreensaver", &stop_xscreensaver
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
859 {"stop_xscreensaver", "Use -stop-xscreensaver instead, options with _ have been obsoleted.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
860 {"fstype", &vo_fstype_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
862 {"heartbeat-cmd", &heartbeat_cmd
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
863 {"mouseinput", &vo_nomouse_input
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
864 {"nomouseinput", &vo_nomouse_input
, CONF_TYPE_FLAG
,0, 0, 1, NULL
},
866 {"xineramascreen", &xinerama_screen
, CONF_TYPE_INT
, CONF_RANGE
, -2, 32, NULL
},
868 OPT_INTRANGE("brightness", vo_gamma_brightness
, 0, -100, 100),
869 OPT_INTRANGE("saturation", vo_gamma_saturation
, 0, -100, 100),
870 OPT_INTRANGE("contrast", vo_gamma_contrast
, 0, -100, 100),
871 OPT_INTRANGE("hue", vo_gamma_hue
, 0, -100, 100),
872 OPT_INTRANGE("gamma", vo_gamma_gamma
, 0, -100, 100),
873 {"keepaspect", &vo_keepaspect
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
874 {"nokeepaspect", &vo_keepaspect
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
876 // direct rendering (decoding to video out buffer)
877 {"dr", &vo_directrendering
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
878 {"nodr", &vo_directrendering
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
879 {"vaa_dr", "-vaa_dr has been removed, use -dr.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
880 {"vaa_nodr", "-vaa_nodr has been removed, use -nodr.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
884 {"aa*", "-aa* has been removed. Use -vo aa:suboption instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
888 //---------------------- mplayer-only options ------------------------
890 {"use-filedir-conf", &use_filedir_conf
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
891 {"nouse-filedir-conf", &use_filedir_conf
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
892 {"use-filename-title", &use_filename_title
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
893 {"nouse-filename-title", &use_filename_title
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
894 #ifdef CONFIG_CRASH_DEBUG
895 {"crash-debug", &crash_debug
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
896 {"nocrash-debug", &crash_debug
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
898 OPT_INTRANGE("osdlevel", osd_level
, 0, 0, 3),
899 OPT_INTRANGE("osd-duration", osd_duration
, 0, 0, 3600000),
900 OPT_INTRANGE("osd-fractions", osd_fractions
, 0, 0, 2),
902 {"menu", &use_menu
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
903 {"nomenu", &use_menu
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
904 {"menu-root", &menu_root
, CONF_TYPE_STRING
, CONF_GLOBAL
, 0, 0, NULL
},
905 {"menu-cfg", &menu_cfg
, CONF_TYPE_STRING
, CONF_GLOBAL
, 0, 0, NULL
},
906 {"menu-startup", &menu_startup
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
907 {"menu-keepdir", &menu_keepdir
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
908 {"menu-chroot", &menu_chroot
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
909 #ifdef CONFIG_FRIBIDI
910 {"menu-fribidi-charset", &menu_fribidi_charset
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
911 {"menu-flip-hebrew", &menu_flip_hebrew
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
912 {"menu-noflip-hebrew", &menu_flip_hebrew
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
913 {"menu-flip-hebrew-commas", &menu_fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
914 {"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
915 #endif /* CONFIG_FRIBIDI */
917 {"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT
,0, 0, 0, NULL
},
918 #endif /* CONFIG_MENU */
920 OPT_STRING("vobsub", vobsub_name
, 0),
921 {"vobsubid", &vobsub_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
922 #ifdef CONFIG_UNRAR_EXEC
923 {"unrarexec", &unrar_executable
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
926 {"sstep", &step_sec
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
928 {"framedrop", &frame_dropping
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
929 {"hardframedrop", &frame_dropping
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
930 {"noframedrop", &frame_dropping
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
932 OPT_INTRANGE("autoq", auto_quality
, 0, 0, 100),
934 OPT_FLAG_ON("benchmark", benchmark
, 0),
936 // dump some stream out instead of playing the file
937 OPT_STRING("dumpfile", stream_dump_name
, 0),
938 {"dumpaudio", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
939 {"dumpvideo", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
940 {"dumpsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 3, NULL
},
941 {"dumpmpsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 4, NULL
},
942 {"dumpstream", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 5, NULL
},
943 {"dumpsrtsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 6, NULL
},
944 {"dumpmicrodvdsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 7, NULL
},
945 {"dumpjacosub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 8, NULL
},
946 {"dumpsami", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 9, NULL
},
948 OPT_MAKE_FLAGS("capture", capture_dump
, 0),
951 {"lircconf", &lirc_configfile
, CONF_TYPE_STRING
, CONF_GLOBAL
, 0, 0, NULL
},
954 {"leak-report", "", CONF_TYPE_PRINT
, 0, 0, 0, (void*)1},
955 // these should be removed when gmplayer is forgotten
956 {"gui", "Internal GUI was removed. Use some other frontend instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
957 {"nogui", "Internal GUI was removed, -nogui is no longer valid.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
959 OPT_FLAG_CONSTANTS("noloop", loop_times
, 0, 0, -1),
960 OPT_INTRANGE("loop", loop_times
, 0, -1, 10000),
961 {"playlist", NULL
, CONF_TYPE_STRING
, CONF_NOCFG
, 0, 0, NULL
},
962 {"shuffle", NULL
, CONF_TYPE_FLAG
, CONF_NOCFG
, 0, 0, NULL
},
963 {"noshuffle", NULL
, CONF_TYPE_FLAG
, CONF_NOCFG
, 0, 0, NULL
},
965 OPT_MAKE_FLAGS("ordered-chapters", ordered_chapters
, 0),
966 OPT_INTRANGE("chapter-merge-threshold", chapter_merge_threshold
, 0, 0, 10000),
969 OPT_MAKE_FLAGS("correct-pts", user_correct_pts
, 0),
970 OPT_CHOICE("pts-association-mode", user_pts_assoc_mode
, 0,
971 ({"auto", 0}, {"decoder", 1}, {"sort", 2})),
972 OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync
, 0),
973 OPT_CHOICE("hr-seek", hr_seek
, 0,
974 ({"off", -1}, {"absolute", 0}, {"always", 1}, {"on", 1})),
975 OPT_FLAG_CONSTANTS("noautosync", autosync
, 0, 0, -1),
976 OPT_INTRANGE("autosync", autosync
, 0, 0, 10000),
978 OPT_FLAG_ON("softsleep", softsleep
, 0),
980 OPT_MAKE_FLAGS("rtc", rtc
, 0),
981 OPT_STRING("rtc-device", rtc_device
, 0),
984 OPT_MAKE_FLAGS("term-osd", term_osd
, 0),
985 OPT_STRING("term-osd-esc", term_osd_esc
, 0),
986 OPT_STRING("playing-msg", playing_msg
, 0),
988 {"slave", &slave_mode
, CONF_TYPE_FLAG
,CONF_GLOBAL
, 0, 1, NULL
},
989 OPT_MAKE_FLAGS("idle", player_idle_mode
, CONF_GLOBAL
),
990 {"use-stdin", "-use-stdin has been renamed to -noconsolecontrols, use that instead.", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
991 OPT_INTRANGE("key-fifo-size", key_fifo_size
, CONF_GLOBAL
, 2, 65000),
992 OPT_MAKE_FLAGS("consolecontrols", consolecontrols
, CONF_GLOBAL
),
993 {"mouse-movements", &enable_mouse_movements
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
994 {"nomouse-movements", &enable_mouse_movements
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
995 OPT_INTRANGE("doubleclick-time", doubleclick_time
, 0, 0, 1000),
997 {"tvscan", (void *) tvscan_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
999 {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
1000 #endif /* CONFIG_TV */
1002 OPT_FLAG_ON("list-properties", list_properties
, CONF_GLOBAL
),
1003 {"identify", &mp_msg_levels
[MSGT_IDENTIFY
], CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, MSGL_V
, NULL
},
1004 {"-help", (void *) help_text
, CONF_TYPE_PRINT
, CONF_NOCFG
|CONF_GLOBAL
, 0, 0, NULL
},
1005 {"help", (void *) help_text
, CONF_TYPE_PRINT
, CONF_NOCFG
|CONF_GLOBAL
, 0, 0, NULL
},
1006 {"h", (void *) help_text
, CONF_TYPE_PRINT
, CONF_NOCFG
|CONF_GLOBAL
, 0, 0, NULL
},
1008 {"vd", (void *) vd_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
1009 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
1012 #endif /* MPLAYER_CFG_MPLAYER_H */