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"
36 #include "libvo/csputils.h"
38 extern char *lirc_configfile
;
40 /* only used at startup (setting these values from configfile) */
41 extern char *vo_geometry
;
42 extern int stop_xscreensaver
;
44 extern char *unrar_executable
;
46 extern char *mp_msg_charset
;
47 extern int mp_msg_color
;
48 extern int mp_msg_module
;
50 /* defined in codec-cfg.c */
51 extern char *codecs_file
;
53 /* defined in dec_video.c */
54 extern int field_dominance
;
56 /* from dec_audio, currently used for ac3surround decoder only */
59 /* defined in network.c */
60 extern char *network_username
;
61 extern char *network_password
;
62 extern int network_bandwidth
;
63 extern char *network_useragent
;
64 extern char *network_referrer
;
65 extern int network_cookies_enabled
;
66 extern char *cookies_file
;
68 extern int network_prefer_ipv4
;
69 extern int network_ipv4_only_proxy
;
70 extern int reuse_socket
;
72 extern int dvd_speed
; /* stream/stream_dvd.c */
74 /* defined in libmpdemux: */
75 extern const m_option_t demux_rawaudio_opts
[];
76 extern const m_option_t demux_rawvideo_opts
[];
77 extern const m_option_t cdda_opts
[];
80 extern int ts_keep_broken
;
81 extern off_t ts_probe
;
82 extern int audio_substream_id
;
83 extern off_t ps_probe
;
86 extern const char pp_help
[];
89 const m_option_t radioopts_conf
[]={
90 {"device", &stream_radio_defaults
.device
, CONF_TYPE_STRING
, 0, 0 ,0, NULL
},
91 {"driver", &stream_radio_defaults
.driver
, CONF_TYPE_STRING
, 0, 0 ,0, NULL
},
92 #ifdef RADIO_BSDBT848_HDR
93 {"freq_min", &stream_radio_defaults
.freq_min
, CONF_TYPE_FLOAT
, 0, 0 ,0, NULL
},
94 {"freq_max", &stream_radio_defaults
.freq_max
, CONF_TYPE_FLOAT
, 0, 0 ,0, NULL
},
96 {"channels", &stream_radio_defaults
.channels
, CONF_TYPE_STRING_LIST
, 0, 0 ,0, NULL
},
97 {"volume", &stream_radio_defaults
.volume
, CONF_TYPE_INT
, CONF_RANGE
, 0 ,100, NULL
},
98 {"adevice", &stream_radio_defaults
.adevice
, CONF_TYPE_STRING
, 0, 0 ,0, NULL
},
99 {"arate", &stream_radio_defaults
.arate
, CONF_TYPE_INT
, CONF_MIN
, 0 ,0, NULL
},
100 {"achannels", &stream_radio_defaults
.achannels
, CONF_TYPE_INT
, CONF_MIN
, 0 ,0, NULL
},
101 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
103 #endif /* CONFIG_RADIO */
106 const m_option_t tvopts_conf
[]={
107 {"immediatemode", &stream_tv_defaults
.immediate
, CONF_TYPE_INT
, CONF_RANGE
, 0, 1, NULL
},
108 {"noaudio", &stream_tv_defaults
.noaudio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
109 {"audiorate", &stream_tv_defaults
.audiorate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
110 {"driver", &stream_tv_defaults
.driver
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
111 {"device", &stream_tv_defaults
.device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
112 {"freq", &stream_tv_defaults
.freq
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
113 {"channel", &stream_tv_defaults
.channel
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
114 {"chanlist", &stream_tv_defaults
.chanlist
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
115 {"norm", &stream_tv_defaults
.norm
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
116 {"automute", &stream_tv_defaults
.automute
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
117 #if defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
118 {"normid", &stream_tv_defaults
.normid
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
120 {"width", &stream_tv_defaults
.width
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
121 {"height", &stream_tv_defaults
.height
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
122 {"input", &stream_tv_defaults
.input
, CONF_TYPE_INT
, 0, 0, 20, NULL
},
123 {"outfmt", &stream_tv_defaults
.outfmt
, CONF_TYPE_IMGFMT
, 0, 0, 0, NULL
},
124 {"fps", &stream_tv_defaults
.fps
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
125 {"channels", &stream_tv_defaults
.channels
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
126 {"brightness", &stream_tv_defaults
.brightness
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
127 {"contrast", &stream_tv_defaults
.contrast
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
128 {"hue", &stream_tv_defaults
.hue
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
129 {"saturation", &stream_tv_defaults
.saturation
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
130 {"gain", &stream_tv_defaults
.gain
, CONF_TYPE_INT
, CONF_RANGE
, -1, 100, NULL
},
131 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) || defined(CONFIG_TV_DSHOW)
132 {"buffersize", &stream_tv_defaults
.buffer_size
, CONF_TYPE_INT
, CONF_RANGE
, 16, 1024, NULL
},
133 {"amode", &stream_tv_defaults
.amode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
134 {"volume", &stream_tv_defaults
.volume
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
136 #if defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2)
137 {"bass", &stream_tv_defaults
.bass
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
138 {"treble", &stream_tv_defaults
.treble
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
139 {"balance", &stream_tv_defaults
.balance
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
140 {"forcechan", &stream_tv_defaults
.forcechan
, CONF_TYPE_INT
, CONF_RANGE
, 1, 2, NULL
},
141 {"forceaudio", &stream_tv_defaults
.force_audio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
142 {"buffersize", &stream_tv_defaults
.buffer_size
, CONF_TYPE_INT
, CONF_RANGE
, 16, 1024, NULL
},
143 {"mjpeg", &stream_tv_defaults
.mjpeg
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
144 {"decimation", &stream_tv_defaults
.decimation
, CONF_TYPE_INT
, CONF_RANGE
, 1, 4, NULL
},
145 {"quality", &stream_tv_defaults
.quality
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
147 {"alsa", &stream_tv_defaults
.alsa
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
148 #endif /* CONFIG_ALSA */
149 #endif /* defined(CONFIG_TV_V4L) || defined(CONFIG_TV_V4L2) */
150 {"adevice", &stream_tv_defaults
.adevice
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
151 {"tdevice", &stream_tv_defaults
.teletext
.device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
152 {"tpage", &stream_tv_defaults
.teletext
.page
, CONF_TYPE_INT
, CONF_RANGE
, 100, 899, NULL
},
153 {"tformat", &stream_tv_defaults
.teletext
.format
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
154 {"tlang", &stream_tv_defaults
.teletext
.lang
, CONF_TYPE_INT
, CONF_RANGE
, -1, 0x7f, NULL
},
155 {"audioid", &stream_tv_defaults
.audio_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 9, NULL
},
156 #ifdef CONFIG_TV_DSHOW
157 {"hidden_video_renderer", &stream_tv_defaults
.hidden_video_renderer
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
158 {"nohidden_video_renderer", &stream_tv_defaults
.hidden_video_renderer
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
159 {"hidden_vp_renderer", &stream_tv_defaults
.hidden_vp_renderer
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
160 {"nohidden_vp_renderer", &stream_tv_defaults
.hidden_vp_renderer
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
161 {"system_clock", &stream_tv_defaults
.system_clock
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
162 {"nosystem_clock", &stream_tv_defaults
.system_clock
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
163 {"normalize_audio_chunks", &stream_tv_defaults
.normalize_audio_chunks
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
164 {"nonormalize_audio_chunks", &stream_tv_defaults
.normalize_audio_chunks
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
166 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
168 #endif /* CONFIG_TV */
170 extern int pvr_param_aspect_ratio
;
171 extern int pvr_param_sample_rate
;
172 extern int pvr_param_audio_layer
;
173 extern int pvr_param_audio_bitrate
;
174 extern char *pvr_param_audio_mode
;
175 extern int pvr_param_bitrate
;
176 extern char *pvr_param_bitrate_mode
;
177 extern int pvr_param_bitrate_peak
;
178 extern char *pvr_param_stream_type
;
181 const m_option_t pvropts_conf
[]={
182 {"aspect", &pvr_param_aspect_ratio
, CONF_TYPE_INT
, 0, 1, 4, NULL
},
183 {"arate", &pvr_param_sample_rate
, CONF_TYPE_INT
, 0, 32000, 48000, NULL
},
184 {"alayer", &pvr_param_audio_layer
, CONF_TYPE_INT
, 0, 1, 2, NULL
},
185 {"abitrate", &pvr_param_audio_bitrate
, CONF_TYPE_INT
, 0, 32, 448, NULL
},
186 {"amode", &pvr_param_audio_mode
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
187 {"vbitrate", &pvr_param_bitrate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
188 {"vmode", &pvr_param_bitrate_mode
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
189 {"vpeak", &pvr_param_bitrate_peak
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
190 {"fmt", &pvr_param_stream_type
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
191 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
193 #endif /* CONFIG_PVR */
195 extern const m_option_t dvbin_opts_conf
[];
196 extern const m_option_t lavfdopts_conf
[];
198 extern int sws_chr_vshift
;
199 extern int sws_chr_hshift
;
200 extern float sws_chr_gblur
;
201 extern float sws_lum_gblur
;
202 extern float sws_chr_sharpen
;
203 extern float sws_lum_sharpen
;
205 const m_option_t scaler_filter_conf
[]={
206 {"lgb", &sws_lum_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
207 {"cgb", &sws_chr_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
208 {"cvs", &sws_chr_vshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
209 {"chs", &sws_chr_hshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
210 {"ls", &sws_lum_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
211 {"cs", &sws_chr_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
212 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
215 /* VIVO demuxer options: */
216 extern int vivo_param_version
;
217 extern char *vivo_param_acodec
;
218 extern int vivo_param_abitrate
;
219 extern int vivo_param_samplerate
;
220 extern int vivo_param_bytesperblock
;
221 extern int vivo_param_width
;
222 extern int vivo_param_height
;
223 extern int vivo_param_vformat
;
224 extern char *dvd_device
, *cdrom_device
;
226 const m_option_t vivoopts_conf
[]={
227 {"version", &vivo_param_version
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
229 {"acodec", &vivo_param_acodec
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
230 {"abitrate", &vivo_param_abitrate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
231 {"samplerate", &vivo_param_samplerate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
232 {"bytesperblock", &vivo_param_bytesperblock
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
234 {"width", &vivo_param_width
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
235 {"height", &vivo_param_height
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
236 {"vformat", &vivo_param_vformat
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
237 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
242 extern double mf_fps
;
243 extern char * mf_type
;
244 extern m_obj_list_t vf_obj_list
;
246 const m_option_t mfopts_conf
[]={
247 {"w", &mf_w
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
248 {"h", &mf_h
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
249 {"fps", &mf_fps
, CONF_TYPE_DOUBLE
, 0, 0, 0, NULL
},
250 {"type", &mf_type
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
251 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
254 #include "libaf/af.h"
255 extern af_cfg_t af_cfg
; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
256 const m_option_t audio_filter_conf
[]={
257 {"list", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
258 {"force", &af_cfg
.force
, CONF_TYPE_INT
, CONF_RANGE
, 0, 7, NULL
},
259 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
262 extern int mp_msg_levels
[MSGT_MAX
];
263 extern int mp_msg_level_all
;
265 const m_option_t msgl_config
[]={
266 { "all", &mp_msg_level_all
, CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
268 { "global", &mp_msg_levels
[MSGT_GLOBAL
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
269 { "cplayer", &mp_msg_levels
[MSGT_CPLAYER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
270 { "vo", &mp_msg_levels
[MSGT_VO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
271 { "ao", &mp_msg_levels
[MSGT_AO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
272 { "demuxer", &mp_msg_levels
[MSGT_DEMUXER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
273 { "ds", &mp_msg_levels
[MSGT_DS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
274 { "demux", &mp_msg_levels
[MSGT_DEMUX
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
275 { "header", &mp_msg_levels
[MSGT_HEADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
276 { "avsync", &mp_msg_levels
[MSGT_AVSYNC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
277 { "autoq", &mp_msg_levels
[MSGT_AUTOQ
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
278 { "cfgparser", &mp_msg_levels
[MSGT_CFGPARSER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
279 { "decaudio", &mp_msg_levels
[MSGT_DECAUDIO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
280 { "decvideo", &mp_msg_levels
[MSGT_DECVIDEO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
281 { "seek", &mp_msg_levels
[MSGT_SEEK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
282 { "win32", &mp_msg_levels
[MSGT_WIN32
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
283 { "open", &mp_msg_levels
[MSGT_OPEN
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
284 { "dvd", &mp_msg_levels
[MSGT_DVD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
285 { "parsees", &mp_msg_levels
[MSGT_PARSEES
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
286 { "lirc", &mp_msg_levels
[MSGT_LIRC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
287 { "stream", &mp_msg_levels
[MSGT_STREAM
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
288 { "cache", &mp_msg_levels
[MSGT_CACHE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
289 { "xacodec", &mp_msg_levels
[MSGT_XACODEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
290 { "tv", &mp_msg_levels
[MSGT_TV
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
291 { "radio", &mp_msg_levels
[MSGT_RADIO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
292 { "osdep", &mp_msg_levels
[MSGT_OSDEP
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
293 { "spudec", &mp_msg_levels
[MSGT_SPUDEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
294 { "playtree", &mp_msg_levels
[MSGT_PLAYTREE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
295 { "input", &mp_msg_levels
[MSGT_INPUT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
296 { "vfilter", &mp_msg_levels
[MSGT_VFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
297 { "osd", &mp_msg_levels
[MSGT_OSD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
298 { "network", &mp_msg_levels
[MSGT_NETWORK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
299 { "cpudetect", &mp_msg_levels
[MSGT_CPUDETECT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
300 { "codeccfg", &mp_msg_levels
[MSGT_CODECCFG
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
301 { "sws", &mp_msg_levels
[MSGT_SWS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
302 { "vobsub", &mp_msg_levels
[MSGT_VOBSUB
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
303 { "subreader", &mp_msg_levels
[MSGT_SUBREADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
304 { "afilter", &mp_msg_levels
[MSGT_AFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
305 { "netst", &mp_msg_levels
[MSGT_NETST
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
306 { "muxer", &mp_msg_levels
[MSGT_MUXER
], 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"
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"
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"
347 " afilter - Audio filter messages\n"
348 " netst - Netstream\n"
349 " muxer - muxer layer\n"
350 " identify - identify output\n"
351 " ass - libass messages\n"
352 " statusline - playback/encoding status line\n"
353 " fixme - messages not yet fixed to map to module\n"
354 "\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
355 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
359 extern const m_option_t lavc_decode_opts_conf
[];
360 extern const m_option_t xvid_dec_opts
[];
362 const m_option_t common_opts
[] = {
363 // ------------------------- common options --------------------
364 OPT_MAKE_FLAGS("quiet", quiet
, CONF_GLOBAL
),
365 {"really-quiet", &verbose
, CONF_TYPE_FLAG
, CONF_GLOBAL
|CONF_PRE_PARSE
, 0, -10, NULL
},
366 // -v is handled in command line preparser
367 {"v", NULL
, CONF_TYPE_FLAG
, CONF_NOCFG
, 0, 0, NULL
},
368 {"msglevel", (void *) msgl_config
, CONF_TYPE_SUBCONFIG
, CONF_GLOBAL
, 0, 0, NULL
},
369 {"msgcolor", &mp_msg_color
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
370 {"nomsgcolor", &mp_msg_color
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
371 {"msgmodule", &mp_msg_module
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
372 {"nomsgmodule", &mp_msg_module
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
374 {"msgcharset", &mp_msg_charset
, CONF_TYPE_STRING
, CONF_GLOBAL
, 0, 0, NULL
},
376 #ifdef CONFIG_PRIORITY
377 {"priority", &proc_priority
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
379 {"codecpath", &codec_path
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
380 OPT_CHOICE("noconfig", noconfig
, CONF_GLOBAL
| CONF_NOCFG
| CONF_PRE_PARSE
,
381 ({"off", 0}, {"user", 1}, {"system", 2}, {"all", 3})),
383 // ------------------------- stream options --------------------
385 #ifdef CONFIG_STREAM_CACHE
386 OPT_INTRANGE("cache", stream_cache_size
, 0, 32, 1048576, OPTDEF_INT(-1)),
387 OPT_FLAG_CONSTANTS("nocache", stream_cache_size
, 0, -1, 0),
389 OPT_FLOATRANGE("cache-min", stream_cache_min_percent
, 0, 0, 99),
390 OPT_FLOATRANGE("cache-seek-min", stream_cache_seek_min_percent
, 0, 0, 99),
392 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
393 #endif /* CONFIG_STREAM_CACHE */
394 {"cdrom-device", &cdrom_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
395 #ifdef CONFIG_DVDREAD
396 {"dvd-device", &dvd_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
397 {"dvd-speed", &dvd_speed
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
398 {"dvdangle", &dvd_angle
, CONF_TYPE_INT
, CONF_RANGE
, 1, 99, NULL
},
400 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
401 {"dvd-speed", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
402 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
403 #endif /* CONFIG_DVDREAD */
404 OPT_INTPAIR("chapter", chapterrange
, 0),
405 OPT_INTRANGE("edition", edition_id
, 0, -1, 8190),
406 #ifdef CONFIG_LIBBLURAY
407 {"bluray-device", &bluray_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
408 {"bluray-angle", &bluray_angle
, CONF_TYPE_INT
, CONF_RANGE
, 0, 999, NULL
},
409 {"bluray-chapter", &bluray_chapter
, CONF_TYPE_INT
, CONF_RANGE
, 0, 999, NULL
},
411 {"bluray-device", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
412 {"bluray-angle", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
413 {"bluray-chapter", "MPlayer was compiled without libbluray support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
414 #endif /* CONFIG_LIBBLURAY */
416 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
417 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
418 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
420 #ifdef CONFIG_NETWORKING
421 {"user", &network_username
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
422 {"passwd", &network_password
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
423 {"bandwidth", &network_bandwidth
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
424 {"http-header-fields", &network_http_header_fields
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
425 {"user-agent", &network_useragent
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
426 {"referrer", &network_referrer
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
427 {"cookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
428 {"nocookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
429 {"cookies-file", &cookies_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
430 {"prefer-ipv4", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
431 {"ipv4-only-proxy", &network_ipv4_only_proxy
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
432 {"reuse-socket", &reuse_socket
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
433 {"noreuse-socket", &reuse_socket
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
435 {"prefer-ipv6", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
437 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
438 #endif /* HAVE_AF_INET6 */
441 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
442 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
443 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
444 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
445 #endif /* CONFIG_NETWORKING */
448 // ------------------------- demuxer options --------------------
450 // number of frames to play/convert
451 {"frames", &play_n_frames_mf
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
453 // seek to byte/seconds position
454 {"sb", &seek_to_byte
, CONF_TYPE_POSITION
, CONF_MIN
, 0, 0, NULL
},
455 OPT_TIME("ss", seek_to_sec
, 0),
457 // stop at given position
458 {"endpos", &end_at
, CONF_TYPE_TIME_SIZE
, 0, 0, 0, NULL
},
460 OPT_ERRORMESSAGE("edl", "Old EDL functionality using the --edl option is "
463 // AVI specific: force non-interleaved mode
464 {"ni", &force_ni
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
465 {"noni", &force_ni
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
467 // AVI and Ogg only: (re)build index at startup
468 {"noidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 0, NULL
},
469 {"idx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
470 {"forceidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 2, NULL
},
471 {"saveidx", &index_file_save
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
472 {"loadidx", &index_file_load
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
474 // select audio/video/subtitle stream
475 OPT_INTRANGE("aid", audio_id
, 0, -2, 8190),
476 {"ausid", &audio_substream_id
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
477 OPT_INTRANGE("vid", video_id
, 0, -2, 8190),
478 OPT_INTRANGE("sid", sub_id
, 0, -2, 8190),
479 OPT_FLAG_CONSTANTS("nosub", sub_id
, 0, -1, -2),
480 OPT_FLAG_CONSTANTS("novideo", video_id
, 0, -1, -2),
481 OPT_FLAG_CONSTANTS("sound", audio_id
, 0, -2, -1),
482 OPT_FLAG_CONSTANTS("nosound", audio_id
, 0, -1, -2),
483 OPT_STRINGLIST("alang", audio_lang
, 0),
484 OPT_STRINGLIST("slang", sub_lang
, 0),
486 OPT_MAKE_FLAGS("hr-mp3-seek", hr_mp3_seek
, 0),
488 OPT_STRING("quvi-format", quvi_format
, 0, OPTDEF_STR("best")),
490 { "rawaudio", (void *)&demux_rawaudio_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
491 { "rawvideo", (void *)&demux_rawvideo_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
494 { "cdda", (void *)&cdda_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
497 // demuxer.c - select audio/sub file/demuxer
498 OPT_STRING("audiofile", audio_stream
, 0),
499 OPT_INTRANGE("audiofile-cache", audio_stream_cache
, 0, 50, 65536),
500 OPT_STRING("subfile", sub_stream
, 0),
501 OPT_STRING("demuxer", demuxer_name
, 0),
502 OPT_STRING("audio-demuxer", audio_demuxer_name
, 0),
503 OPT_STRING("sub-demuxer", sub_demuxer_name
, 0),
504 OPT_MAKE_FLAGS("extbased", extension_parsing
, 0),
506 {"mf", (void *) mfopts_conf
, CONF_TYPE_SUBCONFIG
, 0,0,0, NULL
},
508 {"radio", radioopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
510 {"radio", "MPlayer was compiled without Radio interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
511 #endif /* CONFIG_RADIO */
513 {"tv", (void *) tvopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
515 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
516 #endif /* CONFIG_TV */
518 {"pvr", (void *) pvropts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
520 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
521 #endif /* CONFIG_PVR */
522 {"vivo", (void *) vivoopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
524 {"dvbin", (void *) dvbin_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
527 // ------------------------- a-v sync options --------------------
529 // AVI specific: A-V sync mode (bps vs. interleaving)
530 {"bps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
531 {"nobps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
533 // set A-V sync correction speed (0=disables it):
534 {"mc", &default_max_pts_correction
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
536 // force video/audio rate:
537 {"fps", &force_fps
, CONF_TYPE_DOUBLE
, CONF_MIN
, 0, 0, NULL
},
538 {"srate", &force_srate
, CONF_TYPE_INT
, CONF_RANGE
, 1000, 8*48000, NULL
},
539 OPT_INTRANGE("channels", audio_output_channels
, 0, 1, 8),
540 OPT_AUDIOFORMAT("format", audio_output_format
, 0),
541 OPT_FLOATRANGE("speed", playback_speed
, 0, 0.01, 100.0),
544 {"delay", &audio_delay
, CONF_TYPE_FLOAT
, CONF_RANGE
, -100.0, 100.0, NULL
},
546 // ignore header-specified delay (dwStart)
547 {"ignore-start", &ignore_start
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
548 {"noignore-start", &ignore_start
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
550 OPT_FLOATRANGE("a52drc", drc_level
, 0, 0, 2),
552 // ------------------------- codec/vfilter options --------------------
554 // MP3-only: select stereo/left/right
555 {"stereo", &fakemono
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
557 {"af*", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
558 {"af-adv", (void *) audio_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
560 OPT_SETTINGSLIST("vf*", vf_settings
, 0, &vf_obj_list
),
561 // select audio/video codec (by name) or codec family (by number):
562 {"afm", &audio_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
563 {"vfm", &video_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
564 {"ac", &audio_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
565 {"vc", &video_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
568 {"pp", &divx_quality
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
569 #ifdef CONFIG_LIBPOSTPROC
570 {"pphelp", &pp_help
, CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
574 {"sws", &sws_flags
, CONF_TYPE_INT
, 0, 0, 2, NULL
},
575 {"ssf", (void *) scaler_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
576 OPT_MAKE_FLAGS("zoom", softzoom
, 0),
577 OPT_FLOATRANGE("aspect", movie_aspect
, 0, 0.1, 10.0),
578 OPT_FLAG_CONSTANTS("noaspect", movie_aspect
, 0, 0, 0),
579 OPT_FLOATRANGE("xy", screen_size_xy
, 0, 0.001, 4096),
581 OPT_FLAG_CONSTANTS("flip", flip
, 0, -1, 1),
582 OPT_FLAG_CONSTANTS("noflip", flip
, 0, -1, 0),
583 {"tsprog", &ts_prog
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65534, NULL
},
584 {"tsprobe", &ts_probe
, CONF_TYPE_POSITION
, 0, 0, TS_MAX_PROBE_SIZE
, NULL
},
585 {"psprobe", &ps_probe
, CONF_TYPE_POSITION
, 0, 0, TS_MAX_PROBE_SIZE
, NULL
},
586 {"tskeepbroken", &ts_keep_broken
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
588 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
589 OPT_MAKE_FLAGS("slices", vd_use_slices
, 0),
590 {"field-dominance", &field_dominance
, CONF_TYPE_INT
, CONF_RANGE
, -1, 1, NULL
},
592 {"lavdopts", (void *) lavc_decode_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
593 {"lavfdopts", (void *) lavfdopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
595 {"xvidopts", (void *)xvid_dec_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
597 {"codecs-file", &codecs_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
598 // ------------------------- subtitles options --------------------
600 OPT_STRINGLIST("sub", sub_name
, 0),
601 OPT_PATHLIST("sub-paths", sub_paths
, 0),
603 {"subcp", &sub_cp
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
605 {"subdelay", &sub_delay
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
606 {"subfps", &sub_fps
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
607 OPT_MAKE_FLAGS("autosub", sub_auto
, 0),
608 {"unicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
609 {"nounicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
610 {"utf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
611 {"noutf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
612 {"forcedsubsonly", &forced_subs_only
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
613 // specify IFO file for VOBSUB subtitle
614 {"ifo", &spudec_ifo
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
615 // enable Closed Captioning display
616 {"subcc", &subcc_enabled
, CONF_TYPE_INT
, CONF_RANGE
, 0, 4, NULL
},
617 {"nosubcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
618 {"overlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
619 {"nooverlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
620 {"sub-bg-color", &sub_bg_color
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
621 {"sub-bg-alpha", &sub_bg_alpha
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
622 {"sub-no-text-pp", &sub_no_text_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
623 {"sub-fuzziness", &sub_match_fuzziness
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
624 {"font", &font_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
625 {"subfont", &sub_font_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
626 {"ffactor", &font_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 10.0, NULL
},
627 {"subpos", &sub_pos
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
628 {"subalign", &sub_alignment
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
629 {"subwidth", &sub_width_p
, CONF_TYPE_INT
, CONF_RANGE
, 10, 100, NULL
},
630 {"spualign", &spu_alignment
, CONF_TYPE_INT
, CONF_RANGE
, -1, 2, NULL
},
631 {"spuaa", &spu_aamode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
632 {"spugauss", &spu_gaussvar
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 3.0, NULL
},
633 {"subfont-encoding", &subtitle_font_encoding
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
634 {"subfont-text-scale", &text_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
635 {"subfont-osd-scale", &osd_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
636 {"subfont-blur", &subtitle_font_radius
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
637 {"subfont-outline", &subtitle_font_thickness
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
638 {"subfont-autoscale", &subtitle_autoscale
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
639 OPT_START_CONDITIONAL(CONFIG_ASS
, "libass"),
640 OPT_MAKE_FLAGS("ass", ass_enabled
, 0),
641 OPT_FLOATRANGE("ass-font-scale", ass_font_scale
, 0, 0, 100),
642 OPT_FLOATRANGE("ass-line-spacing", ass_line_spacing
, 0, -1000, 1000),
643 OPT_INTRANGE("ass-top-margin", ass_top_margin
, 0, 0, 2000),
644 OPT_INTRANGE("ass-bottom-margin", ass_bottom_margin
, 0, 0, 2000),
645 OPT_MAKE_FLAGS("ass-use-margins", ass_use_margins
, 0),
646 OPT_MAKE_FLAGS("ass-vsfilter-aspect-compat", ass_vsfilter_aspect_compat
, 0),
647 OPT_MAKE_FLAGS("embeddedfonts", use_embedded_fonts
, 0),
648 OPT_STRINGLIST("ass-force-style", ass_force_style_list
, 0),
649 OPT_STRING("ass-color", ass_color
, 0),
650 OPT_STRING("ass-border-color", ass_border_color
, 0),
651 OPT_STRING("ass-styles", ass_styles_file
, 0),
652 OPT_INTRANGE("ass-hinting", ass_hinting
, 0, 0, 7),
653 OPT_START_CONDITIONAL(1, ""),
654 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
658 const m_option_t tvscan_conf
[]={
659 {"autostart", &stream_tv_defaults
.scan
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
660 {"threshold", &stream_tv_defaults
.scan_threshold
, CONF_TYPE_INT
, CONF_RANGE
, 1, 100, NULL
},
661 {"period", &stream_tv_defaults
.scan_period
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.1, 2.0, NULL
},
662 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
666 const m_option_t mplayer_opts
[]={
667 /* name, pointer, type, flags, min, max */
669 //---------------------- libao/libvo options ------------------------
670 OPT_STRINGLIST("vo", video_driver_list
, 0),
671 OPT_STRINGLIST("ao", audio_driver_list
, 0),
672 OPT_MAKE_FLAGS("fixed-vo", fixed_vo
, CONF_GLOBAL
),
673 OPT_MAKE_FLAGS("ontop", vo_ontop
, 0),
674 {"rootwin", &vo_rootwin
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
675 {"border", &vo_border
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
676 {"noborder", &vo_border
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
678 OPT_STRING("mixer", mixer_device
, 0),
679 OPT_STRING("mixer-channel", mixer_channel
, 0),
680 OPT_MAKE_FLAGS("softvol", softvol
, 0),
681 OPT_FLOATRANGE("softvol-max", softvol_max
, 0, 10, 10000),
682 {"volstep", &volstep
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
683 {"volume", &start_volume
, CONF_TYPE_FLOAT
, CONF_RANGE
, -1, 10000, NULL
},
684 OPT_MAKE_FLAGS("gapless-audio", gapless_audio
, 0),
685 // override audio buffer size (used only by -ao oss/win32, obsolete)
686 OPT_INT("abs", ao_buffersize
, 0),
688 {"edlout", &edl_output_filename
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
691 {"display", &mDisplayName
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
694 // force window width/height or resolution (with -vm)
695 OPT_INTRANGE("x", screen_size_x
, 0, 0, 4096),
696 OPT_INTRANGE("y", screen_size_y
, 0, 0, 4096),
697 // set screen dimensions (when not detectable or virtual!=visible)
698 OPT_INTRANGE("screenw", vo_screenwidth
, CONF_NOSAVE
, 0, 4096),
699 OPT_INTRANGE("screenh", vo_screenheight
, CONF_NOSAVE
, 0, 4096),
701 {"geometry", &vo_geometry
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
702 OPT_MAKE_FLAGS("force-window-position", force_window_position
, 0),
703 // vo name (X classname) and window title strings
704 OPT_STRING("name", vo_winname
, 0),
705 OPT_STRING("title", vo_wintitle
, 0),
706 // set aspect ratio of monitor - useful for 16:9 TV-out
707 OPT_FLOATRANGE("monitoraspect", force_monitor_aspect
, 0, 0.0, 9.0),
708 OPT_FLOATRANGE("monitorpixelaspect", monitor_pixel_aspect
, 0, 0.2, 9.0),
709 // video mode switching: (x11,xv,dga)
710 OPT_MAKE_FLAGS("vm", vidmode
, 0),
711 // start in fullscreen mode:
712 OPT_MAKE_FLAGS("fs", fullscreen
, CONF_NOSAVE
),
713 // set fullscreen switch method (workaround for buggy WMs)
714 {"fsmode-dontuse", &vo_fsmode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
715 // set bpp (x11+vm, dga, fbdev, vesa, svga?)
716 OPT_INTRANGE("bpp", vo_dbpp
, 0, 0, 32),
717 {"colorkey", &vo_colorkey
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
718 {"nocolorkey", &vo_colorkey
, CONF_TYPE_FLAG
, 0, 0, 0x1000000, NULL
},
719 {"double", &vo_doublebuffering
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
720 {"nodouble", &vo_doublebuffering
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
721 // wait for v-sync (vesa)
722 {"vsync", &vo_vsync
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
723 {"novsync", &vo_vsync
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
724 {"panscan", &vo_panscan
, CONF_TYPE_FLOAT
, CONF_RANGE
, -1.0, 1.0, NULL
},
725 OPT_FLOATRANGE("panscanrange", vo_panscanrange
, 0, -19.0, 99.0),
726 OPT_CHOICE("colormatrix", requested_colorspace
, 0,
727 ({"auto", MP_CSP_AUTO
}, {"0", MP_CSP_AUTO
},
728 {"BT.601", MP_CSP_BT_601
}, {"sd", MP_CSP_BT_601
}, {"1", MP_CSP_BT_601
},
729 {"BT.709", MP_CSP_BT_709
}, {"hd", MP_CSP_BT_709
}, {"2", MP_CSP_BT_709
},
730 {"SMPTE-240M", MP_CSP_SMPTE_240M
}, {"3", MP_CSP_SMPTE_240M
})),
731 OPT_CHOICE("colormatrix-input-range", requested_input_range
, 0,
732 ({"auto", MP_CSP_LEVELS_AUTO
},
733 {"limited", MP_CSP_LEVELS_TV
},
734 {"full", MP_CSP_LEVELS_PC
})),
735 OPT_CHOICE("colormatrix-output-range", requested_output_range
, 0,
736 ({"auto", MP_CSP_LEVELS_AUTO
},
737 {"limited", MP_CSP_LEVELS_TV
},
738 {"full", MP_CSP_LEVELS_PC
})),
740 {"grabpointer", &vo_grabpointer
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
741 {"nograbpointer", &vo_grabpointer
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
742 OPT_INTRANGE("cursor-autohide-delay", cursor_autohide_delay
, 0, -2, 30000),
744 {"adapter", &vo_adapter_num
, CONF_TYPE_INT
, CONF_RANGE
, 0, 5, NULL
},
745 {"refreshrate",&vo_refresh_rate
,CONF_TYPE_INT
,CONF_RANGE
, 0,100, NULL
},
746 {"wid", &WinID
, CONF_TYPE_INT64
, 0, 0, 0, NULL
},
748 {"stop-xscreensaver", &stop_xscreensaver
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
749 {"nostop-xscreensaver", &stop_xscreensaver
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
750 {"fstype", &vo_fstype_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
752 {"heartbeat-cmd", &heartbeat_cmd
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
753 {"mouseinput", &vo_nomouse_input
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
754 {"nomouseinput", &vo_nomouse_input
, CONF_TYPE_FLAG
,0, 0, 1, NULL
},
756 {"xineramascreen", &xinerama_screen
, CONF_TYPE_INT
, CONF_RANGE
, -2, 32, NULL
},
758 OPT_INTRANGE("brightness", vo_gamma_brightness
, 0, -100, 100),
759 OPT_INTRANGE("saturation", vo_gamma_saturation
, 0, -100, 100),
760 OPT_INTRANGE("contrast", vo_gamma_contrast
, 0, -100, 100),
761 OPT_INTRANGE("hue", vo_gamma_hue
, 0, -100, 100),
762 OPT_INTRANGE("gamma", vo_gamma_gamma
, 0, -100, 100),
763 {"keepaspect", &vo_keepaspect
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
764 {"nokeepaspect", &vo_keepaspect
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
766 // direct rendering (decoding to video out buffer)
767 {"dr", &vo_directrendering
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
768 {"nodr", &vo_directrendering
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
770 //---------------------- mplayer-only options ------------------------
772 {"use-filedir-conf", &use_filedir_conf
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
773 {"nouse-filedir-conf", &use_filedir_conf
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
774 {"use-filename-title", &use_filename_title
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
775 {"nouse-filename-title", &use_filename_title
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
776 #ifdef CONFIG_CRASH_DEBUG
777 {"crash-debug", &crash_debug
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
778 {"nocrash-debug", &crash_debug
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
780 OPT_INTRANGE("osdlevel", osd_level
, 0, 0, 3),
781 OPT_INTRANGE("osd-duration", osd_duration
, 0, 0, 3600000),
782 OPT_INTRANGE("osd-fractions", osd_fractions
, 0, 0, 2),
784 OPT_STRING("vobsub", vobsub_name
, 0),
785 {"vobsubid", &vobsub_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
786 #ifdef CONFIG_UNRAR_EXEC
787 {"unrarexec", &unrar_executable
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
790 {"sstep", &step_sec
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
792 {"framedrop", &frame_dropping
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
793 {"hardframedrop", &frame_dropping
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
794 {"noframedrop", &frame_dropping
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
796 OPT_INTRANGE("autoq", auto_quality
, 0, 0, 100),
798 OPT_FLAG_ON("benchmark", benchmark
, 0),
800 // dump some stream out instead of playing the file
801 OPT_STRING("dumpfile", stream_dump_name
, 0, OPTDEF_STR("stream.dump")),
802 {"dumpaudio", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
803 {"dumpvideo", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
804 {"dumpsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 3, NULL
},
805 {"dumpmpsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 4, NULL
},
806 {"dumpstream", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 5, NULL
},
807 {"dumpsrtsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 6, NULL
},
808 {"dumpmicrodvdsub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 7, NULL
},
809 {"dumpjacosub", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 8, NULL
},
810 {"dumpsami", &stream_dump_type
, CONF_TYPE_FLAG
, 0, 0, 9, NULL
},
812 OPT_MAKE_FLAGS("capture", capture_dump
, 0),
815 {"lircconf", &lirc_configfile
, CONF_TYPE_STRING
, CONF_GLOBAL
, 0, 0, NULL
},
818 {"leak-report", "", CONF_TYPE_PRINT
, 0, 0, 0, (void*)1},
819 // these should be removed when gmplayer is forgotten
820 {"gui", "Internal GUI was removed. Use some other frontend instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
821 {"nogui", "Internal GUI was removed, -nogui is no longer valid.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
823 OPT_FLAG_CONSTANTS("noloop", loop_times
, 0, 0, -1),
824 OPT_INTRANGE("loop", loop_times
, 0, -1, 10000),
825 {"playlist", NULL
, CONF_TYPE_STRING
, CONF_NOCFG
, 0, 0, NULL
},
826 {"shuffle", NULL
, CONF_TYPE_FLAG
, CONF_NOCFG
, 0, 0, NULL
},
827 {"noshuffle", NULL
, CONF_TYPE_FLAG
, CONF_NOCFG
, 0, 0, NULL
},
829 OPT_MAKE_FLAGS("ordered-chapters", ordered_chapters
, 0),
830 OPT_INTRANGE("chapter-merge-threshold", chapter_merge_threshold
, 0, 0, 10000),
833 OPT_MAKE_FLAGS("correct-pts", user_correct_pts
, 0),
834 OPT_CHOICE("pts-association-mode", user_pts_assoc_mode
, 0,
835 ({"auto", 0}, {"decoder", 1}, {"sort", 2})),
836 OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync
, 0),
837 OPT_CHOICE("hr-seek", hr_seek
, 0,
838 ({"off", -1}, {"absolute", 0}, {"always", 1}, {"on", 1})),
839 OPT_FLOATRANGE("hr-seek-demuxer-offset", hr_seek_demuxer_offset
, 0, -9, 99),
840 OPT_FLAG_CONSTANTS("noautosync", autosync
, 0, 0, -1),
841 OPT_INTRANGE("autosync", autosync
, 0, 0, 10000),
843 OPT_FLAG_ON("softsleep", softsleep
, 0),
845 OPT_MAKE_FLAGS("rtc", rtc
, 0),
846 OPT_STRING("rtc-device", rtc_device
, 0),
849 OPT_MAKE_FLAGS("term-osd", term_osd
, 0),
850 OPT_STRING("term-osd-esc", term_osd_esc
, 0, OPTDEF_STR("\x1b[A\r\x1b[K")),
851 OPT_STRING("playing-msg", playing_msg
, 0),
853 {"slave", &slave_mode
, CONF_TYPE_FLAG
,CONF_GLOBAL
, 0, 1, NULL
},
854 OPT_MAKE_FLAGS("idle", player_idle_mode
, CONF_GLOBAL
),
855 OPT_INTRANGE("key-fifo-size", input
.key_fifo_size
, CONF_GLOBAL
, 2, 65000),
856 OPT_MAKE_FLAGS("consolecontrols", consolecontrols
, CONF_GLOBAL
),
857 {"mouse-movements", &enable_mouse_movements
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, 1, NULL
},
858 {"nomouse-movements", &enable_mouse_movements
, CONF_TYPE_FLAG
, CONF_GLOBAL
, 1, 0, NULL
},
859 OPT_INTRANGE("doubleclick-time", doubleclick_time
, 0, 0, 1000),
861 {"tvscan", (void *) tvscan_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
863 {"tvscan", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
864 #endif /* CONFIG_TV */
866 OPT_FLAG_ON("list-properties", list_properties
, CONF_GLOBAL
),
867 {"identify", &mp_msg_levels
[MSGT_IDENTIFY
], CONF_TYPE_FLAG
, CONF_GLOBAL
, 0, MSGL_V
, NULL
},
868 {"help", (void *) help_text
, CONF_TYPE_PRINT
, CONF_NOCFG
|CONF_GLOBAL
, 0, 0, NULL
},
869 {"h", (void *) help_text
, CONF_TYPE_PRINT
, CONF_NOCFG
|CONF_GLOBAL
, 0, 0, NULL
},
871 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
874 #endif /* MPLAYER_CFG_MPLAYER_H */