configure: disable live555 by default
[mplayer.git] / cfg-mplayer.h
blob2f1ba666bb676120c4be729a5cec0e3dbe2a462a
1 /*
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
26 #include <stddef.h>
27 #include <sys/types.h>
29 #include "options.h"
30 #include "config.h"
31 #include "m_config.h"
32 #include "m_option.h"
33 #include "libmpdemux/demux_ts.h"
34 #include "stream/tv.h"
35 #include "stream/stream_radio.h"
36 #include "libvo/csputils.h"
38 extern char *fb_mode_cfgfile;
39 extern char *fb_mode_name;
41 extern char *lirc_configfile;
43 /* only used at startup (setting these values from configfile) */
44 extern char *vo_geometry;
45 extern int stop_xscreensaver;
47 extern char *unrar_executable;
49 extern char *mp_msg_charset;
50 extern int mp_msg_color;
51 extern int mp_msg_module;
53 /* defined in codec-cfg.c */
54 extern char *codecs_file;
56 /* defined in dec_video.c */
57 extern int field_dominance;
59 /* from dec_audio, currently used for ac3surround decoder only */
60 extern int fakemono;
62 /* defined in network.c */
63 extern char *network_username;
64 extern char *network_password;
65 extern int network_bandwidth;
66 extern char *network_useragent;
67 extern char *network_referrer;
68 extern int network_cookies_enabled;
69 extern char *cookies_file;
71 extern int network_prefer_ipv4;
72 extern int network_ipv4_only_proxy;
73 extern int reuse_socket;
75 extern int dvd_speed; /* stream/stream_dvd.c */
77 /* defined in libmpdemux: */
78 extern const m_option_t demux_rawaudio_opts[];
79 extern const m_option_t demux_rawvideo_opts[];
80 extern const m_option_t cdda_opts[];
82 extern int ts_prog;
83 extern int ts_keep_broken;
84 extern off_t ts_probe;
85 extern int audio_substream_id;
86 extern off_t ps_probe;
88 extern int sws_flags;
89 extern const char pp_help[];
91 #ifdef CONFIG_RADIO
92 const m_option_t radioopts_conf[]={
93 {"device", &stream_radio_defaults.device, CONF_TYPE_STRING, 0, 0 ,0, NULL},
94 {"driver", &stream_radio_defaults.driver, CONF_TYPE_STRING, 0, 0 ,0, NULL},
95 #ifdef RADIO_BSDBT848_HDR
96 {"freq_min", &stream_radio_defaults.freq_min, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
97 {"freq_max", &stream_radio_defaults.freq_max, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
98 #endif
99 {"channels", &stream_radio_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0 ,0, NULL},
100 {"volume", &stream_radio_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0 ,100, NULL},
101 {"adevice", &stream_radio_defaults.adevice, CONF_TYPE_STRING, 0, 0 ,0, NULL},
102 {"arate", &stream_radio_defaults.arate, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
103 {"achannels", &stream_radio_defaults.achannels, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
104 {NULL, NULL, 0, 0, 0, 0, NULL}
106 #endif /* CONFIG_RADIO */
108 #ifdef CONFIG_TV
109 const m_option_t tvopts_conf[]={
110 {"immediatemode", &stream_tv_defaults.immediate, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},
111 {"noaudio", &stream_tv_defaults.noaudio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
112 {"audiorate", &stream_tv_defaults.audiorate, CONF_TYPE_INT, 0, 0, 0, NULL},
113 {"driver", &stream_tv_defaults.driver, CONF_TYPE_STRING, 0, 0, 0, NULL},
114 {"device", &stream_tv_defaults.device, CONF_TYPE_STRING, 0, 0, 0, NULL},
115 {"freq", &stream_tv_defaults.freq, CONF_TYPE_STRING, 0, 0, 0, NULL},
116 {"channel", &stream_tv_defaults.channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
117 {"chanlist", &stream_tv_defaults.chanlist, CONF_TYPE_STRING, 0, 0, 0, NULL},
118 {"norm", &stream_tv_defaults.norm, CONF_TYPE_STRING, 0, 0, 0, NULL},
119 {"automute", &stream_tv_defaults.automute, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
120 #if defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
121 {"normid", &stream_tv_defaults.normid, CONF_TYPE_INT, 0, 0, 0, NULL},
122 #endif
123 {"width", &stream_tv_defaults.width, CONF_TYPE_INT, 0, 0, 4096, NULL},
124 {"height", &stream_tv_defaults.height, CONF_TYPE_INT, 0, 0, 4096, NULL},
125 {"input", &stream_tv_defaults.input, CONF_TYPE_INT, 0, 0, 20, NULL},
126 {"outfmt", &stream_tv_defaults.outfmt, CONF_TYPE_IMGFMT, 0, 0, 0, NULL},
127 {"fps", &stream_tv_defaults.fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
128 {"channels", &stream_tv_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
129 {"brightness", &stream_tv_defaults.brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
130 {"contrast", &stream_tv_defaults.contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
131 {"hue", &stream_tv_defaults.hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
132 {"saturation", &stream_tv_defaults.saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
133 {"gain", &stream_tv_defaults.gain, CONF_TYPE_INT, CONF_RANGE, -1, 100, NULL},
134 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
135 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
136 {"amode", &stream_tv_defaults.amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
137 {"volume", &stream_tv_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
138 #endif
139 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2)
140 {"bass", &stream_tv_defaults.bass, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
141 {"treble", &stream_tv_defaults.treble, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
142 {"balance", &stream_tv_defaults.balance, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
143 {"forcechan", &stream_tv_defaults.forcechan, CONF_TYPE_INT, CONF_RANGE, 1, 2, NULL},
144 {"forceaudio", &stream_tv_defaults.force_audio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
145 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
146 {"mjpeg", &stream_tv_defaults.mjpeg, CONF_TYPE_FLAG, 0, 0, 1, NULL},
147 {"decimation", &stream_tv_defaults.decimation, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL},
148 {"quality", &stream_tv_defaults.quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
149 #ifdef CONFIG_ALSA
150 {"alsa", &stream_tv_defaults.alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL},
151 #endif /* CONFIG_ALSA */
152 #endif /* defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) */
153 {"adevice", &stream_tv_defaults.adevice, CONF_TYPE_STRING, 0, 0, 0, NULL},
154 {"tdevice", &stream_tv_defaults.teletext.device, CONF_TYPE_STRING, 0, 0, 0, NULL},
155 {"tpage", &stream_tv_defaults.teletext.page, CONF_TYPE_INT, CONF_RANGE, 100, 899, NULL},
156 {"tformat", &stream_tv_defaults.teletext.format, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
157 {"tlang", &stream_tv_defaults.teletext.lang, CONF_TYPE_INT, CONF_RANGE, -1, 0x7f, NULL},
158 {"audioid", &stream_tv_defaults.audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL},
159 #ifdef CONFIG_TV_DSHOW
160 {"hidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
161 {"nohidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL},
162 {"hidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
163 {"nohidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL},
164 {"system_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 1, NULL},
165 {"nosystem_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 0, NULL},
166 {"normalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 1, NULL},
167 {"nonormalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 0, NULL},
168 #endif
169 {NULL, NULL, 0, 0, 0, 0, NULL}
171 #endif /* CONFIG_TV */
173 extern int pvr_param_aspect_ratio;
174 extern int pvr_param_sample_rate;
175 extern int pvr_param_audio_layer;
176 extern int pvr_param_audio_bitrate;
177 extern char *pvr_param_audio_mode;
178 extern int pvr_param_bitrate;
179 extern char *pvr_param_bitrate_mode;
180 extern int pvr_param_bitrate_peak;
181 extern char *pvr_param_stream_type;
183 #ifdef CONFIG_PVR
184 const m_option_t pvropts_conf[]={
185 {"aspect", &pvr_param_aspect_ratio, CONF_TYPE_INT, 0, 1, 4, NULL},
186 {"arate", &pvr_param_sample_rate, CONF_TYPE_INT, 0, 32000, 48000, NULL},
187 {"alayer", &pvr_param_audio_layer, CONF_TYPE_INT, 0, 1, 2, NULL},
188 {"abitrate", &pvr_param_audio_bitrate, CONF_TYPE_INT, 0, 32, 448, NULL},
189 {"amode", &pvr_param_audio_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
190 {"vbitrate", &pvr_param_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
191 {"vmode", &pvr_param_bitrate_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
192 {"vpeak", &pvr_param_bitrate_peak, CONF_TYPE_INT, 0, 0, 0, NULL},
193 {"fmt", &pvr_param_stream_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
194 {NULL, NULL, 0, 0, 0, 0, NULL}
196 #endif /* CONFIG_PVR */
198 extern const m_option_t dvbin_opts_conf[];
199 extern const m_option_t lavfdopts_conf[];
201 extern int rtsp_transport_tcp;
202 extern int rtsp_transport_http;
203 extern int rtsp_transport_sctp;
204 extern int rtsp_port;
205 extern char *rtsp_destination;
208 extern int sws_chr_vshift;
209 extern int sws_chr_hshift;
210 extern float sws_chr_gblur;
211 extern float sws_lum_gblur;
212 extern float sws_chr_sharpen;
213 extern float sws_lum_sharpen;
215 const m_option_t scaler_filter_conf[]={
216 {"lgb", &sws_lum_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
217 {"cgb", &sws_chr_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
218 {"cvs", &sws_chr_vshift, CONF_TYPE_INT, 0, 0, 0, NULL},
219 {"chs", &sws_chr_hshift, CONF_TYPE_INT, 0, 0, 0, NULL},
220 {"ls", &sws_lum_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
221 {"cs", &sws_chr_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
222 {NULL, NULL, 0, 0, 0, 0, NULL}
225 /* VIVO demuxer options: */
226 extern int vivo_param_version;
227 extern char *vivo_param_acodec;
228 extern int vivo_param_abitrate;
229 extern int vivo_param_samplerate;
230 extern int vivo_param_bytesperblock;
231 extern int vivo_param_width;
232 extern int vivo_param_height;
233 extern int vivo_param_vformat;
234 extern char *dvd_device, *cdrom_device;
236 const m_option_t vivoopts_conf[]={
237 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0, NULL},
238 /* audio options */
239 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0, NULL},
240 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
241 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0, NULL},
242 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0, NULL},
243 /* video options */
244 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0, NULL},
245 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0, NULL},
246 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0, NULL},
247 {NULL, NULL, 0, 0, 0, 0, NULL}
250 extern int mf_w;
251 extern int mf_h;
252 extern double mf_fps;
253 extern char * mf_type;
254 extern m_obj_list_t vf_obj_list;
256 const m_option_t mfopts_conf[]={
257 {"w", &mf_w, CONF_TYPE_INT, 0, 0, 0, NULL},
258 {"h", &mf_h, CONF_TYPE_INT, 0, 0, 0, NULL},
259 {"fps", &mf_fps, CONF_TYPE_DOUBLE, 0, 0, 0, NULL},
260 {"type", &mf_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
261 {NULL, NULL, 0, 0, 0, 0, NULL}
264 #include "libaf/af.h"
265 extern af_cfg_t af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
266 const m_option_t audio_filter_conf[]={
267 {"list", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
268 {"force", &af_cfg.force, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
269 {NULL, NULL, 0, 0, 0, 0, NULL}
272 extern int mp_msg_levels[MSGT_MAX];
273 extern int mp_msg_level_all;
275 const m_option_t msgl_config[]={
276 { "all", &mp_msg_level_all, CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL},
278 { "global", &mp_msg_levels[MSGT_GLOBAL], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
279 { "cplayer", &mp_msg_levels[MSGT_CPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
280 { "vo", &mp_msg_levels[MSGT_VO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
281 { "ao", &mp_msg_levels[MSGT_AO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
282 { "demuxer", &mp_msg_levels[MSGT_DEMUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
283 { "ds", &mp_msg_levels[MSGT_DS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
284 { "demux", &mp_msg_levels[MSGT_DEMUX], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
285 { "header", &mp_msg_levels[MSGT_HEADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
286 { "avsync", &mp_msg_levels[MSGT_AVSYNC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
287 { "autoq", &mp_msg_levels[MSGT_AUTOQ], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
288 { "cfgparser", &mp_msg_levels[MSGT_CFGPARSER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
289 { "decaudio", &mp_msg_levels[MSGT_DECAUDIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
290 { "decvideo", &mp_msg_levels[MSGT_DECVIDEO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
291 { "seek", &mp_msg_levels[MSGT_SEEK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
292 { "win32", &mp_msg_levels[MSGT_WIN32], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
293 { "open", &mp_msg_levels[MSGT_OPEN], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
294 { "dvd", &mp_msg_levels[MSGT_DVD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
295 { "parsees", &mp_msg_levels[MSGT_PARSEES], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
296 { "lirc", &mp_msg_levels[MSGT_LIRC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
297 { "stream", &mp_msg_levels[MSGT_STREAM], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
298 { "cache", &mp_msg_levels[MSGT_CACHE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
299 { "xacodec", &mp_msg_levels[MSGT_XACODEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
300 { "tv", &mp_msg_levels[MSGT_TV], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
301 { "radio", &mp_msg_levels[MSGT_RADIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
302 { "osdep", &mp_msg_levels[MSGT_OSDEP], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
303 { "spudec", &mp_msg_levels[MSGT_SPUDEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
304 { "playtree", &mp_msg_levels[MSGT_PLAYTREE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
305 { "input", &mp_msg_levels[MSGT_INPUT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
306 { "vfilter", &mp_msg_levels[MSGT_VFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
307 { "osd", &mp_msg_levels[MSGT_OSD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
308 { "network", &mp_msg_levels[MSGT_NETWORK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
309 { "cpudetect", &mp_msg_levels[MSGT_CPUDETECT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
310 { "codeccfg", &mp_msg_levels[MSGT_CODECCFG], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
311 { "sws", &mp_msg_levels[MSGT_SWS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
312 { "vobsub", &mp_msg_levels[MSGT_VOBSUB], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
313 { "subreader", &mp_msg_levels[MSGT_SUBREADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
314 { "afilter", &mp_msg_levels[MSGT_AFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
315 { "netst", &mp_msg_levels[MSGT_NETST], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
316 { "muxer", &mp_msg_levels[MSGT_MUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
317 { "identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
318 { "ass", &mp_msg_levels[MSGT_ASS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
319 { "statusline", &mp_msg_levels[MSGT_STATUSLINE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
320 { "fixme", &mp_msg_levels[MSGT_FIXME], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
321 {"help", "Available msg modules:\n"
322 " global - common player errors/information\n"
323 " cplayer - console player (mplayer.c)\n"
324 " vo - libvo\n"
325 " ao - libao\n"
326 " demuxer - demuxer.c (general stuff)\n"
327 " ds - demux stream (add/read packet etc)\n"
328 " demux - fileformat-specific stuff (demux_*.c)\n"
329 " header - fileformat-specific header (*header.c)\n"
330 " avsync - mplayer.c timer stuff\n"
331 " autoq - mplayer.c auto-quality stuff\n"
332 " cfgparser - cfgparser.c\n"
333 " decaudio - av decoder\n"
334 " decvideo\n"
335 " seek - seeking code\n"
336 " win32 - win32 dll stuff\n"
337 " open - open.c (stream opening)\n"
338 " dvd - open.c (DVD init/read/seek)\n"
339 " parsees - parse_es.c (mpeg stream parser)\n"
340 " lirc - lirc_mp.c and input lirc driver\n"
341 " stream - stream.c\n"
342 " cache - cache2.c\n"
343 " xacodec - XAnim codecs\n"
344 " tv - TV input subsystem\n"
345 " osdep - OS-dependent parts\n"
346 " spudec - spudec.c\n"
347 " playtree - Playtree handling (playtree.c, playtreeparser.c)\n"
348 " input\n"
349 " vfilter\n"
350 " osd\n"
351 " network\n"
352 " cpudetect\n"
353 " codeccfg\n"
354 " sws\n"
355 " vobsub\n"
356 " subreader\n"
357 " afilter - Audio filter messages\n"
358 " netst - Netstream\n"
359 " muxer - muxer layer\n"
360 " identify - identify output\n"
361 " ass - libass messages\n"
362 " statusline - playback/encoding status line\n"
363 " fixme - messages not yet fixed to map to module\n"
364 "\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
365 {NULL, NULL, 0, 0, 0, 0, NULL}
369 extern const m_option_t lavc_decode_opts_conf[];
370 extern const m_option_t xvid_dec_opts[];
372 const m_option_t common_opts[] = {
373 // ------------------------- common options --------------------
374 OPT_MAKE_FLAGS("quiet", quiet, CONF_GLOBAL),
375 {"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_PRE_PARSE, 0, -10, NULL},
376 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL},
377 {"msglevel", (void *) msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
378 {"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
379 {"nomsgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
380 {"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
381 {"nomsgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
382 #ifdef CONFIG_ICONV
383 {"msgcharset", &mp_msg_charset, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
384 #endif
385 #ifdef CONFIG_PRIORITY
386 {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
387 #endif
388 {"codecpath", &codec_path, CONF_TYPE_STRING, 0, 0, 0, NULL},
389 OPT_CHOICE("noconfig", noconfig, CONF_GLOBAL | CONF_NOCFG | CONF_PRE_PARSE,
390 ({"off", 0}, {"user", 1}, {"system", 2}, {"all", 3})),
392 // ------------------------- stream options --------------------
394 #ifdef CONFIG_STREAM_CACHE
395 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL},
396 {"nocache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL},
397 OPT_FLOATRANGE("cache-min", stream_cache_min_percent, 0, 0, 99),
398 OPT_FLOATRANGE("cache-seek-min", stream_cache_seek_min_percent, 0, 0, 99),
399 #else
400 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
401 #endif /* CONFIG_STREAM_CACHE */
402 {"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
403 #ifdef CONFIG_DVDREAD
404 {"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
405 {"dvd-speed", &dvd_speed, CONF_TYPE_INT, 0, 0, 0, NULL},
406 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
407 #else
408 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
409 {"dvd-speed", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
410 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
411 #endif /* CONFIG_DVDREAD */
412 OPT_INTPAIR("chapter", chapterrange, 0),
413 OPT_INTRANGE("edition", edition_id, 0, -1, 8190),
414 #ifdef CONFIG_LIBBLURAY
415 {"bluray-device", &bluray_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
416 {"bluray-angle", &bluray_angle, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
417 {"bluray-chapter", &bluray_chapter, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
418 #else
419 {"bluray-device", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
420 {"bluray-angle", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
421 {"bluray-chapter", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
422 #endif /* CONFIG_LIBBLURAY */
424 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
425 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
426 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
428 #ifdef CONFIG_NETWORKING
429 {"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
430 {"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
431 {"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
432 {"http-header-fields", &network_http_header_fields, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
433 {"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL},
434 {"referrer", &network_referrer, CONF_TYPE_STRING, 0, 0, 0, NULL},
435 {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
436 {"nocookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
437 {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
438 {"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
439 {"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL},
440 {"reuse-socket", &reuse_socket, CONF_TYPE_FLAG, 0, 0, 1, NULL},
441 {"noreuse-socket", &reuse_socket, CONF_TYPE_FLAG, 0, 1, 0, NULL},
442 #ifdef HAVE_AF_INET6
443 {"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
444 #else
445 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
446 #endif /* HAVE_AF_INET6 */
448 #else
449 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
450 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
451 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
452 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
453 #endif /* CONFIG_NETWORKING */
455 #ifdef CONFIG_LIVE555
456 {"rtsp-stream-over-http", &rtsp_transport_http, CONF_TYPE_FLAG, 0, 0, 1, NULL},
457 #else
458 {"rtsp-stream-over-http", "-rtsp-stream-over-http requires the \"LIVE555 Streaming Media\" library.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
459 #endif /* CONFIG_LIVE555 */
460 #if defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555)
461 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
462 {"rtsp-stream-over-tcp", &rtsp_transport_tcp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
463 #else
464 {"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},
465 #endif /* defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555) */
466 #ifdef CONFIG_LIBNEMESI
467 {"rtsp-stream-over-sctp", &rtsp_transport_sctp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
468 #else
469 {"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
470 #endif /* CONFIG_LIBNEMESI */
471 #ifdef CONFIG_NETWORKING
472 {"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
473 {"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
474 #else
475 {"rtsp-port", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
476 {"rtsp-destination", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
477 #endif /* CONFIG_NETWORKING */
479 // ------------------------- demuxer options --------------------
481 // number of frames to play/convert
482 {"frames", &play_n_frames_mf, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
484 // seek to byte/seconds position
485 {"sb", &seek_to_byte, CONF_TYPE_POSITION, CONF_MIN, 0, 0, NULL},
486 OPT_TIME("ss", seek_to_sec, 0),
488 // stop at given position
489 {"endpos", &end_at, CONF_TYPE_TIME_SIZE, 0, 0, 0, NULL},
491 OPT_ERRORMESSAGE("edl", "Old EDL functionality using the --edl option is "
492 "not supported.\n"),
494 // AVI specific: force non-interleaved mode
495 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},
496 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0, NULL},
498 // AVI and Ogg only: (re)build index at startup
499 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0, NULL},
500 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL},
501 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL},
502 {"saveidx", &index_file_save, CONF_TYPE_STRING, 0, 0, 0, NULL},
503 {"loadidx", &index_file_load, CONF_TYPE_STRING, 0, 0, 0, NULL},
505 // select audio/video/subtitle stream
506 OPT_INTRANGE("aid", audio_id, 0, -2, 8190),
507 {"ausid", &audio_substream_id, CONF_TYPE_INT, 0, 0, 0, NULL},
508 OPT_INTRANGE("vid", video_id, 0, -2, 8190),
509 OPT_INTRANGE("sid", sub_id, 0, -2, 8190),
510 OPT_FLAG_CONSTANTS("nosub", sub_id, 0, -1, -2),
511 OPT_FLAG_CONSTANTS("novideo", video_id, 0, -1, -2),
512 OPT_FLAG_CONSTANTS("sound", audio_id, 0, -2, -1),
513 OPT_FLAG_CONSTANTS("nosound", audio_id, 0, -1, -2),
514 OPT_STRINGLIST("alang", audio_lang, 0),
515 OPT_STRINGLIST("slang", sub_lang, 0),
517 OPT_MAKE_FLAGS("hr-mp3-seek", hr_mp3_seek, 0),
519 { "rawaudio", (void *)&demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
520 { "rawvideo", (void *)&demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
522 #ifdef CONFIG_CDDA
523 { "cdda", (void *)&cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
524 #endif
526 // demuxer.c - select audio/sub file/demuxer
527 OPT_STRING("audiofile", audio_stream, 0),
528 OPT_INTRANGE("audiofile-cache", audio_stream_cache, 0, 50, 65536),
529 OPT_STRING("subfile", sub_stream, 0),
530 OPT_STRING("demuxer", demuxer_name, 0),
531 OPT_STRING("audio-demuxer", audio_demuxer_name, 0),
532 OPT_STRING("sub-demuxer", sub_demuxer_name, 0),
533 OPT_MAKE_FLAGS("extbased", extension_parsing, 0),
535 {"mf", (void *) mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL},
536 #ifdef CONFIG_RADIO
537 {"radio", radioopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
538 #else
539 {"radio", "MPlayer was compiled without Radio interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
540 #endif /* CONFIG_RADIO */
541 #ifdef CONFIG_TV
542 {"tv", (void *) tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
543 #else
544 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
545 #endif /* CONFIG_TV */
546 #ifdef CONFIG_PVR
547 {"pvr", (void *) pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
548 #else
549 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
550 #endif /* CONFIG_PVR */
551 {"vivo", (void *) vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
552 #ifdef CONFIG_DVBIN
553 {"dvbin", (void *) dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
554 #endif
556 // ------------------------- a-v sync options --------------------
558 // AVI specific: A-V sync mode (bps vs. interleaving)
559 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},
560 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0, NULL},
562 // set A-V sync correction speed (0=disables it):
563 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
565 // force video/audio rate:
566 {"fps", &force_fps, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL},
567 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
568 OPT_INTRANGE("channels", audio_output_channels, 0, 1, 8),
569 OPT_AUDIOFORMAT("format", audio_output_format, 0),
570 OPT_FLOATRANGE("speed", playback_speed, 0, 0.01, 100.0),
572 // set a-v distance
573 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
575 // ignore header-specified delay (dwStart)
576 {"ignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 0, 1, NULL},
577 {"noignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 1, 0, NULL},
579 OPT_FLOATRANGE("a52drc", drc_level, 0, 0, 2),
581 // ------------------------- codec/vfilter options --------------------
583 // MP3-only: select stereo/left/right
584 #ifdef CONFIG_FAKE_MONO
585 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
586 #endif
588 {"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
589 {"af-adv", (void *) audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
591 OPT_SETTINGSLIST("vf*", vf_settings, 0, &vf_obj_list),
592 // select audio/video codec (by name) or codec family (by number):
593 {"afm", &audio_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
594 {"vfm", &video_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
595 {"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
596 {"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
598 // postprocessing:
599 {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},
600 #ifdef CONFIG_LIBPOSTPROC
601 {"pphelp", &pp_help, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
602 #endif
604 // scaling:
605 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL},
606 {"ssf", (void *) scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
607 OPT_MAKE_FLAGS("zoom", softzoom, 0),
608 OPT_FLOATRANGE("aspect", movie_aspect, 0, 0.1, 10.0),
609 OPT_FLAG_CONSTANTS("noaspect", movie_aspect, 0, 0, 0),
610 OPT_FLOATRANGE("xy", screen_size_xy, 0, 0.001, 4096),
612 OPT_FLAG_CONSTANTS("flip", flip, 0, -1, 1),
613 OPT_FLAG_CONSTANTS("noflip", flip, 0, -1, 0),
614 {"tsprog", &ts_prog, CONF_TYPE_INT, CONF_RANGE, 0, 65534, NULL},
615 {"tsprobe", &ts_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
616 {"psprobe", &ps_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
617 {"tskeepbroken", &ts_keep_broken, CONF_TYPE_FLAG, 0, 0, 1, NULL},
619 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
620 OPT_MAKE_FLAGS("slices", vd_use_slices, 0),
621 {"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
623 {"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
624 {"lavfdopts", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
625 #ifdef CONFIG_XVID4
626 {"xvidopts", (void *)xvid_dec_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
627 #endif
628 {"codecs-file", &codecs_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
629 // ------------------------- subtitles options --------------------
631 OPT_STRINGLIST("sub", sub_name, 0),
632 OPT_PATHLIST("sub-paths", sub_paths, 0),
633 #ifdef CONFIG_FRIBIDI
634 {"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
635 {"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
636 {"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
637 {"flip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
638 {"noflip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
639 #else
640 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
641 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
642 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
643 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
644 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
645 #endif /* CONFIG_FRIBIDI */
646 #ifdef CONFIG_ICONV
647 {"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
648 #endif
649 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
650 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
651 OPT_MAKE_FLAGS("autosub", sub_auto, 0),
652 {"unicode", &sub_unicode, CONF_TYPE_FLAG, 0, 0, 1, NULL},
653 {"nounicode", &sub_unicode, CONF_TYPE_FLAG, 0, 1, 0, NULL},
654 {"utf8", &sub_utf8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
655 {"noutf8", &sub_utf8, CONF_TYPE_FLAG, 0, 1, 0, NULL},
656 {"forcedsubsonly", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL},
657 // specify IFO file for VOBSUB subtitle
658 {"ifo", &spudec_ifo, CONF_TYPE_STRING, 0, 0, 0, NULL},
659 // enable Closed Captioning display
660 {"subcc", &subcc_enabled, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL},
661 {"nosubcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
662 {"overlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 2, NULL},
663 {"nooverlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 0, NULL},
664 {"sub-bg-color", &sub_bg_color, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
665 {"sub-bg-alpha", &sub_bg_alpha, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
666 {"sub-no-text-pp", &sub_no_text_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
667 {"sub-fuzziness", &sub_match_fuzziness, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
668 {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
669 {"subfont", &sub_font_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
670 {"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0, NULL},
671 {"subpos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
672 {"subalign", &sub_alignment, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
673 {"subwidth", &sub_width_p, CONF_TYPE_INT, CONF_RANGE, 10, 100, NULL},
674 {"spualign", &spu_alignment, CONF_TYPE_INT, CONF_RANGE, -1, 2, NULL},
675 {"spuaa", &spu_aamode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
676 {"spugauss", &spu_gaussvar, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 3.0, NULL},
677 #ifdef CONFIG_FREETYPE
678 {"subfont-encoding", &subtitle_font_encoding, CONF_TYPE_STRING, 0, 0, 0, NULL},
679 {"subfont-text-scale", &text_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
680 {"subfont-osd-scale", &osd_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
681 {"subfont-blur", &subtitle_font_radius, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
682 {"subfont-outline", &subtitle_font_thickness, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
683 {"subfont-autoscale", &subtitle_autoscale, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
684 #endif
685 OPT_START_CONDITIONAL(CONFIG_ASS, "libass"),
686 OPT_MAKE_FLAGS("ass", ass_enabled, 0),
687 OPT_FLOATRANGE("ass-font-scale", ass_font_scale, 0, 0, 100),
688 OPT_FLOATRANGE("ass-line-spacing", ass_line_spacing, 0, -1000, 1000),
689 OPT_INTRANGE("ass-top-margin", ass_top_margin, 0, 0, 2000),
690 OPT_INTRANGE("ass-bottom-margin", ass_bottom_margin, 0, 0, 2000),
691 OPT_MAKE_FLAGS("ass-use-margins", ass_use_margins, 0),
692 OPT_MAKE_FLAGS("ass-vsfilter-aspect-compat", ass_vsfilter_aspect_compat, 0),
693 OPT_MAKE_FLAGS("embeddedfonts", use_embedded_fonts, 0),
694 OPT_STRINGLIST("ass-force-style", ass_force_style_list, 0),
695 OPT_STRING("ass-color", ass_color, 0),
696 OPT_STRING("ass-border-color", ass_border_color, 0),
697 OPT_STRING("ass-styles", ass_styles_file, 0),
698 OPT_INTRANGE("ass-hinting", ass_hinting, 0, 0, 7),
699 OPT_START_CONDITIONAL(1, ""),
700 #ifdef CONFIG_FONTCONFIG
701 {"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, -1, 1, NULL},
702 {"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, -1, NULL},
703 #else
704 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
705 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
706 #endif /* CONFIG_FONTCONFIG */
707 {NULL, NULL, 0, 0, 0, 0, NULL}
710 #ifdef CONFIG_TV
711 const m_option_t tvscan_conf[]={
712 {"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL},
713 {"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL},
714 {"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL},
715 {NULL, NULL, 0, 0, 0, 0, NULL}
717 #endif
719 const m_option_t mplayer_opts[]={
720 /* name, pointer, type, flags, min, max */
722 //---------------------- libao/libvo options ------------------------
723 OPT_STRINGLIST("vo", video_driver_list, 0),
724 OPT_STRINGLIST("ao", audio_driver_list, 0),
725 OPT_MAKE_FLAGS("fixed-vo", fixed_vo, CONF_GLOBAL),
726 OPT_MAKE_FLAGS("ontop", vo_ontop, 0),
727 {"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
728 {"border", &vo_border, CONF_TYPE_FLAG, 0, 0, 1, NULL},
729 {"noborder", &vo_border, CONF_TYPE_FLAG, 0, 1, 0, NULL},
731 {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
732 {"mixer-channel", &mixer_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
733 {"softvol", &soft_vol, CONF_TYPE_FLAG, 0, 0, 1, NULL},
734 {"nosoftvol", &soft_vol, CONF_TYPE_FLAG, 0, 1, 0, NULL},
735 {"softvol-max", &soft_vol_max, CONF_TYPE_FLOAT, CONF_RANGE, 10, 10000, NULL},
736 {"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
737 {"volume", &start_volume, CONF_TYPE_FLOAT, CONF_RANGE, -1, 10000, NULL},
738 OPT_MAKE_FLAGS("gapless-audio", gapless_audio, 0),
739 // override audio buffer size (used only by -ao oss/win32, obsolete)
740 OPT_INT("abs", ao_buffersize, 0),
742 {"edlout", &edl_output_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
744 #ifdef CONFIG_X11
745 {"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},
746 #endif
748 #if defined(CONFIG_FBDEV) || defined(CONFIG_VESA)
749 {"monitor-hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
750 {"monitor-vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
751 {"monitor-dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
752 #endif
754 #ifdef CONFIG_FBDEV
755 {"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
756 {"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0, NULL},
757 #endif
759 // force window width/height or resolution (with -vm)
760 OPT_INTRANGE("x", screen_size_x, 0, 0, 4096),
761 OPT_INTRANGE("y", screen_size_y, 0, 0, 4096),
762 // set screen dimensions (when not detectable or virtual!=visible)
763 OPT_INTRANGE("screenw", vo_screenwidth, CONF_NOSAVE, 0, 4096),
764 OPT_INTRANGE("screenh", vo_screenheight, CONF_NOSAVE, 0, 4096),
765 // Geometry string
766 {"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL},
767 OPT_MAKE_FLAGS("force-window-position", force_window_position, 0),
768 // vo name (X classname) and window title strings
769 OPT_STRING("name", vo_winname, 0),
770 OPT_STRING("title", vo_wintitle, 0),
771 // set aspect ratio of monitor - useful for 16:9 TV-out
772 OPT_FLOATRANGE("monitoraspect", force_monitor_aspect, 0, 0.0, 9.0),
773 OPT_FLOATRANGE("monitorpixelaspect", monitor_pixel_aspect, 0, 0.2, 9.0),
774 // video mode switching: (x11,xv,dga)
775 OPT_MAKE_FLAGS("vm", vidmode, 0),
776 // start in fullscreen mode:
777 OPT_MAKE_FLAGS("fs", fullscreen, CONF_NOSAVE),
778 // set fullscreen switch method (workaround for buggy WMs)
779 {"fsmode-dontuse", &vo_fsmode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
780 // set bpp (x11+vm, dga, fbdev, vesa, svga?)
781 OPT_INTRANGE("bpp", vo_dbpp, 0, 0, 32),
782 {"colorkey", &vo_colorkey, CONF_TYPE_INT, 0, 0, 0, NULL},
783 {"nocolorkey", &vo_colorkey, CONF_TYPE_FLAG, 0, 0, 0x1000000, NULL},
784 {"double", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 0, 1, NULL},
785 {"nodouble", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 1, 0, NULL},
786 // wait for v-sync (vesa)
787 {"vsync", &vo_vsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
788 {"novsync", &vo_vsync, CONF_TYPE_FLAG, 0, 1, 0, NULL},
789 {"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL},
790 OPT_FLOATRANGE("panscanrange", vo_panscanrange, 0, -19.0, 99.0),
791 OPT_CHOICE("colormatrix", requested_colorspace, 0,
792 ({"auto", MP_CSP_AUTO}, {"0", MP_CSP_AUTO},
793 {"BT.601", MP_CSP_BT_601}, {"sd", MP_CSP_BT_601}, {"1", MP_CSP_BT_601},
794 {"BT.709", MP_CSP_BT_709}, {"hd", MP_CSP_BT_709}, {"2", MP_CSP_BT_709},
795 {"SMPTE-240M", MP_CSP_SMPTE_240M}, {"3", MP_CSP_SMPTE_240M})),
796 OPT_CHOICE("colormatrix-input-range", requested_input_range, 0,
797 ({"auto", MP_CSP_LEVELS_AUTO},
798 {"limited", MP_CSP_LEVELS_TV},
799 {"full", MP_CSP_LEVELS_PC})),
800 OPT_CHOICE("colormatrix-output-range", requested_output_range, 0,
801 ({"auto", MP_CSP_LEVELS_AUTO},
802 {"limited", MP_CSP_LEVELS_TV},
803 {"full", MP_CSP_LEVELS_PC})),
805 {"grabpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
806 {"nograbpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 1, 0, NULL},
808 {"adapter", &vo_adapter_num, CONF_TYPE_INT, CONF_RANGE, 0, 5, NULL},
809 {"refreshrate",&vo_refresh_rate,CONF_TYPE_INT,CONF_RANGE, 0,100, NULL},
810 {"wid", &WinID, CONF_TYPE_INT64, 0, 0, 0, NULL},
811 #ifdef CONFIG_X11
812 {"stop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
813 {"nostop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 1, 0, NULL},
814 {"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
815 #endif
816 {"heartbeat-cmd", &heartbeat_cmd, CONF_TYPE_STRING, 0, 0, 0, NULL},
817 {"mouseinput", &vo_nomouse_input, CONF_TYPE_FLAG, 0, 1, 0, NULL},
818 {"nomouseinput", &vo_nomouse_input, CONF_TYPE_FLAG,0, 0, 1, NULL},
820 {"xineramascreen", &xinerama_screen, CONF_TYPE_INT, CONF_RANGE, -2, 32, NULL},
822 OPT_INTRANGE("brightness", vo_gamma_brightness, 0, -100, 100),
823 OPT_INTRANGE("saturation", vo_gamma_saturation, 0, -100, 100),
824 OPT_INTRANGE("contrast", vo_gamma_contrast, 0, -100, 100),
825 OPT_INTRANGE("hue", vo_gamma_hue, 0, -100, 100),
826 OPT_INTRANGE("gamma", vo_gamma_gamma, 0, -100, 100),
827 {"keepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
828 {"nokeepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},
830 // direct rendering (decoding to video out buffer)
831 {"dr", &vo_directrendering, CONF_TYPE_FLAG, 0, 0, 1, NULL},
832 {"nodr", &vo_directrendering, CONF_TYPE_FLAG, 0, 1, 0, NULL},
834 //---------------------- mplayer-only options ------------------------
836 {"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
837 {"nouse-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
838 {"use-filename-title", &use_filename_title, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
839 {"nouse-filename-title", &use_filename_title, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
840 #ifdef CONFIG_CRASH_DEBUG
841 {"crash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
842 {"nocrash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
843 #endif
844 OPT_INTRANGE("osdlevel", osd_level, 0, 0, 3),
845 OPT_INTRANGE("osd-duration", osd_duration, 0, 0, 3600000),
846 OPT_INTRANGE("osd-fractions", osd_fractions, 0, 0, 2),
848 OPT_STRING("vobsub", vobsub_name, 0),
849 {"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
850 #ifdef CONFIG_UNRAR_EXEC
851 {"unrarexec", &unrar_executable, CONF_TYPE_STRING, 0, 0, 0, NULL},
852 #endif
854 {"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
856 {"framedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 1, NULL},
857 {"hardframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 2, NULL},
858 {"noframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 1, 0, NULL},
860 OPT_INTRANGE("autoq", auto_quality, 0, 0, 100),
862 OPT_FLAG_ON("benchmark", benchmark, 0),
864 // dump some stream out instead of playing the file
865 OPT_STRING("dumpfile", stream_dump_name, 0),
866 {"dumpaudio", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 1, NULL},
867 {"dumpvideo", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 2, NULL},
868 {"dumpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 3, NULL},
869 {"dumpmpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 4, NULL},
870 {"dumpstream", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 5, NULL},
871 {"dumpsrtsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 6, NULL},
872 {"dumpmicrodvdsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 7, NULL},
873 {"dumpjacosub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 8, NULL},
874 {"dumpsami", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 9, NULL},
876 OPT_MAKE_FLAGS("capture", capture_dump, 0),
878 #ifdef CONFIG_LIRC
879 {"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
880 #endif
882 {"leak-report", "", CONF_TYPE_PRINT, 0, 0, 0, (void*)1},
883 // these should be removed when gmplayer is forgotten
884 {"gui", "Internal GUI was removed. Use some other frontend instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
885 {"nogui", "Internal GUI was removed, -nogui is no longer valid.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
887 OPT_FLAG_CONSTANTS("noloop", loop_times, 0, 0, -1),
888 OPT_INTRANGE("loop", loop_times, 0, -1, 10000),
889 {"playlist", NULL, CONF_TYPE_STRING, CONF_NOCFG, 0, 0, NULL},
890 {"shuffle", NULL, CONF_TYPE_FLAG, CONF_NOCFG, 0, 0, NULL},
891 {"noshuffle", NULL, CONF_TYPE_FLAG, CONF_NOCFG, 0, 0, NULL},
893 OPT_MAKE_FLAGS("ordered-chapters", ordered_chapters, 0),
894 OPT_INTRANGE("chapter-merge-threshold", chapter_merge_threshold, 0, 0, 10000),
896 // a-v sync stuff:
897 OPT_MAKE_FLAGS("correct-pts", user_correct_pts, 0),
898 OPT_CHOICE("pts-association-mode", user_pts_assoc_mode, 0,
899 ({"auto", 0}, {"decoder", 1}, {"sort", 2})),
900 OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync, 0),
901 OPT_CHOICE("hr-seek", hr_seek, 0,
902 ({"off", -1}, {"absolute", 0}, {"always", 1}, {"on", 1})),
903 OPT_FLOATRANGE("hr-seek-demuxer-offset", hr_seek_demuxer_offset, 0, -9, 99),
904 OPT_FLAG_CONSTANTS("noautosync", autosync, 0, 0, -1),
905 OPT_INTRANGE("autosync", autosync, 0, 0, 10000),
907 OPT_FLAG_ON("softsleep", softsleep, 0),
908 #ifdef HAVE_RTC
909 OPT_MAKE_FLAGS("rtc", rtc, 0),
910 OPT_STRING("rtc-device", rtc_device, 0),
911 #endif
913 OPT_MAKE_FLAGS("term-osd", term_osd, 0),
914 OPT_STRING("term-osd-esc", term_osd_esc, 0),
915 OPT_STRING("playing-msg", playing_msg, 0),
917 {"slave", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL},
918 OPT_MAKE_FLAGS("idle", player_idle_mode, CONF_GLOBAL),
919 OPT_INTRANGE("key-fifo-size", input.key_fifo_size, CONF_GLOBAL, 2, 65000),
920 OPT_MAKE_FLAGS("consolecontrols", consolecontrols, CONF_GLOBAL),
921 {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
922 {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
923 OPT_INTRANGE("doubleclick-time", doubleclick_time, 0, 0, 1000),
924 #ifdef CONFIG_TV
925 {"tvscan", (void *) tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
926 #else
927 {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
928 #endif /* CONFIG_TV */
930 OPT_FLAG_ON("list-properties", list_properties, CONF_GLOBAL),
931 {"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL},
932 {"help", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
933 {"h", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
935 {NULL, NULL, 0, 0, 0, 0, NULL}
938 #endif /* MPLAYER_CFG_MPLAYER_H */