ad_liba52: Fix -ac a52 with tags other than 0x2000 or dnet
[mplayer/greg.git] / cfg-common.h
blobe56d87b3de97c672a0c105f8b3e02d7cbc6eb593
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_COMMON_H
20 #define MPLAYER_CFG_COMMON_H
22 #include <sys/types.h>
23 #include "config.h"
24 #include "m_config.h"
25 #include "m_option.h"
27 #include "libmpdemux/demux_ts.h"
29 extern char *mp_msg_charset;
30 extern int mp_msg_color;
31 extern int mp_msg_module;
33 /* defined in codec-cfg.c */
34 extern char * codecs_file;
36 /* defined in dec_video.c */
37 extern int field_dominance;
39 /* from dec_audio, currently used for ac3surround decoder only */
40 extern int fakemono;
42 /* defined in network.c */
43 extern char *network_username;
44 extern char *network_password;
45 extern int network_bandwidth;
46 extern char *network_useragent;
47 extern char *network_referrer;
48 extern int network_cookies_enabled;
49 extern char *cookies_file;
51 extern int network_prefer_ipv4;
52 extern int network_ipv4_only_proxy;
53 extern int reuse_socket;
55 extern int dvd_speed; /* stream/stream_dvd.c */
57 /* defined in libmpdemux: */
58 extern const m_option_t demux_rawaudio_opts[];
59 extern const m_option_t demux_rawvideo_opts[];
60 extern const m_option_t cdda_opts[];
62 extern int demuxer_type, audio_demuxer_type, sub_demuxer_type;
63 extern int ts_prog;
64 extern int ts_keep_broken;
65 extern off_t ts_probe;
66 extern int audio_substream_id;
67 extern off_t ps_probe;
69 extern int sws_flags;
70 extern char* pp_help;
73 #include "stream/tv.h"
74 #include "stream/stream_radio.h"
78 #ifdef CONFIG_RADIO
79 const m_option_t radioopts_conf[]={
80 {"device", &stream_radio_defaults.device, CONF_TYPE_STRING, 0, 0 ,0, NULL},
81 {"driver", &stream_radio_defaults.driver, CONF_TYPE_STRING, 0, 0 ,0, NULL},
82 #ifdef RADIO_BSDBT848_HDR
83 {"freq_min", &stream_radio_defaults.freq_min, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
84 {"freq_max", &stream_radio_defaults.freq_max, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
85 #endif
86 {"channels", &stream_radio_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0 ,0, NULL},
87 {"volume", &stream_radio_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0 ,100, NULL},
88 {"adevice", &stream_radio_defaults.adevice, CONF_TYPE_STRING, 0, 0 ,0, NULL},
89 {"arate", &stream_radio_defaults.arate, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
90 {"achannels", &stream_radio_defaults.achannels, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
91 {NULL, NULL, 0, 0, 0, 0, NULL}
93 #endif /* CONFIG_RADIO */
95 #ifdef CONFIG_TV
96 const m_option_t tvopts_conf[]={
97 {"on", "-tv on has been removed, use tv:// instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
98 {"immediatemode", &stream_tv_defaults.immediate, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},
99 {"noaudio", &stream_tv_defaults.noaudio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
100 {"audiorate", &stream_tv_defaults.audiorate, CONF_TYPE_INT, 0, 0, 0, NULL},
101 {"driver", &stream_tv_defaults.driver, CONF_TYPE_STRING, 0, 0, 0, NULL},
102 {"device", &stream_tv_defaults.device, CONF_TYPE_STRING, 0, 0, 0, NULL},
103 {"freq", &stream_tv_defaults.freq, CONF_TYPE_STRING, 0, 0, 0, NULL},
104 {"channel", &stream_tv_defaults.channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
105 {"chanlist", &stream_tv_defaults.chanlist, CONF_TYPE_STRING, 0, 0, 0, NULL},
106 {"norm", &stream_tv_defaults.norm, CONF_TYPE_STRING, 0, 0, 0, NULL},
107 {"automute", &stream_tv_defaults.automute, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
108 #if defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
109 {"normid", &stream_tv_defaults.normid, CONF_TYPE_INT, 0, 0, 0, NULL},
110 #endif
111 {"width", &stream_tv_defaults.width, CONF_TYPE_INT, 0, 0, 4096, NULL},
112 {"height", &stream_tv_defaults.height, CONF_TYPE_INT, 0, 0, 4096, NULL},
113 {"input", &stream_tv_defaults.input, CONF_TYPE_INT, 0, 0, 20, NULL},
114 {"outfmt", &stream_tv_defaults.outfmt, CONF_TYPE_IMGFMT, 0, 0, 0, NULL},
115 {"fps", &stream_tv_defaults.fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
116 {"channels", &stream_tv_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
117 {"brightness", &stream_tv_defaults.brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
118 {"contrast", &stream_tv_defaults.contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
119 {"hue", &stream_tv_defaults.hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
120 {"saturation", &stream_tv_defaults.saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
121 {"gain", &stream_tv_defaults.gain, CONF_TYPE_INT, CONF_RANGE, -1, 100, NULL},
122 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
123 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
124 {"amode", &stream_tv_defaults.amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
125 {"volume", &stream_tv_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
126 #endif
127 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2)
128 {"bass", &stream_tv_defaults.bass, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
129 {"treble", &stream_tv_defaults.treble, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
130 {"balance", &stream_tv_defaults.balance, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
131 {"forcechan", &stream_tv_defaults.forcechan, CONF_TYPE_INT, CONF_RANGE, 1, 2, NULL},
132 {"forceaudio", &stream_tv_defaults.force_audio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
133 {"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
134 {"mjpeg", &stream_tv_defaults.mjpeg, CONF_TYPE_FLAG, 0, 0, 1, NULL},
135 {"decimation", &stream_tv_defaults.decimation, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL},
136 {"quality", &stream_tv_defaults.quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
137 #ifdef CONFIG_ALSA
138 {"alsa", &stream_tv_defaults.alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL},
139 #endif /* CONFIG_ALSA */
140 #endif /* defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) */
141 {"adevice", &stream_tv_defaults.adevice, CONF_TYPE_STRING, 0, 0, 0, NULL},
142 {"tdevice", &stream_tv_defaults.teletext.device, CONF_TYPE_STRING, 0, 0, 0, NULL},
143 {"tpage", &stream_tv_defaults.teletext.page, CONF_TYPE_INT, CONF_RANGE, 100, 899, NULL},
144 {"tformat", &stream_tv_defaults.teletext.format, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
145 {"tlang", &stream_tv_defaults.teletext.lang, CONF_TYPE_INT, CONF_RANGE, -1, 0x7f, NULL},
146 {"audioid", &stream_tv_defaults.audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL},
147 #ifdef CONFIG_TV_DSHOW
148 {"hidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
149 {"nohidden_video_renderer", &stream_tv_defaults.hidden_video_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL},
150 {"hidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
151 {"nohidden_vp_renderer", &stream_tv_defaults.hidden_vp_renderer, CONF_TYPE_FLAG, 0, 0, 0, NULL},
152 {"system_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 1, NULL},
153 {"nosystem_clock", &stream_tv_defaults.system_clock, CONF_TYPE_FLAG, 0, 0, 0, NULL},
154 {"normalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 1, NULL},
155 {"nonormalize_audio_chunks", &stream_tv_defaults.normalize_audio_chunks, CONF_TYPE_FLAG, 0, 0, 0, NULL},
156 #endif
157 {NULL, NULL, 0, 0, 0, 0, NULL}
159 #endif /* CONFIG_TV */
161 extern int pvr_param_aspect_ratio;
162 extern int pvr_param_sample_rate;
163 extern int pvr_param_audio_layer;
164 extern int pvr_param_audio_bitrate;
165 extern char *pvr_param_audio_mode;
166 extern int pvr_param_bitrate;
167 extern char *pvr_param_bitrate_mode;
168 extern int pvr_param_bitrate_peak;
169 extern char *pvr_param_stream_type;
171 #ifdef CONFIG_PVR
172 const m_option_t pvropts_conf[]={
173 {"aspect", &pvr_param_aspect_ratio, CONF_TYPE_INT, 0, 1, 4, NULL},
174 {"arate", &pvr_param_sample_rate, CONF_TYPE_INT, 0, 32000, 48000, NULL},
175 {"alayer", &pvr_param_audio_layer, CONF_TYPE_INT, 0, 1, 2, NULL},
176 {"abitrate", &pvr_param_audio_bitrate, CONF_TYPE_INT, 0, 32, 448, NULL},
177 {"amode", &pvr_param_audio_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
178 {"vbitrate", &pvr_param_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
179 {"vmode", &pvr_param_bitrate_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
180 {"vpeak", &pvr_param_bitrate_peak, CONF_TYPE_INT, 0, 0, 0, NULL},
181 {"fmt", &pvr_param_stream_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
182 {NULL, NULL, 0, 0, 0, 0, NULL}
184 #endif /* CONFIG_PVR */
186 extern const m_option_t dvbin_opts_conf[];
187 extern const m_option_t lavfdopts_conf[];
189 extern int rtsp_transport_tcp;
190 extern int rtsp_transport_http;
191 extern int rtsp_transport_sctp;
192 extern int rtsp_port;
193 extern char *rtsp_destination;
196 extern int sws_chr_vshift;
197 extern int sws_chr_hshift;
198 extern float sws_chr_gblur;
199 extern float sws_lum_gblur;
200 extern float sws_chr_sharpen;
201 extern float sws_lum_sharpen;
203 const m_option_t scaler_filter_conf[]={
204 {"lgb", &sws_lum_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
205 {"cgb", &sws_chr_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
206 {"cvs", &sws_chr_vshift, CONF_TYPE_INT, 0, 0, 0, NULL},
207 {"chs", &sws_chr_hshift, CONF_TYPE_INT, 0, 0, 0, NULL},
208 {"ls", &sws_lum_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
209 {"cs", &sws_chr_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
210 {NULL, NULL, 0, 0, 0, 0, NULL}
213 /* VIVO demuxer options: */
214 extern int vivo_param_version;
215 extern char *vivo_param_acodec;
216 extern int vivo_param_abitrate;
217 extern int vivo_param_samplerate;
218 extern int vivo_param_bytesperblock;
219 extern int vivo_param_width;
220 extern int vivo_param_height;
221 extern int vivo_param_vformat;
222 extern char *dvd_device, *cdrom_device;
224 const m_option_t vivoopts_conf[]={
225 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0, NULL},
226 /* audio options */
227 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0, NULL},
228 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
229 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0, NULL},
230 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0, NULL},
231 /* video options */
232 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0, NULL},
233 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0, NULL},
234 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0, NULL},
235 {NULL, NULL, 0, 0, 0, 0, NULL}
238 extern int mf_w;
239 extern int mf_h;
240 extern double mf_fps;
241 extern char * mf_type;
242 extern m_obj_list_t vf_obj_list;
244 const m_option_t mfopts_conf[]={
245 {"on", "-mf on has been removed, use mf:// instead.\n", CONF_TYPE_PRINT, 0, 0, 1, NULL},
246 {"w", &mf_w, CONF_TYPE_INT, 0, 0, 0, NULL},
247 {"h", &mf_h, CONF_TYPE_INT, 0, 0, 0, NULL},
248 {"fps", &mf_fps, CONF_TYPE_DOUBLE, 0, 0, 0, NULL},
249 {"type", &mf_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
250 {NULL, NULL, 0, 0, 0, 0, NULL}
253 #include "libaf/af.h"
254 extern af_cfg_t af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
255 const m_option_t audio_filter_conf[]={
256 {"list", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
257 {"force", &af_cfg.force, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
258 {NULL, NULL, 0, 0, 0, 0, NULL}
261 extern int mp_msg_levels[MSGT_MAX];
262 extern int mp_msg_level_all;
264 const m_option_t msgl_config[]={
265 { "all", &mp_msg_level_all, CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL},
267 { "global", &mp_msg_levels[MSGT_GLOBAL], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
268 { "cplayer", &mp_msg_levels[MSGT_CPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
269 { "vo", &mp_msg_levels[MSGT_VO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
270 { "ao", &mp_msg_levels[MSGT_AO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
271 { "demuxer", &mp_msg_levels[MSGT_DEMUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
272 { "ds", &mp_msg_levels[MSGT_DS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
273 { "demux", &mp_msg_levels[MSGT_DEMUX], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
274 { "header", &mp_msg_levels[MSGT_HEADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
275 { "avsync", &mp_msg_levels[MSGT_AVSYNC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
276 { "autoq", &mp_msg_levels[MSGT_AUTOQ], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
277 { "cfgparser", &mp_msg_levels[MSGT_CFGPARSER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
278 { "decaudio", &mp_msg_levels[MSGT_DECAUDIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
279 { "decvideo", &mp_msg_levels[MSGT_DECVIDEO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
280 { "seek", &mp_msg_levels[MSGT_SEEK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
281 { "win32", &mp_msg_levels[MSGT_WIN32], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
282 { "open", &mp_msg_levels[MSGT_OPEN], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
283 { "dvd", &mp_msg_levels[MSGT_DVD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
284 { "parsees", &mp_msg_levels[MSGT_PARSEES], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
285 { "lirc", &mp_msg_levels[MSGT_LIRC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
286 { "stream", &mp_msg_levels[MSGT_STREAM], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
287 { "cache", &mp_msg_levels[MSGT_CACHE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
288 { "xacodec", &mp_msg_levels[MSGT_XACODEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
289 { "tv", &mp_msg_levels[MSGT_TV], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
290 { "radio", &mp_msg_levels[MSGT_RADIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
291 { "osdep", &mp_msg_levels[MSGT_OSDEP], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
292 { "spudec", &mp_msg_levels[MSGT_SPUDEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
293 { "playtree", &mp_msg_levels[MSGT_PLAYTREE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
294 { "input", &mp_msg_levels[MSGT_INPUT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
295 { "vfilter", &mp_msg_levels[MSGT_VFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
296 { "osd", &mp_msg_levels[MSGT_OSD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
297 { "network", &mp_msg_levels[MSGT_NETWORK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
298 { "cpudetect", &mp_msg_levels[MSGT_CPUDETECT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
299 { "codeccfg", &mp_msg_levels[MSGT_CODECCFG], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
300 { "sws", &mp_msg_levels[MSGT_SWS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
301 { "vobsub", &mp_msg_levels[MSGT_VOBSUB], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
302 { "subreader", &mp_msg_levels[MSGT_SUBREADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
303 { "afilter", &mp_msg_levels[MSGT_AFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
304 { "netst", &mp_msg_levels[MSGT_NETST], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
305 { "muxer", &mp_msg_levels[MSGT_MUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
306 { "osd-menu", &mp_msg_levels[MSGT_OSD_MENU], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
307 { "identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
308 { "ass", &mp_msg_levels[MSGT_ASS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
309 { "statusline", &mp_msg_levels[MSGT_STATUSLINE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
310 { "fixme", &mp_msg_levels[MSGT_FIXME], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
311 {"help", "Available msg modules:\n"
312 " global - common player errors/information\n"
313 " cplayer - console player (mplayer.c)\n"
314 " vo - libvo\n"
315 " ao - libao\n"
316 " demuxer - demuxer.c (general stuff)\n"
317 " ds - demux stream (add/read packet etc)\n"
318 " demux - fileformat-specific stuff (demux_*.c)\n"
319 " header - fileformat-specific header (*header.c)\n"
320 " avsync - mplayer.c timer stuff\n"
321 " autoq - mplayer.c auto-quality stuff\n"
322 " cfgparser - cfgparser.c\n"
323 " decaudio - av decoder\n"
324 " decvideo\n"
325 " seek - seeking code\n"
326 " win32 - win32 dll stuff\n"
327 " open - open.c (stream opening)\n"
328 " dvd - open.c (DVD init/read/seek)\n"
329 " parsees - parse_es.c (mpeg stream parser)\n"
330 " lirc - lirc_mp.c and input lirc driver\n"
331 " stream - stream.c\n"
332 " cache - cache2.c\n"
333 " xacodec - XAnim codecs\n"
334 " tv - TV input subsystem\n"
335 " osdep - OS-dependent parts\n"
336 " spudec - spudec.c\n"
337 " playtree - Playtree handling (playtree.c, playtreeparser.c)\n"
338 " input\n"
339 " vfilter\n"
340 " osd\n"
341 " network\n"
342 " cpudetect\n"
343 " codeccfg\n"
344 " sws\n"
345 " vobsub\n"
346 " subreader\n"
347 " osd-menu - OSD menu messages\n"
348 " afilter - Audio filter messages\n"
349 " netst - Netstream\n"
350 " muxer - muxer layer\n"
351 " identify - identify output\n"
352 " ass - libass messages\n"
353 " statusline - playback/encoding status line\n"
354 " fixme - messages not yet fixed to map to module\n"
355 "\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
356 {NULL, NULL, 0, 0, 0, 0, NULL}
360 extern const m_option_t noconfig_opts[];
362 extern const m_option_t lavc_decode_opts_conf[];
363 extern const m_option_t xvid_dec_opts[];
365 const m_option_t common_opts[] = {
366 // ------------------------- common options --------------------
367 OPT_MAKE_FLAGS("quiet", quiet, CONF_GLOBAL),
368 {"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_PRE_PARSE, 0, -10, NULL},
369 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL},
370 {"msglevel", (void *) msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
371 {"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
372 {"nomsgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
373 {"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
374 {"nomsgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
375 #ifdef CONFIG_ICONV
376 {"msgcharset", &mp_msg_charset, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
377 #endif
378 #ifdef CONFIG_PRIORITY
379 {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
380 #endif
381 {"codecpath", &codec_path, CONF_TYPE_STRING, 0, 0, 0, NULL},
382 OPT_CHOICE("noconfig", noconfig, CONF_GLOBAL | CONF_NOCFG | CONF_PRE_PARSE,
383 ({"off", 0}, {"user", 1}, {"system", 2}, {"all", 3})),
385 // ------------------------- stream options --------------------
387 #ifdef CONFIG_STREAM_CACHE
388 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL},
389 {"nocache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL},
390 OPT_FLOATRANGE("cache-min", stream_cache_min_percent, 0, 0, 99),
391 OPT_FLOATRANGE("cache-seek-min", stream_cache_seek_min_percent, 0, 0, 99),
392 #else
393 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
394 #endif /* CONFIG_STREAM_CACHE */
395 {"vcd", "-vcd N has been removed, use vcd://N instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL},
396 {"cuefile", "-cuefile has been removed, use cue://filename:N where N is the track number.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
397 {"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
398 #ifdef CONFIG_DVDREAD
399 {"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
400 {"dvd-speed", &dvd_speed, CONF_TYPE_INT, 0, 0, 0, NULL},
401 {"dvd", "-dvd N has been removed, use dvd://N instead.\n" , CONF_TYPE_PRINT, 0, 0, 0, NULL},
402 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
403 #else
404 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
405 {"dvd-speed", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
406 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
407 #endif /* CONFIG_DVDREAD */
408 OPT_INTPAIR("chapter", chapterrange, 0),
409 OPT_INTRANGE("edition", edition_id, 0, -1, 8190),
410 #ifdef CONFIG_LIBBLURAY
411 {"bluray-device", &bluray_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
412 {"bluray-angle", &bluray_angle, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
413 {"bluray-chapter", &bluray_chapter, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
414 #else
415 {"bluray-device", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
416 {"bluray-angle", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
417 {"bluray-chapter", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
418 #endif /* CONFIG_LIBBLURAY */
420 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
421 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
422 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
424 #ifdef CONFIG_NETWORKING
425 {"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
426 {"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
427 {"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
428 {"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL},
429 {"referrer", &network_referrer, CONF_TYPE_STRING, 0, 0, 0, NULL},
430 {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
431 {"nocookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
432 {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
433 {"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
434 {"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL},
435 {"reuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
436 {"noreuse-socket", &reuse_socket, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
437 #ifdef HAVE_AF_INET6
438 {"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
439 #else
440 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
441 #endif /* HAVE_AF_INET6 */
443 #else
444 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
445 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
446 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
447 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
448 #endif /* CONFIG_NETWORKING */
450 #ifdef CONFIG_LIVE555
451 {"sdp", "-sdp has been removed, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
452 {"rtsp-stream-over-http", &rtsp_transport_http, CONF_TYPE_FLAG, 0, 0, 1, NULL},
453 #else
454 {"rtsp-stream-over-http", "-rtsp-stream-over-http requires the \"LIVE555 Streaming Media\" library.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
455 #endif /* CONFIG_LIVE555 */
456 #if defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555)
457 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
458 {"rtsp-stream-over-tcp", &rtsp_transport_tcp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
459 #else
460 {"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},
461 #endif /* defined(CONFIG_LIBNEMESI) || defined(CONFIG_LIVE555) */
462 #ifdef CONFIG_LIBNEMESI
463 {"rtsp-stream-over-sctp", &rtsp_transport_sctp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
464 #else
465 {"rtsp-stream-over-sctp", "-rtsp-stream-over-sctp requires the \"libnemesi\" library\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
466 #endif /* CONFIG_LIBNEMESI */
467 #ifdef CONFIG_NETWORKING
468 {"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
469 {"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
470 #else
471 {"rtsp-port", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
472 {"rtsp-destination", "MPlayer was compiled without networking support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
473 #endif /* CONFIG_NETWORKING */
475 // ------------------------- demuxer options --------------------
477 // number of frames to play/convert
478 {"frames", &play_n_frames_mf, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
480 // seek to byte/seconds position
481 {"sb", &seek_to_byte, CONF_TYPE_POSITION, CONF_MIN, 0, 0, NULL},
482 {"ss", &seek_to_sec, CONF_TYPE_TIME, 0, 0, 0, NULL},
484 // stop at given position
485 {"endpos", &end_at, CONF_TYPE_TIME_SIZE, 0, 0, 0, NULL},
487 {"edl", &edl_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
489 // AVI specific: force non-interleaved mode
490 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},
491 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0, NULL},
493 // AVI and Ogg only: (re)build index at startup
494 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0, NULL},
495 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL},
496 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL},
497 {"saveidx", &index_file_save, CONF_TYPE_STRING, 0, 0, 0, NULL},
498 {"loadidx", &index_file_load, CONF_TYPE_STRING, 0, 0, 0, NULL},
500 // select audio/video/subtitle stream
501 OPT_INTRANGE("aid", audio_id, 0, -2, 8190),
502 {"ausid", &audio_substream_id, CONF_TYPE_INT, 0, 0, 0, NULL},
503 OPT_INTRANGE("vid", video_id, 0, -2, 8190),
504 OPT_INTRANGE("sid", sub_id, 0, -2, 8190),
505 OPT_FLAG_CONSTANTS("nosub", sub_id, 0, -1, -2),
506 OPT_FLAG_CONSTANTS("novideo", video_id, 0, -1, -2),
507 OPT_FLAG_CONSTANTS("sound", audio_id, 0, -2, -1),
508 OPT_FLAG_CONSTANTS("nosound", audio_id, 0, -1, -2),
509 OPT_STRING("alang", audio_lang, 0),
510 OPT_STRING("slang", sub_lang, 0),
512 OPT_MAKE_FLAGS("hr-mp3-seek", hr_mp3_seek, 0),
514 { "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
515 { "rawvideo", &demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
517 #ifdef CONFIG_CDDA
518 { "cdda", &cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
519 #endif
521 // demuxer.c - select audio/sub file/demuxer
522 OPT_STRING("audiofile", audio_stream, 0),
523 OPT_INTRANGE("audiofile-cache", audio_stream_cache, 0, 50, 65536),
524 OPT_STRING("subfile", sub_stream, 0),
525 OPT_STRING("demuxer", demuxer_name, 0),
526 OPT_STRING("audio-demuxer", audio_demuxer_name, 0),
527 OPT_STRING("sub-demuxer", sub_demuxer_name, 0),
528 OPT_MAKE_FLAGS("extbased", extension_parsing, 0),
530 {"mf", (void *) mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL},
531 #ifdef CONFIG_RADIO
532 {"radio", radioopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
533 #else
534 {"radio", "MPlayer was compiled without Radio interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
535 #endif /* CONFIG_RADIO */
536 #ifdef CONFIG_TV
537 {"tv", (void *) tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
538 #else
539 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
540 #endif /* CONFIG_TV */
541 #ifdef CONFIG_PVR
542 {"pvr", (void *) pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
543 #else
544 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
545 #endif /* CONFIG_PVR */
546 {"vivo", (void *) vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
547 #ifdef CONFIG_DVBIN
548 {"dvbin", (void *) dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
549 #endif
551 // ------------------------- a-v sync options --------------------
553 // AVI specific: A-V sync mode (bps vs. interleaving)
554 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},
555 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0, NULL},
557 // set A-V sync correction speed (0=disables it):
558 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
560 // force video/audio rate:
561 {"fps", &force_fps, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL},
562 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
563 OPT_INTRANGE("channels", audio_output_channels, 0, 1, 8),
564 OPT_AUDIOFORMAT("format", audio_output_format, 0),
565 OPT_FLOATRANGE("speed", playback_speed, 0, 0.01, 100.0),
567 // set a-v distance
568 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
570 // ignore header-specified delay (dwStart)
571 {"ignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 0, 1, NULL},
572 {"noignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 1, 0, NULL},
574 OPT_FLOATRANGE("a52drc", drc_level, 0, 0, 2),
576 // ------------------------- codec/vfilter options --------------------
578 // MP3-only: select stereo/left/right
579 #ifdef CONFIG_FAKE_MONO
580 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
581 #endif
583 {"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
584 {"af-adv", (void *) audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
586 {"vop", "-vop has been removed, use -vf instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL},
587 OPT_SETTINGSLIST("vf*", vf_settings, 0, &vf_obj_list),
588 // select audio/video codec (by name) or codec family (by number):
589 {"afm", &audio_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
590 {"vfm", &video_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
591 {"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
592 {"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
594 // postprocessing:
595 #ifdef CONFIG_FFMPEG
596 {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},
597 {"pphelp", &pp_help, CONF_TYPE_PRINT_INDIRECT, CONF_NOCFG, 0, 0, NULL},
598 #endif
600 // scaling:
601 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL},
602 {"ssf", (void *) scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
603 OPT_MAKE_FLAGS("zoom", softzoom, 0),
604 OPT_FLOATRANGE("aspect", movie_aspect, 0, 0.2, 3.0),
605 OPT_FLAG_CONSTANTS("noaspect", movie_aspect, 0, 0, 0),
606 OPT_FLOATRANGE("xy", screen_size_xy, 0, 0.001, 4096),
608 OPT_FLAG_CONSTANTS("flip", flip, 0, -1, 1),
609 OPT_FLAG_CONSTANTS("noflip", flip, 0, -1, 0),
610 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL
612 {"tsprog", &ts_prog, CONF_TYPE_INT, CONF_RANGE, 0, 65534, NULL},
613 {"tsprobe", &ts_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
614 {"psprobe", &ps_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
615 {"tskeepbroken", &ts_keep_broken, CONF_TYPE_FLAG, 0, 0, 1, NULL},
617 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
618 OPT_MAKE_FLAGS("slices", vd_use_slices, 0),
619 {"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
621 #ifdef CONFIG_FFMPEG
622 {"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
623 {"lavfdopts", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
624 #endif
625 #ifdef CONFIG_XVID4
626 {"xvidopts", 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 {"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
632 #ifdef CONFIG_FRIBIDI
633 {"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
634 {"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
635 {"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
636 {"flip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
637 {"noflip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
638 #else
639 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
640 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
641 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
642 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
643 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
644 #endif /* CONFIG_FRIBIDI */
645 #ifdef CONFIG_ICONV
646 {"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
647 #endif
648 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
649 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
650 {"autosub", &sub_auto, CONF_TYPE_FLAG, 0, 0, 1, NULL},
651 {"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0, NULL},
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 #ifdef CONFIG_ASS
686 OPT_MAKE_FLAGS("ass", ass_enabled, 0),
687 {"ass-font-scale", &ass_font_scale, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
688 {"ass-line-spacing", &ass_line_spacing, CONF_TYPE_FLOAT, CONF_RANGE, -1000, 1000, NULL},
689 {"ass-top-margin", &ass_top_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
690 {"ass-bottom-margin", &ass_bottom_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
691 {"ass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 0, 1, NULL},
692 {"noass-use-margins", &ass_use_margins, CONF_TYPE_FLAG, 0, 1, 0, NULL},
693 {"embeddedfonts", &use_embedded_fonts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
694 {"noembeddedfonts", &use_embedded_fonts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
695 {"ass-force-style", &ass_force_style_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
696 {"ass-color", &ass_color, CONF_TYPE_STRING, 0, 0, 0, NULL},
697 {"ass-border-color", &ass_border_color, CONF_TYPE_STRING, 0, 0, 0, NULL},
698 {"ass-styles", &ass_styles_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
699 {"ass-hinting", &ass_hinting, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
700 #endif
701 #ifdef CONFIG_FONTCONFIG
702 {"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, -1, 1, NULL},
703 {"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, -1, NULL},
704 #else
705 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
706 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
707 #endif /* CONFIG_FONTCONFIG */
708 {NULL, NULL, 0, 0, 0, 0, NULL}
711 #endif /* MPLAYER_CFG_COMMON_H */