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
},
10 {"msgcharset", &mp_msg_charset
, CONF_TYPE_STRING
, CONF_GLOBAL
, 0, 0, NULL
},
12 {"include", cfg_include
, CONF_TYPE_FUNC_PARAM
, CONF_NOSAVE
, 0, 0, NULL
},
14 {"priority", &proc_priority
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
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
},
25 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
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
},
31 {"dvdnav", "-dvdnav is deprecated, use dvdnav:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
32 {"skipopening", &dvd_nav_skip_opening
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
33 {"noskipopening", &dvd_nav_skip_opening
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
36 {"dvd-device", &dvd_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
37 {"dvd", "-dvd N is deprecated, use dvd://N instead.\n" , CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
38 {"dvdangle", &dvd_angle
, CONF_TYPE_INT
, CONF_RANGE
, 1, 99, NULL
},
39 {"chapter", dvd_parse_chapter_range
, CONF_TYPE_FUNC_PARAM
, 0, 0, 0, NULL
},
41 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
42 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
44 {"alang", &audio_lang
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
45 {"slang", &dvdsub_lang
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
47 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
48 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
49 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
51 #ifdef MPLAYER_NETWORK
52 {"user", &network_username
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
53 {"passwd", &network_password
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
54 {"bandwidth", &network_bandwidth
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
55 {"user-agent", &network_useragent
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
56 {"cookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
57 {"nocookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
58 {"cookies-file", &cookies_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
59 {"prefer-ipv4", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
60 {"ipv4-only-proxy", &network_ipv4_only_proxy
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
62 {"prefer-ipv6", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
64 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
68 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
69 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
70 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
71 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
74 #ifdef STREAMING_LIVE555
75 {"sdp", "-sdp is obsolete, use sdp://file instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
76 // -rtsp-stream-over-tcp option, specifying TCP streaming of RTP/RTCP
77 {"rtsp-stream-over-tcp", &rtspStreamOverTCP
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
78 {"rtsp-port", &rtsp_port
, CONF_TYPE_INT
, CONF_RANGE
, -1, 65535, NULL
},
80 {"rtsp-stream-over-tcp", "RTSP support requires the \"LIVE555 Streaming Media\" libraries.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
81 {"rtsp-port", "RTSP support requires the \"LIVE555 Streaming Media\" libraries.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
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
},
119 { "cdda", &cdda_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
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
},
134 {"tv", tvopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
136 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
138 {"vivo", vivoopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
139 #ifdef HAS_DVBIN_SUPPORT
140 {"dvbin", dvbin_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
143 // ------------------------- a-v sync options --------------------
145 // AVI specific: A-V sync mode (bps vs. interleaving)
146 {"bps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
147 {"nobps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
149 // set A-V sync correction speed (0=disables it):
150 {"mc", &default_max_pts_correction
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
152 // force video/audio rate:
153 {"fps", &force_fps
, CONF_TYPE_FLOAT
, CONF_MIN
, 0, 0, NULL
},
154 {"srate", &force_srate
, CONF_TYPE_INT
, CONF_RANGE
, 1000, 8*48000, NULL
},
155 {"channels", &audio_output_channels
, CONF_TYPE_INT
, CONF_RANGE
, 1, 6, NULL
},
156 {"format", &audio_output_format
, CONF_TYPE_AFMT
, 0, 0, 0, NULL
},
157 {"speed", &playback_speed
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.01, 100.0, NULL
},
160 {"delay", &audio_delay
, CONF_TYPE_FLOAT
, CONF_RANGE
, -100.0, 100.0, NULL
},
162 // ignore header-specified delay (dwStart)
163 {"ignore-start", &ignore_start
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
164 {"noignore-start", &ignore_start
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
167 {"a52drc", &a52_drc_level
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 1, NULL
},
170 // ------------------------- codec/vfilter options --------------------
172 // MP3-only: select stereo/left/right
174 {"stereo", &fakemono
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
178 {"sound", &audio_id
, CONF_TYPE_FLAG
, 0, -2, -1, NULL
},
179 {"nosound", &audio_id
, CONF_TYPE_FLAG
, 0, -1, -2, NULL
},
181 {"af-adv", audio_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
182 {"af", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
184 {"vop*", &vo_plugin_args
, CONF_TYPE_OBJ_SETTINGS_LIST
, 0, 0, 0,&vf_obj_list
},
185 {"vf*", &vf_settings
, CONF_TYPE_OBJ_SETTINGS_LIST
, 0, 0, 0, &vf_obj_list
},
186 // select audio/video codec (by name) or codec family (by number):
187 // {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 22, NULL}, // keep ranges in sync
188 // {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 29, NULL}, // with codec-cfg.c
189 // {"afm", &audio_fm, CONF_TYPE_STRING, 0, 0, 0, NULL},
190 {"afm", &audio_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
191 {"vfm", &video_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
192 // {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0, NULL},
193 {"ac", &audio_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
194 {"vc", &video_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
197 {"divxq", "-divxq has been renamed to -pp (postprocessing), use -pp.\n",
198 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
199 #ifdef USE_LIBAVCODEC
200 {"pp", &divx_quality
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
202 #ifdef HAVE_ODIVX_POSTPROCESS
203 {"oldpp", &use_old_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
205 {"oldpp", "MPlayer was compiled without the OpenDivX library.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
207 {"npp", "-npp has been removed, use -vf pp and read the fine manual.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
208 #if defined(USE_LIBPOSTPROC) || defined(USE_LIBPOSTPROC_SO)
209 {"pphelp", &pp_help
, CONF_TYPE_PRINT_INDIRECT
, CONF_NOCFG
, 0, 0, NULL
},
213 {"sws", &sws_flags
, CONF_TYPE_INT
, 0, 0, 2, NULL
},
214 {"ssf", scaler_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
215 {"zoom", &softzoom
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
216 {"nozoom", &softzoom
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
217 {"aspect", &movie_aspect
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.2, 3.0, NULL
},
218 {"noaspect", &movie_aspect
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
219 {"xy", &screen_size_xy
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.001, 4096, NULL
},
221 {"flip", &flip
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
222 {"noflip", &flip
, CONF_TYPE_FLAG
, 0, -1, 0, NULL
},
223 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
225 {"tsprog", &ts_prog
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65534, NULL
},
226 #define TS_MAX_PROBE_SIZE 2000000 /* don't forget to change this in libmpdemux/demux_ts.c too */
227 {"tsprobe", &ts_probe
, CONF_TYPE_POSITION
, 0, 0, TS_MAX_PROBE_SIZE
, NULL
},
228 {"tskeepbroken", &ts_keep_broken
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
230 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
231 {"slices", &vd_use_slices
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
232 {"noslices", &vd_use_slices
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
234 #ifdef USE_LIBAVCODEC
235 {"lavdopts", lavc_decode_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
237 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
238 {"xvidopts", xvid_dec_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
240 {"codecs-file", &codecs_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
241 // ------------------------- subtitles options --------------------
244 {"sub", &sub_name
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
246 {"fribidi-charset", &fribidi_charset
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
247 {"flip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
248 {"noflip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
249 {"flip-hebrew-commas", &fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
250 {"noflip-hebrew-commas", &fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
252 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
253 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
254 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
255 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
256 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
259 {"subcp", &sub_cp
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
261 {"subdelay", &sub_delay
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
262 {"subfps", &sub_fps
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
263 {"autosub", &sub_auto
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
264 {"noautosub", &sub_auto
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
265 {"unicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
266 {"nounicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
267 {"utf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
268 {"noutf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
269 {"forcedsubsonly", &forced_subs_only
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
270 // specify IFO file for VOBSUB subtitle
271 {"ifo", &spudec_ifo
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
272 // enable Closed Captioning display
273 {"subcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
274 {"nosubcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
275 {"overlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
276 {"nooverlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
277 {"sub-bg-color", &sub_bg_color
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
278 {"sub-bg-alpha", &sub_bg_alpha
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
279 {"sub-no-text-pp", &sub_no_text_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
280 {"sub-fuzziness", &sub_match_fuzziness
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
283 {"font", &font_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
284 {"ffactor", &font_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 10.0, NULL
},
285 {"subpos", &sub_pos
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
286 {"subalign", &sub_alignment
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
287 {"subwidth", &sub_width_p
, CONF_TYPE_INT
, CONF_RANGE
, 10, 100, NULL
},
288 {"spualign", &spu_alignment
, CONF_TYPE_INT
, CONF_RANGE
, -1, 2, NULL
},
289 {"spuaa", &spu_aamode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
290 {"spugauss", &spu_gaussvar
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 3.0, NULL
},
292 {"subfont-encoding", &subtitle_font_encoding
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
293 {"subfont-text-scale", &text_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
294 {"subfont-osd-scale", &osd_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
295 {"subfont-blur", &subtitle_font_radius
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
296 {"subfont-outline", &subtitle_font_thickness
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
297 {"subfont-autoscale", &subtitle_autoscale
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
299 #ifdef HAVE_FONTCONFIG
300 {"fontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
301 {"nofontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
303 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
304 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
314 extern char *mp_msg_charset
;
316 // codec/filter opts: (defined at libmpcodecs/vd.c)
317 extern float screen_size_xy
;
318 extern float movie_aspect
;
321 extern int vd_use_slices
;
322 extern int divx_quality
;
324 /* defined in codec-cfg.c */
325 extern char * codecs_file
;
327 /* from dec_audio, currently used for ac3surround decoder only */
328 extern int audio_output_channels
;
330 #ifdef MPLAYER_NETWORK
331 /* defined in network.c */
332 extern char *network_username
;
333 extern char *network_password
;
334 extern int network_bandwidth
;
335 extern char *network_useragent
;
336 extern int network_cookies_enabled
;
337 extern char *cookies_file
;
339 extern int network_prefer_ipv4
;
340 extern int network_ipv4_only_proxy
;
344 extern float a52_drc_level
;
346 /* defined in libmpdemux: */
347 extern int hr_mp3_seek
;
348 extern m_option_t demux_rawaudio_opts
[];
349 extern m_option_t demux_rawvideo_opts
[];
350 extern m_option_t cdda_opts
[];
352 extern char* audio_stream
;
353 extern char* sub_stream
;
354 extern int demuxer_type
, audio_demuxer_type
, sub_demuxer_type
;
356 extern int ts_keep_broken
;
357 extern off_t ts_probe
;
359 #include "libmpdemux/tv.h"
361 extern char* edl_filename
;
362 extern char* edl_output_filename
;
365 m_option_t tvopts_conf
[]={
366 {"on", "-tv on is deprecated, use tv:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
367 {"immediatemode", &tv_param_immediate
, CONF_TYPE_INT
, CONF_RANGE
, 0, 1, NULL
},
368 {"noaudio", &tv_param_noaudio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
369 {"audiorate", &tv_param_audiorate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
370 {"driver", &tv_param_driver
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
371 {"device", &tv_param_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
372 {"freq", &tv_param_freq
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
373 {"channel", &tv_param_channel
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
374 {"chanlist", &tv_param_chanlist
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
375 {"norm", &tv_param_norm
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
377 {"normid", &tv_param_normid
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
379 {"width", &tv_param_width
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
380 {"height", &tv_param_height
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
381 {"input", &tv_param_input
, CONF_TYPE_INT
, 0, 0, 20, NULL
},
382 {"outfmt", &tv_param_outfmt
, CONF_TYPE_IMGFMT
, 0, 0, 0, NULL
},
383 {"fps", &tv_param_fps
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
384 {"channels", &tv_param_channels
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
385 {"brightness", &tv_param_brightness
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
386 {"contrast", &tv_param_contrast
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
387 {"hue", &tv_param_hue
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
388 {"saturation", &tv_param_saturation
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
389 #if defined(HAVE_TV_V4L) || defined(HAVE_TV_V4L2)
390 {"amode", &tv_param_amode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
391 {"volume", &tv_param_volume
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
392 {"bass", &tv_param_bass
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
393 {"treble", &tv_param_treble
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
394 {"balance", &tv_param_balance
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
395 {"forcechan", &tv_param_forcechan
, CONF_TYPE_INT
, CONF_RANGE
, 1, 2, NULL
},
396 {"forceaudio", &tv_param_force_audio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
397 {"buffersize", &tv_param_buffer_size
, CONF_TYPE_INT
, CONF_RANGE
, 16, 1024, NULL
},
398 {"mjpeg", &tv_param_mjpeg
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
399 {"decimation", &tv_param_decimation
, CONF_TYPE_INT
, CONF_RANGE
, 1, 4, NULL
},
400 {"quality", &tv_param_quality
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
401 #if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
402 {"alsa", &tv_param_alsa
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
404 {"adevice", &tv_param_adevice
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
406 {"audioid", &tv_param_audio_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 9, NULL
},
407 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
411 #ifdef HAS_DVBIN_SUPPORT
412 #include "libmpdemux/dvbin.h"
413 extern m_config_t dvbin_opts_conf
[];
417 extern char *fribidi_charset
;
418 extern int flip_hebrew
;
421 #ifdef STREAMING_LIVE555
422 extern int rtspStreamOverTCP
;
423 extern int rtsp_port
;
427 extern int audio_stream_cache
;
429 extern int sws_chr_vshift
;
430 extern int sws_chr_hshift
;
431 extern float sws_chr_gblur
;
432 extern float sws_lum_gblur
;
433 extern float sws_chr_sharpen
;
434 extern float sws_lum_sharpen
;
436 m_option_t scaler_filter_conf
[]={
437 {"lgb", &sws_lum_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
438 {"cgb", &sws_chr_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
439 {"cvs", &sws_chr_vshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
440 {"chs", &sws_chr_hshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
441 {"ls", &sws_lum_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
442 {"cs", &sws_chr_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
443 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
446 /* VIVO demuxer options: */
447 extern int vivo_param_version
;
448 extern char *vivo_param_acodec
;
449 extern int vivo_param_abitrate
;
450 extern int vivo_param_samplerate
;
451 extern int vivo_param_bytesperblock
;
452 extern int vivo_param_width
;
453 extern int vivo_param_height
;
454 extern int vivo_param_vformat
;
455 extern char *dvd_device
, *cdrom_device
;
457 m_option_t vivoopts_conf
[]={
458 {"version", &vivo_param_version
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
460 {"acodec", &vivo_param_acodec
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
461 {"abitrate", &vivo_param_abitrate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
462 {"samplerate", &vivo_param_samplerate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
463 {"bytesperblock", &vivo_param_bytesperblock
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
465 {"width", &vivo_param_width
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
466 {"height", &vivo_param_height
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
467 {"vformat", &vivo_param_vformat
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
468 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
474 extern char * mf_type
;
475 extern m_obj_settings_t
* vf_settings
;
476 extern m_obj_list_t vf_obj_list
;
478 m_option_t mfopts_conf
[]={
479 {"on", "-mf on is deprecated, use mf:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
480 {"w", &mf_w
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
481 {"h", &mf_h
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
482 {"fps", &mf_fps
, CONF_TYPE_FLOAT
, 0, 0, 0, NULL
},
483 {"type", &mf_type
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
484 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
487 extern m_obj_settings_t
* vo_plugin_args
;
489 #include "libaf/af.h"
490 extern af_cfg_t af_cfg
; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
491 m_option_t audio_filter_conf
[]={
492 {"list", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
493 {"force", &af_cfg
.force
, CONF_TYPE_INT
, CONF_RANGE
, 0, 7, NULL
},
494 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
497 m_option_t msgl_config
[]={
498 { "all", &mp_msg_level_all
, CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
500 { "global", &mp_msg_levels
[MSGT_GLOBAL
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
501 { "cplayer", &mp_msg_levels
[MSGT_CPLAYER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
502 { "gplayer", &mp_msg_levels
[MSGT_GPLAYER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
503 { "vo", &mp_msg_levels
[MSGT_VO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
504 { "ao", &mp_msg_levels
[MSGT_AO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
505 { "demuxer", &mp_msg_levels
[MSGT_DEMUXER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
506 { "ds", &mp_msg_levels
[MSGT_DS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
507 { "demux", &mp_msg_levels
[MSGT_DEMUX
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
508 { "header", &mp_msg_levels
[MSGT_HEADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
509 { "avsync", &mp_msg_levels
[MSGT_AVSYNC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
510 { "autoq", &mp_msg_levels
[MSGT_AUTOQ
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
511 { "cfgparser", &mp_msg_levels
[MSGT_CFGPARSER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
512 { "decaudio", &mp_msg_levels
[MSGT_DECAUDIO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
513 { "decvideo", &mp_msg_levels
[MSGT_DECVIDEO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
514 { "seek", &mp_msg_levels
[MSGT_SEEK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
515 { "win32", &mp_msg_levels
[MSGT_WIN32
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
516 { "open", &mp_msg_levels
[MSGT_OPEN
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
517 { "dvd", &mp_msg_levels
[MSGT_DVD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
518 { "parsees", &mp_msg_levels
[MSGT_PARSEES
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
519 { "lirc", &mp_msg_levels
[MSGT_LIRC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
520 { "stream", &mp_msg_levels
[MSGT_STREAM
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
521 { "cache", &mp_msg_levels
[MSGT_CACHE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
522 { "mencoder", &mp_msg_levels
[MSGT_MENCODER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
523 { "xacodec", &mp_msg_levels
[MSGT_XACODEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
524 { "tv", &mp_msg_levels
[MSGT_TV
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
525 { "osdep", &mp_msg_levels
[MSGT_OSDEP
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
526 { "spudec", &mp_msg_levels
[MSGT_SPUDEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
527 { "playtree", &mp_msg_levels
[MSGT_PLAYTREE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
528 { "input", &mp_msg_levels
[MSGT_INPUT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
529 { "vfilter", &mp_msg_levels
[MSGT_VFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
530 { "osd", &mp_msg_levels
[MSGT_OSD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
531 { "network", &mp_msg_levels
[MSGT_NETWORK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
532 { "cpudetect", &mp_msg_levels
[MSGT_CPUDETECT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
533 { "codeccfg", &mp_msg_levels
[MSGT_CODECCFG
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
534 { "sws", &mp_msg_levels
[MSGT_SWS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
535 { "vobsub", &mp_msg_levels
[MSGT_VOBSUB
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
536 { "subreader", &mp_msg_levels
[MSGT_SUBREADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
537 { "afilter", &mp_msg_levels
[MSGT_AFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
538 { "netst", &mp_msg_levels
[MSGT_NETST
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
539 { "muxer", &mp_msg_levels
[MSGT_MUXER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
540 { "osd-menu", &mp_msg_levels
[MSGT_OSD_MENU
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
541 { "identify", &mp_msg_levels
[MSGT_IDENTIFY
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
542 {"help", "Available msg modules:\n"
543 " global - common player errors/information\n"
544 " cplayer - console player (mplayer.c)\n"
545 " gplayer - gui player\n"
548 " demuxer - demuxer.c (general stuff)\n"
549 " ds - demux stream (add/read packet etc)\n"
550 " demux - fileformat-specific stuff (demux_*.c)\n"
551 " header - fileformat-specific header (*header.c)\n"
552 " avsync - mplayer.c timer stuff\n"
553 " autoq - mplayer.c auto-quality stuff\n"
554 " cfgparser - cfgparser.c\n"
555 " decaudio - av decoder\n"
557 " seek - seeking code\n"
558 " win32 - win32 dll stuff\n"
559 " open - open.c (stream opening)\n"
560 " dvd - open.c (DVD init/read/seek)\n"
561 " parsees - parse_es.c (mpeg stream parser)\n"
562 " lirc - lirc_mp.c and input lirc driver\n"
563 " stream - stream.c\n"
564 " cache - cache2.c\n"
566 " xacodec - XAnim codecs\n"
567 " tv - TV input subsystem\n"
568 " osdep - OS Dependant parts (linux/ for now)\n"
569 " spudec - spudec.c\n"
570 " playtree - Playtree handeling (playtree.c, playtreeparser.c)\n"
580 " osd-menu - OSD menu messages\n"
581 " afilter - Audio filter messages\n"
582 " netst - Netstream\n"
583 " muxer - muxer layer\n"
584 " identify - identify output\n"
585 "\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
590 extern char * proc_priority
;
595 } priority_presets_defs
[] = {
596 { "realtime", REALTIME_PRIORITY_CLASS
},
597 { "high", HIGH_PRIORITY_CLASS
},
598 #ifdef ABOVE_NORMAL_PRIORITY_CLASS
599 { "abovenormal", ABOVE_NORMAL_PRIORITY_CLASS
},
601 { "normal", NORMAL_PRIORITY_CLASS
},
602 #ifdef BELOW_NORMAL_PRIORITY_CLASS
603 { "belownormal", BELOW_NORMAL_PRIORITY_CLASS
},
605 { "idle", IDLE_PRIORITY_CLASS
},
606 { NULL
, NORMAL_PRIORITY_CLASS
} /* default */
610 #ifdef USE_LIBAVCODEC
611 extern m_option_t lavc_decode_opts_conf
[];
614 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
615 extern m_option_t xvid_dec_opts
[];
618 int dvd_parse_chapter_range(m_option_t
*, const char*);