man/hu/mplayer.1 synced with r19052
[mplayer/greg.git] / cfg-common.h
blob1c7008b5bcbd71e65820a0b31c1d8f972d609177
1 #ifdef MAIN_CONF /* this will be included in conf[] */
3 // ------------------------- common options --------------------
4 {"quiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
5 {"noquiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
6 {"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL, 0, -10, NULL},
7 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL},
8 {"msglevel", msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
9 #ifdef USE_ICONV
10 {"msgcharset", &mp_msg_charset, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
11 #endif
12 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL},
13 #ifdef WIN32
14 {"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
15 #endif
17 // ------------------------- stream options --------------------
19 #ifdef USE_STREAM_CACHE
20 {"cache", &stream_cache_size, CONF_TYPE_INT, CONF_RANGE, 32, 1048576, NULL},
21 {"nocache", &stream_cache_size, CONF_TYPE_FLAG, 0, 1, 0, NULL},
22 {"cache-min", &stream_cache_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
23 {"cache-seek-min", &stream_cache_seek_min_percent, CONF_TYPE_FLOAT, CONF_RANGE, 0, 99, NULL},
24 #else
25 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
26 #endif
27 {"vcd", "-vcd N is deprecated, use vcd://N instead.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL},
28 {"cuefile", "-cuefile is deprecated, use cue://filename:N where N is the track number.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
29 {"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
30 #ifdef USE_DVDREAD
31 {"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
32 {"dvd", "-dvd N is deprecated, use dvd://N instead.\n" , CONF_TYPE_PRINT, 0, 0, 0, NULL},
33 {"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
34 {"chapter", dvd_parse_chapter_range, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL},
35 #else
36 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
37 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
38 #endif
39 {"alang", &audio_lang, CONF_TYPE_STRING, 0, 0, 0, NULL},
40 {"slang", &dvdsub_lang, CONF_TYPE_STRING, 0, 0, 0, NULL},
42 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
43 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
44 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
46 #ifdef MPLAYER_NETWORK
47 {"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
48 {"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
49 {"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
50 {"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL},
51 {"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
52 {"nocookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
53 {"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
54 {"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
55 {"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL},
56 #ifdef HAVE_AF_INET6
57 {"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
58 #else
59 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
60 #endif
62 #else
63 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
64 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
65 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
66 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
67 #endif
69 #ifdef STREAMING_LIVE555
70 {"sdp", "-sdp is obsolete, use sdp://file instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
71 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
72 {"rtsp-stream-over-tcp", &rtspStreamOverTCP, CONF_TYPE_FLAG, 0, 0, 1, NULL},
73 #else
74 {"rtsp-stream-over-tcp", "RTSP support requires the \"LIVE555 Streaming Media\" libraries.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
75 #endif
76 #ifdef MPLAYER_NETWORK
77 {"rtsp-port", &rtsp_port, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL},
78 {"rtsp-destination", &rtsp_destination, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
79 #else
80 {"rtsp-port", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
81 {"rtsp-destination", "MPlayer was compiled without network support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
82 #endif
84 // ------------------------- demuxer options --------------------
86 // number of frames to play/convert
87 {"frames", &play_n_frames_mf, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
89 // seek to byte/seconds position
90 {"sb", &seek_to_byte, CONF_TYPE_POSITION, CONF_MIN, 0, 0, NULL},
91 {"ss", &seek_to_sec, CONF_TYPE_STRING, CONF_MIN, 0, 0, NULL},
93 {"edl", &edl_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
95 // AVI specific: force non-interleaved mode
96 {"ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},
97 {"noni", &force_ni, CONF_TYPE_FLAG, 0, 1, 0, NULL},
99 // AVI and Ogg only: (re)build index at startup
100 {"noidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 0, NULL},
101 {"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL},
102 {"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL},
103 {"saveidx", &index_file_save, CONF_TYPE_STRING, 0, 0, 0, NULL},
104 {"loadidx", &index_file_load, CONF_TYPE_STRING, 0, 0, 0, NULL},
106 // select audio/video/subtitle stream
107 {"aid", &audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 8190, NULL},
108 {"vid", &video_id, CONF_TYPE_INT, CONF_RANGE, 0, 8190, NULL},
109 {"sid", &dvdsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 8190, NULL},
110 {"novideo", &video_id, CONF_TYPE_FLAG, 0, -1, -2, NULL},
112 { "hr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 0, 1, NULL },
113 { "nohr-mp3-seek", &hr_mp3_seek, CONF_TYPE_FLAG, 0, 1, 0, NULL},
115 { "rawaudio", &demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
116 { "rawvideo", &demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
118 #ifdef HAVE_CDDA
119 { "cdda", &cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
120 #endif
122 // demuxer.c - select audio/sub file/demuxer
123 { "audiofile", &audio_stream, CONF_TYPE_STRING, 0, 0, 0, NULL },
124 { "audiofile-cache", &audio_stream_cache, CONF_TYPE_INT, CONF_RANGE, 50, 65536, NULL},
125 { "subfile", &sub_stream, CONF_TYPE_STRING, 0, 0, 0, NULL },
126 { "demuxer", &demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
127 { "audio-demuxer", &audio_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
128 { "sub-demuxer", &sub_demuxer_name, CONF_TYPE_STRING, 0, 0, 0, NULL },
129 { "extbased", &extension_parsing, CONF_TYPE_FLAG, 0, 0, 1, NULL },
130 { "noextbased", &extension_parsing, CONF_TYPE_FLAG, 0, 1, 0, NULL },
132 {"mf", mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL},
133 #ifdef USE_TV
134 {"tv", tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
135 #else
136 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
137 #endif
138 #ifdef HAVE_PVR
139 {"pvr", pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
140 #else
141 {"pvr", "MPlayer was compiled without V4L2/PVR interface support.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
142 #endif
143 {"vivo", vivoopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
144 #ifdef HAS_DVBIN_SUPPORT
145 {"dvbin", dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
146 #endif
148 // ------------------------- a-v sync options --------------------
150 // AVI specific: A-V sync mode (bps vs. interleaving)
151 {"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},
152 {"nobps", &pts_from_bps, CONF_TYPE_FLAG, 0, 1, 0, NULL},
154 // set A-V sync correction speed (0=disables it):
155 {"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
157 // force video/audio rate:
158 {"fps", &force_fps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0, NULL},
159 {"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
160 {"channels", &audio_output_channels, CONF_TYPE_INT, CONF_RANGE, 1, 6, NULL},
161 {"format", &audio_output_format, CONF_TYPE_AFMT, 0, 0, 0, NULL},
162 {"speed", &playback_speed, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 100.0, NULL},
164 // set a-v distance
165 {"delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
167 // ignore header-specified delay (dwStart)
168 {"ignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 0, 1, NULL},
169 {"noignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 1, 0, NULL},
171 #ifdef USE_LIBA52
172 {"a52drc", &a52_drc_level, CONF_TYPE_FLOAT, CONF_RANGE, 0, 1, NULL},
173 #endif
175 // ------------------------- codec/vfilter options --------------------
177 // MP3-only: select stereo/left/right
178 #ifdef USE_FAKE_MONO
179 {"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
180 #endif
182 // disable audio
183 {"sound", &audio_id, CONF_TYPE_FLAG, 0, -2, -1, NULL},
184 {"nosound", &audio_id, CONF_TYPE_FLAG, 0, -1, -2, NULL},
186 {"af-adv", audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
187 {"af", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
189 {"vop*", &vo_plugin_args, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0,&vf_obj_list },
190 {"vf*", &vf_settings, CONF_TYPE_OBJ_SETTINGS_LIST, 0, 0, 0, &vf_obj_list},
191 // select audio/video codec (by name) or codec family (by number):
192 // {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 22, NULL}, // keep ranges in sync
193 // {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 29, NULL}, // with codec-cfg.c
194 // {"afm", &audio_fm, CONF_TYPE_STRING, 0, 0, 0, NULL},
195 {"afm", &audio_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
196 {"vfm", &video_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
197 // {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0, NULL},
198 {"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
199 {"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
201 // postprocessing:
202 {"divxq", "-divxq has been renamed to -pp (postprocessing), use -pp.\n",
203 CONF_TYPE_PRINT, 0, 0, 0, NULL},
204 #ifdef USE_LIBAVCODEC
205 {"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},
206 #endif
207 #ifdef HAVE_ODIVX_POSTPROCESS
208 {"oldpp", &use_old_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
209 #else
210 {"oldpp", "MPlayer was compiled without the OpenDivX library.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
211 #endif
212 {"npp", "-npp has been removed, use -vf pp and read the fine manual.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
213 #if defined(USE_LIBPOSTPROC) || defined(USE_LIBPOSTPROC_SO)
214 {"pphelp", &pp_help, CONF_TYPE_PRINT_INDIRECT, CONF_NOCFG, 0, 0, NULL},
215 #endif
217 // scaling:
218 {"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL},
219 {"ssf", scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
220 {"zoom", &softzoom, CONF_TYPE_FLAG, 0, 0, 1, NULL},
221 {"nozoom", &softzoom, CONF_TYPE_FLAG, 0, 1, 0, NULL},
222 {"aspect", &movie_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL},
223 {"noaspect", &movie_aspect, CONF_TYPE_FLAG, 0, 0, 0, NULL},
224 {"xy", &screen_size_xy, CONF_TYPE_FLOAT, CONF_RANGE, 0.001, 4096, NULL},
226 {"flip", &flip, CONF_TYPE_FLAG, 0, -1, 1, NULL},
227 {"noflip", &flip, CONF_TYPE_FLAG, 0, -1, 0, NULL},
228 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT, CONF_NOCFG ,0,0, NULL
230 {"tsprog", &ts_prog, CONF_TYPE_INT, CONF_RANGE, 0, 65534, NULL},
231 #define TS_MAX_PROBE_SIZE 2000000 /* don't forget to change this in libmpdemux/demux_ts.c too */
232 {"tsprobe", &ts_probe, CONF_TYPE_POSITION, 0, 0, TS_MAX_PROBE_SIZE, NULL},
233 {"tskeepbroken", &ts_keep_broken, CONF_TYPE_FLAG, 0, 0, 1, NULL},
235 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
236 {"slices", &vd_use_slices, CONF_TYPE_FLAG, 0, 0, 1, NULL},
237 {"noslices", &vd_use_slices, CONF_TYPE_FLAG, 0, 1, 0, NULL},
239 #ifdef USE_LIBAVCODEC
240 {"lavdopts", lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
241 #endif
242 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
243 {"xvidopts", xvid_dec_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
244 #endif
245 {"codecs-file", &codecs_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
246 // ------------------------- subtitles options --------------------
248 #ifdef USE_SUB
249 {"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
250 #ifdef USE_FRIBIDI
251 {"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
252 {"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
253 {"noflip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
254 {"flip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
255 {"noflip-hebrew-commas", &fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
256 #else
257 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
258 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
259 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
260 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
261 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
262 #endif
263 #ifdef USE_ICONV
264 {"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
265 #endif
266 {"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
267 {"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
268 {"autosub", &sub_auto, CONF_TYPE_FLAG, 0, 0, 1, NULL},
269 {"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0, NULL},
270 {"unicode", &sub_unicode, CONF_TYPE_FLAG, 0, 0, 1, NULL},
271 {"nounicode", &sub_unicode, CONF_TYPE_FLAG, 0, 1, 0, NULL},
272 {"utf8", &sub_utf8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
273 {"noutf8", &sub_utf8, CONF_TYPE_FLAG, 0, 1, 0, NULL},
274 {"forcedsubsonly", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL},
275 // specify IFO file for VOBSUB subtitle
276 {"ifo", &spudec_ifo, CONF_TYPE_STRING, 0, 0, 0, NULL},
277 // enable Closed Captioning display
278 {"subcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
279 {"nosubcc", &subcc_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
280 {"overlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 2, NULL},
281 {"nooverlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 0, NULL},
282 {"sub-bg-color", &sub_bg_color, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
283 {"sub-bg-alpha", &sub_bg_alpha, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
284 {"sub-no-text-pp", &sub_no_text_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
285 {"sub-fuzziness", &sub_match_fuzziness, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
286 #endif
287 #ifdef USE_OSD
288 {"font", &font_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
289 {"ffactor", &font_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 10.0, NULL},
290 {"subpos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
291 {"subalign", &sub_alignment, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
292 {"subwidth", &sub_width_p, CONF_TYPE_INT, CONF_RANGE, 10, 100, NULL},
293 {"spualign", &spu_alignment, CONF_TYPE_INT, CONF_RANGE, -1, 2, NULL},
294 {"spuaa", &spu_aamode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
295 {"spugauss", &spu_gaussvar, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 3.0, NULL},
296 #ifdef HAVE_FREETYPE
297 {"subfont-encoding", &subtitle_font_encoding, CONF_TYPE_STRING, 0, 0, 0, NULL},
298 {"subfont-text-scale", &text_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
299 {"subfont-osd-scale", &osd_font_scale_factor, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
300 {"subfont-blur", &subtitle_font_radius, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
301 {"subfont-outline", &subtitle_font_thickness, CONF_TYPE_FLOAT, CONF_RANGE, 0, 8, NULL},
302 {"subfont-autoscale", &subtitle_autoscale, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
303 #endif
304 #ifdef USE_ASS
305 {"ass", &ass_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
306 {"noass", &ass_enabled, CONF_TYPE_FLAG, 0, 1, 0, NULL},
307 {"ass-font-scale", &ass_font_scale, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
308 {"ass-line-spacing", &ass_line_spacing, CONF_TYPE_FLOAT, CONF_RANGE, -1000, 1000, NULL},
309 {"ass-top-margin", &ass_top_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
310 {"ass-bottom-margin", &ass_bottom_margin, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
311 {"embeddedfonts", &extract_embedded_fonts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
312 {"noembeddedfonts", &extract_embedded_fonts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
313 #endif
314 #ifdef HAVE_FONTCONFIG
315 {"fontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 0, 1, NULL},
316 {"nofontconfig", &font_fontconfig, CONF_TYPE_FLAG, 0, 1, 0, NULL},
317 #else
318 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
319 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
320 #endif
321 #endif
323 #else
325 #include "config.h"
327 extern int quiet;
328 extern int verbose;
329 extern char *mp_msg_charset;
331 // codec/filter opts: (defined at libmpcodecs/vd.c)
332 extern float screen_size_xy;
333 extern float movie_aspect;
334 extern int softzoom;
335 extern int flip;
336 extern int vd_use_slices;
337 extern int divx_quality;
339 /* defined in codec-cfg.c */
340 extern char * codecs_file;
342 /* from dec_audio, currently used for ac3surround decoder only */
343 extern int audio_output_channels;
345 #ifdef MPLAYER_NETWORK
346 /* defined in network.c */
347 extern char *network_username;
348 extern char *network_password;
349 extern int network_bandwidth;
350 extern char *network_useragent;
351 extern int network_cookies_enabled;
352 extern char *cookies_file;
354 extern int network_prefer_ipv4;
355 extern int network_ipv4_only_proxy;
357 #endif
359 extern float a52_drc_level;
361 /* defined in libmpdemux: */
362 extern int hr_mp3_seek;
363 extern m_option_t demux_rawaudio_opts[];
364 extern m_option_t demux_rawvideo_opts[];
365 extern m_option_t cdda_opts[];
367 extern char* audio_stream;
368 extern char* sub_stream;
369 extern int demuxer_type, audio_demuxer_type, sub_demuxer_type;
370 extern int ts_prog;
371 extern int ts_keep_broken;
372 extern off_t ts_probe;
374 #include "libmpdemux/tv.h"
376 extern char* edl_filename;
377 extern char* edl_output_filename;
379 #ifdef USE_TV
380 m_option_t tvopts_conf[]={
381 {"on", "-tv on is deprecated, use tv:// instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
382 {"immediatemode", &tv_param_immediate, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},
383 {"noaudio", &tv_param_noaudio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
384 {"audiorate", &tv_param_audiorate, CONF_TYPE_INT, 0, 0, 0, NULL},
385 {"driver", &tv_param_driver, CONF_TYPE_STRING, 0, 0, 0, NULL},
386 {"device", &tv_param_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
387 {"freq", &tv_param_freq, CONF_TYPE_STRING, 0, 0, 0, NULL},
388 {"channel", &tv_param_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
389 {"chanlist", &tv_param_chanlist, CONF_TYPE_STRING, 0, 0, 0, NULL},
390 {"norm", &tv_param_norm, CONF_TYPE_STRING, 0, 0, 0, NULL},
391 #ifdef HAVE_TV_V4L2
392 {"normid", &tv_param_normid, CONF_TYPE_INT, 0, 0, 0, NULL},
393 #endif
394 {"width", &tv_param_width, CONF_TYPE_INT, 0, 0, 4096, NULL},
395 {"height", &tv_param_height, CONF_TYPE_INT, 0, 0, 4096, NULL},
396 {"input", &tv_param_input, CONF_TYPE_INT, 0, 0, 20, NULL},
397 {"outfmt", &tv_param_outfmt, CONF_TYPE_IMGFMT, 0, 0, 0, NULL},
398 {"fps", &tv_param_fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
399 {"channels", &tv_param_channels, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
400 {"brightness", &tv_param_brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
401 {"contrast", &tv_param_contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
402 {"hue", &tv_param_hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
403 {"saturation", &tv_param_saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
404 #if defined(HAVE_TV_V4L) || defined(HAVE_TV_V4L2)
405 {"amode", &tv_param_amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
406 {"volume", &tv_param_volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
407 {"bass", &tv_param_bass, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
408 {"treble", &tv_param_treble, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
409 {"balance", &tv_param_balance, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
410 {"forcechan", &tv_param_forcechan, CONF_TYPE_INT, CONF_RANGE, 1, 2, NULL},
411 {"forceaudio", &tv_param_force_audio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
412 {"buffersize", &tv_param_buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
413 {"mjpeg", &tv_param_mjpeg, CONF_TYPE_FLAG, 0, 0, 1, NULL},
414 {"decimation", &tv_param_decimation, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL},
415 {"quality", &tv_param_quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
416 #if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
417 {"alsa", &tv_param_alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL},
418 #endif
419 {"adevice", &tv_param_adevice, CONF_TYPE_STRING, 0, 0, 0, NULL},
420 #endif
421 {"audioid", &tv_param_audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL},
422 {NULL, NULL, 0, 0, 0, 0, NULL}
424 #endif
426 #ifdef HAVE_PVR
427 extern int pvr_param_aspect_ratio;
428 extern int pvr_param_sample_rate;
429 extern int pvr_param_audio_layer;
430 extern int pvr_param_audio_bitrate;
431 extern char *pvr_param_audio_mode;
432 extern int pvr_param_bitrate;
433 extern char *pvr_param_bitrate_mode;
434 extern int pvr_param_bitrate_peak;
435 extern char *pvr_param_stream_type;
437 m_option_t pvropts_conf[]={
438 {"aspect", &pvr_param_aspect_ratio, CONF_TYPE_INT, 0, 1, 4, NULL},
439 {"arate", &pvr_param_sample_rate, CONF_TYPE_INT, 0, 32000, 48000, NULL},
440 {"alayer", &pvr_param_audio_layer, CONF_TYPE_INT, 0, 1, 2, NULL},
441 {"abitrate", &pvr_param_audio_bitrate, CONF_TYPE_INT, 0, 32, 448, NULL},
442 {"amode", &pvr_param_audio_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
443 {"vbitrate", &pvr_param_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
444 {"vmode", &pvr_param_bitrate_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
445 {"vpeak", &pvr_param_bitrate_peak, CONF_TYPE_INT, 0, 0, 0, NULL},
446 {"fmt", &pvr_param_stream_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
447 {NULL, NULL, 0, 0, 0, 0, NULL}
449 #endif
451 #ifdef HAS_DVBIN_SUPPORT
452 #include "libmpdemux/dvbin.h"
453 extern m_config_t dvbin_opts_conf[];
454 #endif
456 #ifdef USE_FRIBIDI
457 extern char *fribidi_charset;
458 extern int flip_hebrew;
459 #endif
461 #ifdef STREAMING_LIVE555
462 extern int rtspStreamOverTCP;
463 #endif
464 extern int rtsp_port;
465 extern char *rtsp_destination;
468 extern int audio_stream_cache;
470 extern int sws_chr_vshift;
471 extern int sws_chr_hshift;
472 extern float sws_chr_gblur;
473 extern float sws_lum_gblur;
474 extern float sws_chr_sharpen;
475 extern float sws_lum_sharpen;
477 m_option_t scaler_filter_conf[]={
478 {"lgb", &sws_lum_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
479 {"cgb", &sws_chr_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
480 {"cvs", &sws_chr_vshift, CONF_TYPE_INT, 0, 0, 0, NULL},
481 {"chs", &sws_chr_hshift, CONF_TYPE_INT, 0, 0, 0, NULL},
482 {"ls", &sws_lum_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
483 {"cs", &sws_chr_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
484 {NULL, NULL, 0, 0, 0, 0, NULL}
487 /* VIVO demuxer options: */
488 extern int vivo_param_version;
489 extern char *vivo_param_acodec;
490 extern int vivo_param_abitrate;
491 extern int vivo_param_samplerate;
492 extern int vivo_param_bytesperblock;
493 extern int vivo_param_width;
494 extern int vivo_param_height;
495 extern int vivo_param_vformat;
496 extern char *dvd_device, *cdrom_device;
498 m_option_t vivoopts_conf[]={
499 {"version", &vivo_param_version, CONF_TYPE_INT, 0, 0, 0, NULL},
500 /* audio options */
501 {"acodec", &vivo_param_acodec, CONF_TYPE_STRING, 0, 0, 0, NULL},
502 {"abitrate", &vivo_param_abitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
503 {"samplerate", &vivo_param_samplerate, CONF_TYPE_INT, 0, 0, 0, NULL},
504 {"bytesperblock", &vivo_param_bytesperblock, CONF_TYPE_INT, 0, 0, 0, NULL},
505 /* video options */
506 {"width", &vivo_param_width, CONF_TYPE_INT, 0, 0, 0, NULL},
507 {"height", &vivo_param_height, CONF_TYPE_INT, 0, 0, 0, NULL},
508 {"vformat", &vivo_param_vformat, CONF_TYPE_INT, 0, 0, 0, NULL},
509 {NULL, NULL, 0, 0, 0, 0, NULL}
512 extern int mf_w;
513 extern int mf_h;
514 extern float mf_fps;
515 extern char * mf_type;
516 extern m_obj_settings_t* vf_settings;
517 extern m_obj_list_t vf_obj_list;
519 m_option_t mfopts_conf[]={
520 {"on", "-mf on is deprecated, use mf:// instead.\n", CONF_TYPE_PRINT, 0, 0, 1, NULL},
521 {"w", &mf_w, CONF_TYPE_INT, 0, 0, 0, NULL},
522 {"h", &mf_h, CONF_TYPE_INT, 0, 0, 0, NULL},
523 {"fps", &mf_fps, CONF_TYPE_FLOAT, 0, 0, 0, NULL},
524 {"type", &mf_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
525 {NULL, NULL, 0, 0, 0, 0, NULL}
528 extern m_obj_settings_t* vo_plugin_args;
530 #include "libaf/af.h"
531 extern af_cfg_t af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
532 m_option_t audio_filter_conf[]={
533 {"list", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
534 {"force", &af_cfg.force, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
535 {NULL, NULL, 0, 0, 0, 0, NULL}
538 m_option_t msgl_config[]={
539 { "all", &mp_msg_level_all, CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL},
541 { "global", &mp_msg_levels[MSGT_GLOBAL], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
542 { "cplayer", &mp_msg_levels[MSGT_CPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
543 { "gplayer", &mp_msg_levels[MSGT_GPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
544 { "vo", &mp_msg_levels[MSGT_VO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
545 { "ao", &mp_msg_levels[MSGT_AO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
546 { "demuxer", &mp_msg_levels[MSGT_DEMUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
547 { "ds", &mp_msg_levels[MSGT_DS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
548 { "demux", &mp_msg_levels[MSGT_DEMUX], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
549 { "header", &mp_msg_levels[MSGT_HEADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
550 { "avsync", &mp_msg_levels[MSGT_AVSYNC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
551 { "autoq", &mp_msg_levels[MSGT_AUTOQ], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
552 { "cfgparser", &mp_msg_levels[MSGT_CFGPARSER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
553 { "decaudio", &mp_msg_levels[MSGT_DECAUDIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
554 { "decvideo", &mp_msg_levels[MSGT_DECVIDEO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
555 { "seek", &mp_msg_levels[MSGT_SEEK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
556 { "win32", &mp_msg_levels[MSGT_WIN32], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
557 { "open", &mp_msg_levels[MSGT_OPEN], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
558 { "dvd", &mp_msg_levels[MSGT_DVD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
559 { "parsees", &mp_msg_levels[MSGT_PARSEES], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
560 { "lirc", &mp_msg_levels[MSGT_LIRC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
561 { "stream", &mp_msg_levels[MSGT_STREAM], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
562 { "cache", &mp_msg_levels[MSGT_CACHE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
563 { "mencoder", &mp_msg_levels[MSGT_MENCODER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
564 { "xacodec", &mp_msg_levels[MSGT_XACODEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
565 { "tv", &mp_msg_levels[MSGT_TV], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
566 { "osdep", &mp_msg_levels[MSGT_OSDEP], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
567 { "spudec", &mp_msg_levels[MSGT_SPUDEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
568 { "playtree", &mp_msg_levels[MSGT_PLAYTREE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
569 { "input", &mp_msg_levels[MSGT_INPUT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
570 { "vfilter", &mp_msg_levels[MSGT_VFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
571 { "osd", &mp_msg_levels[MSGT_OSD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
572 { "network", &mp_msg_levels[MSGT_NETWORK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
573 { "cpudetect", &mp_msg_levels[MSGT_CPUDETECT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
574 { "codeccfg", &mp_msg_levels[MSGT_CODECCFG], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
575 { "sws", &mp_msg_levels[MSGT_SWS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
576 { "vobsub", &mp_msg_levels[MSGT_VOBSUB], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
577 { "subreader", &mp_msg_levels[MSGT_SUBREADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
578 { "afilter", &mp_msg_levels[MSGT_AFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
579 { "netst", &mp_msg_levels[MSGT_NETST], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
580 { "muxer", &mp_msg_levels[MSGT_MUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
581 { "osd-menu", &mp_msg_levels[MSGT_OSD_MENU], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
582 { "identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
583 {"help", "Available msg modules:\n"
584 " global - common player errors/information\n"
585 " cplayer - console player (mplayer.c)\n"
586 " gplayer - gui player\n"
587 " vo - libvo\n"
588 " ao - libao\n"
589 " demuxer - demuxer.c (general stuff)\n"
590 " ds - demux stream (add/read packet etc)\n"
591 " demux - fileformat-specific stuff (demux_*.c)\n"
592 " header - fileformat-specific header (*header.c)\n"
593 " avsync - mplayer.c timer stuff\n"
594 " autoq - mplayer.c auto-quality stuff\n"
595 " cfgparser - cfgparser.c\n"
596 " decaudio - av decoder\n"
597 " decvideo\n"
598 " seek - seeking code\n"
599 " win32 - win32 dll stuff\n"
600 " open - open.c (stream opening)\n"
601 " dvd - open.c (DVD init/read/seek)\n"
602 " parsees - parse_es.c (mpeg stream parser)\n"
603 " lirc - lirc_mp.c and input lirc driver\n"
604 " stream - stream.c\n"
605 " cache - cache2.c\n"
606 " mencoder\n"
607 " xacodec - XAnim codecs\n"
608 " tv - TV input subsystem\n"
609 " osdep - OS Dependant parts (linux/ for now)\n"
610 " spudec - spudec.c\n"
611 " playtree - Playtree handeling (playtree.c, playtreeparser.c)\n"
612 " input\n"
613 " vfilter\n"
614 " osd\n"
615 " network\n"
616 " cpudetect\n"
617 " codeccfg\n"
618 " sws\n"
619 " vobsub\n"
620 " subreader\n"
621 " osd-menu - OSD menu messages\n"
622 " afilter - Audio filter messages\n"
623 " netst - Netstream\n"
624 " muxer - muxer layer\n"
625 " identify - identify output\n"
626 "\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
627 {NULL, NULL, 0, 0, 0, 0, NULL}
631 #ifdef WIN32
633 extern char * proc_priority;
635 struct {
636 char* name;
637 int prio;
638 } priority_presets_defs[] = {
639 { "realtime", REALTIME_PRIORITY_CLASS},
640 { "high", HIGH_PRIORITY_CLASS},
641 #ifdef ABOVE_NORMAL_PRIORITY_CLASS
642 { "abovenormal", ABOVE_NORMAL_PRIORITY_CLASS},
643 #endif
644 { "normal", NORMAL_PRIORITY_CLASS},
645 #ifdef BELOW_NORMAL_PRIORITY_CLASS
646 { "belownormal", BELOW_NORMAL_PRIORITY_CLASS},
647 #endif
648 { "idle", IDLE_PRIORITY_CLASS},
649 { NULL, NORMAL_PRIORITY_CLASS} /* default */
651 #endif /* WIN32 */
653 #ifdef USE_LIBAVCODEC
654 extern m_option_t lavc_decode_opts_conf[];
655 #endif
657 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
658 extern m_option_t xvid_dec_opts[];
659 #endif
661 int dvd_parse_chapter_range(m_option_t*, const char*);
663 #endif