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 {"include", cfg_include
, CONF_TYPE_FUNC_PARAM
, CONF_NOSAVE
, 0, 0, NULL
},
11 {"priority", &proc_priority
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
14 // ------------------------- stream options --------------------
16 #ifdef USE_STREAM_CACHE
17 {"cache", &stream_cache_size
, CONF_TYPE_INT
, CONF_RANGE
, 32, 1048576, NULL
},
18 {"nocache", &stream_cache_size
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
19 {"cache-min", &stream_cache_min_percent
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 99, NULL
},
20 {"cache-seek-min", &stream_cache_seek_min_percent
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 99, NULL
},
22 {"cache", "MPlayer was compiled without cache2 support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
24 {"vcd", "-vcd N is deprecated, use vcd://N instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
},
25 {"cuefile", "-cuefile is deprecated, use cue://filename:N where N is the track number.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
26 {"cdrom-device", &cdrom_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
28 {"dvdnav", "-dvdnav is deprecated, use dvdnav:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
29 {"skipopening", &dvd_nav_skip_opening
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
30 {"noskipopening", &dvd_nav_skip_opening
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
33 {"dvd-device", &dvd_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
34 {"dvd", "-dvd N is deprecated, use dvd://N instead.\n" , CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
35 {"dvdangle", &dvd_angle
, CONF_TYPE_INT
, CONF_RANGE
, 1, 99, NULL
},
36 {"chapter", dvd_parse_chapter_range
, CONF_TYPE_FUNC_PARAM
, 0, 0, 0, NULL
},
38 {"dvd-device", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
39 {"dvd", "MPlayer was compiled without libdvdread support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
41 {"alang", &audio_lang
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
42 {"slang", &dvdsub_lang
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
44 {"dvdauth", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
45 {"dvdkey", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
46 {"csslib", "libcss is obsolete. Try libdvdread instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
48 #ifdef MPLAYER_NETWORK
49 {"user", &network_username
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
50 {"passwd", &network_password
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
51 {"bandwidth", &network_bandwidth
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
52 {"user-agent", &network_useragent
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
53 {"cookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
54 {"nocookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
55 {"cookies-file", &cookies_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
56 {"prefer-ipv4", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
57 {"ipv4-only-proxy", &network_ipv4_only_proxy
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
59 {"prefer-ipv6", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
61 {"prefer-ipv6", "MPlayer was compiled without IPv6 support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
65 {"user", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
66 {"passwd", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
67 {"bandwidth", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
68 {"user-agent", "MPlayer was compiled without streaming (network) support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
72 // ------------------------- demuxer options --------------------
74 // number of frames to play/convert
75 {"frames", &play_n_frames_mf
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
77 // seek to byte/seconds position
78 {"sb", &seek_to_byte
, CONF_TYPE_POSITION
, CONF_MIN
, 0, 0, NULL
},
79 {"ss", &seek_to_sec
, CONF_TYPE_STRING
, CONF_MIN
, 0, 0, NULL
},
82 {"edl", &edl_filename
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
84 {"edl", "MPlayer was compiled without EDL support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
86 // AVI specific: force non-interleaved mode
87 {"ni", &force_ni
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
88 {"noni", &force_ni
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
90 // AVI and Ogg only: (re)build index at startup
91 {"noidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 0, NULL
},
92 {"idx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
93 {"forceidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 2, NULL
},
94 {"saveidx", &index_file_save
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
95 {"loadidx", &index_file_load
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
97 // select audio/video/subtitle stream
98 {"aid", &audio_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 8190, NULL
},
99 {"vid", &video_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 8190, NULL
},
100 {"sid", &dvdsub_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 8190, NULL
},
101 {"novideo", &video_id
, CONF_TYPE_FLAG
, 0, -1, -2, NULL
},
103 { "hr-mp3-seek", &hr_mp3_seek
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
104 { "nohr-mp3-seek", &hr_mp3_seek
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
106 { "rawaudio", &demux_rawaudio_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
107 { "rawvideo", &demux_rawvideo_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
110 { "cdda", &cdda_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
113 // demuxer.c - select audio/sub file/demuxer
114 { "audiofile", &audio_stream
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
115 { "audiofile-cache", &audio_stream_cache
, CONF_TYPE_INT
, CONF_RANGE
, 50, 65536, NULL
},
116 { "subfile", &sub_stream
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
117 { "demuxer", &demuxer_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
118 { "audio-demuxer", &audio_demuxer_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
119 { "sub-demuxer", &sub_demuxer_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
120 { "extbased", &extension_parsing
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
121 { "noextbased", &extension_parsing
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
123 {"mf", mfopts_conf
, CONF_TYPE_SUBCONFIG
, 0,0,0, NULL
},
125 {"tv", tvopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
127 {"tv", "MPlayer was compiled without TV interface support.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
129 {"vivo", vivoopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
130 #ifdef HAS_DVBIN_SUPPORT
131 {"dvbin", dvbin_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
134 // ------------------------- a-v sync options --------------------
136 // AVI specific: A-V sync mode (bps vs. interleaving)
137 {"bps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
138 {"nobps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
140 // set A-V sync correction speed (0=disables it):
141 {"mc", &default_max_pts_correction
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 10, NULL
},
143 // force video/audio rate:
144 {"fps", &force_fps
, CONF_TYPE_FLOAT
, CONF_MIN
, 0, 0, NULL
},
145 {"srate", &force_srate
, CONF_TYPE_INT
, CONF_RANGE
, 1000, 8*48000, NULL
},
146 {"channels", &audio_output_channels
, CONF_TYPE_INT
, CONF_RANGE
, 1, 6, NULL
},
147 {"format", &audio_output_format
, CONF_TYPE_AFMT
, 0, 0, 0, NULL
},
148 {"speed", &playback_speed
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.01, 100.0, NULL
},
151 {"delay", &audio_delay
, CONF_TYPE_FLOAT
, CONF_RANGE
, -100.0, 100.0, NULL
},
154 {"a52drc", &a52_drc_level
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 1, NULL
},
157 // ------------------------- codec/vfilter options --------------------
159 // MP3-only: select stereo/left/right
161 {"stereo", &fakemono
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
165 {"sound", &audio_id
, CONF_TYPE_FLAG
, 0, -2, -1, NULL
},
166 {"nosound", &audio_id
, CONF_TYPE_FLAG
, 0, -1, -2, NULL
},
168 {"af-adv", audio_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
169 {"af", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
171 {"vop*", &vo_plugin_args
, CONF_TYPE_OBJ_SETTINGS_LIST
, 0, 0, 0,&vf_obj_list
},
172 {"vf*", &vf_settings
, CONF_TYPE_OBJ_SETTINGS_LIST
, 0, 0, 0, &vf_obj_list
},
173 // select audio/video codec (by name) or codec family (by number):
174 // {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 22, NULL}, // keep ranges in sync
175 // {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 29, NULL}, // with codec-cfg.c
176 // {"afm", &audio_fm, CONF_TYPE_STRING, 0, 0, 0, NULL},
177 {"afm", &audio_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
178 {"vfm", &video_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
179 // {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0, NULL},
180 {"ac", &audio_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
181 {"vc", &video_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
184 {"divxq", "-divxq has been renamed to -pp (postprocessing), use -pp.\n",
185 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
186 #ifdef USE_LIBAVCODEC
187 {"pp", &divx_quality
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
189 #ifdef HAVE_ODIVX_POSTPROCESS
190 {"oldpp", &use_old_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
192 {"oldpp", "MPlayer was compiled without the OpenDivX library.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
194 {"npp", "-npp has been removed, use -vf pp and read the fine manual.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
195 #if defined(USE_LIBPOSTPROC) || defined(USE_LIBPOSTPROC_SO)
196 {"pphelp", &pp_help
, CONF_TYPE_PRINT_INDIRECT
, CONF_NOCFG
, 0, 0, NULL
},
200 {"sws", &sws_flags
, CONF_TYPE_INT
, 0, 0, 2, NULL
},
201 {"ssf", scaler_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
202 {"zoom", &softzoom
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
203 {"nozoom", &softzoom
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
204 {"aspect", &movie_aspect
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.2, 3.0, NULL
},
205 {"noaspect", &movie_aspect
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
206 {"xy", &screen_size_xy
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.001, 4096, NULL
},
208 {"flip", &flip
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
209 {"noflip", &flip
, CONF_TYPE_FLAG
, 0, -1, 0, NULL
},
210 {"tsfastparse", "-tsfastparse is no longer a valid option.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
212 {"tsprog", &ts_prog
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65534, NULL
},
213 #define TS_MAX_PROBE_SIZE 2000000 /* don't forget to change this in libmpdemux/demux_ts.c too */
214 {"tsprobe", &ts_probe
, CONF_TYPE_POSITION
, 0, 0, TS_MAX_PROBE_SIZE
, NULL
},
215 {"tskeepbroken", &ts_keep_broken
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
217 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
218 {"slices", &vd_use_slices
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
219 {"noslices", &vd_use_slices
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
221 #ifdef USE_LIBAVCODEC
222 {"lavdopts", lavc_decode_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
224 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
225 {"xvidopts", xvid_dec_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
227 {"codecs-file", &codecs_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
228 // ------------------------- subtitles options --------------------
231 {"sub", &sub_name
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
233 {"fribidi-charset", &fribidi_charset
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
234 {"flip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
235 {"noflip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
236 {"flip-hebrew-commas", &fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
237 {"noflip-hebrew-commas", &fribidi_flip_commas
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
239 {"fribidi-charset", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
240 {"flip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
241 {"noflip-hebrew", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
242 {"flip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
243 {"noflip-hebrew-commas", "MPlayer was compiled without FriBiDi support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
246 {"subcp", &sub_cp
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
248 {"subdelay", &sub_delay
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
249 {"subfps", &sub_fps
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
250 {"autosub", &sub_auto
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
251 {"noautosub", &sub_auto
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
252 {"unicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
253 {"nounicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
254 {"utf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
255 {"noutf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
256 {"forcedsubsonly", &forced_subs_only
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
257 // specify IFO file for VOBSUB subtitle
258 {"ifo", &spudec_ifo
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
259 // enable Closed Captioning display
260 {"subcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
261 {"nosubcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
262 {"overlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
263 {"nooverlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
264 {"sub-bg-color", &sub_bg_color
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
265 {"sub-bg-alpha", &sub_bg_alpha
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
266 {"sub-no-text-pp", &sub_no_text_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
267 {"sub-fuzziness", &sub_match_fuzziness
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
270 {"font", &font_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
271 {"ffactor", &font_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 10.0, NULL
},
272 {"subpos", &sub_pos
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
273 {"subalign", &sub_alignment
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
274 {"subwidth", &sub_width_p
, CONF_TYPE_INT
, CONF_RANGE
, 10, 100, NULL
},
275 {"spualign", &spu_alignment
, CONF_TYPE_INT
, CONF_RANGE
, -1, 2, NULL
},
276 {"spuaa", &spu_aamode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
277 {"spugauss", &spu_gaussvar
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 3.0, NULL
},
279 {"subfont-encoding", &subtitle_font_encoding
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
280 {"subfont-text-scale", &text_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
281 {"subfont-osd-scale", &osd_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
282 {"subfont-blur", &subtitle_font_radius
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
283 {"subfont-outline", &subtitle_font_thickness
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
284 {"subfont-autoscale", &subtitle_autoscale
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
286 #ifdef HAVE_FONTCONFIG
287 {"fontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
288 {"nofontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
290 {"fontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
291 {"nofontconfig", "MPlayer was compiled without fontconfig support.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
302 // codec/filter opts: (defined at libmpcodecs/vd.c)
303 extern float screen_size_xy
;
304 extern float movie_aspect
;
307 extern int vd_use_slices
;
308 extern int divx_quality
;
310 /* defined in codec-cfg.c */
311 extern char * codecs_file
;
313 /* from dec_audio, currently used for ac3surround decoder only */
314 extern int audio_output_channels
;
316 #ifdef MPLAYER_NETWORK
317 /* defined in network.c */
318 extern char *network_username
;
319 extern char *network_password
;
320 extern int network_bandwidth
;
321 extern char *network_useragent
;
322 extern int network_cookies_enabled
;
323 extern char *cookies_file
;
325 extern int network_prefer_ipv4
;
326 extern int network_ipv4_only_proxy
;
330 extern float a52_drc_level
;
332 /* defined in libmpdemux: */
333 extern int hr_mp3_seek
;
334 extern m_option_t demux_rawaudio_opts
[];
335 extern m_option_t demux_rawvideo_opts
[];
336 extern m_option_t cdda_opts
[];
338 extern char* audio_stream
;
339 extern char* sub_stream
;
340 extern int demuxer_type
, audio_demuxer_type
, sub_demuxer_type
;
342 extern int ts_keep_broken
;
343 extern off_t ts_probe
;
345 #include "libmpdemux/tv.h"
348 extern char* edl_filename
;
349 extern char* edl_output_filename
;
353 m_option_t tvopts_conf
[]={
354 {"on", "-tv on is deprecated, use tv:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
355 {"immediatemode", &tv_param_immediate
, CONF_TYPE_INT
, CONF_RANGE
, 0, 1, NULL
},
356 {"noaudio", &tv_param_noaudio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
357 {"audiorate", &tv_param_audiorate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
358 {"driver", &tv_param_driver
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
359 {"device", &tv_param_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
360 {"freq", &tv_param_freq
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
361 {"channel", &tv_param_channel
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
362 {"chanlist", &tv_param_chanlist
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
363 {"norm", &tv_param_norm
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
365 {"normid", &tv_param_normid
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
367 {"width", &tv_param_width
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
368 {"height", &tv_param_height
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
369 {"input", &tv_param_input
, CONF_TYPE_INT
, 0, 0, 20, NULL
},
370 {"outfmt", &tv_param_outfmt
, CONF_TYPE_IMGFMT
, 0, 0, 0, NULL
},
371 {"fps", &tv_param_fps
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
372 {"channels", &tv_param_channels
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
373 {"brightness", &tv_param_brightness
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
374 {"contrast", &tv_param_contrast
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
375 {"hue", &tv_param_hue
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
376 {"saturation", &tv_param_saturation
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
377 #if defined(HAVE_TV_V4L) || defined(HAVE_TV_V4L2)
378 {"amode", &tv_param_amode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
379 {"volume", &tv_param_volume
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
380 {"bass", &tv_param_bass
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
381 {"treble", &tv_param_treble
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
382 {"balance", &tv_param_balance
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
383 {"forcechan", &tv_param_forcechan
, CONF_TYPE_INT
, CONF_RANGE
, 1, 2, NULL
},
384 {"forceaudio", &tv_param_force_audio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
385 {"buffersize", &tv_param_buffer_size
, CONF_TYPE_INT
, CONF_RANGE
, 16, 1024, NULL
},
386 {"mjpeg", &tv_param_mjpeg
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
387 {"decimation", &tv_param_decimation
, CONF_TYPE_INT
, CONF_RANGE
, 1, 4, NULL
},
388 {"quality", &tv_param_quality
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
389 #if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
390 {"alsa", &tv_param_alsa
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
392 {"adevice", &tv_param_adevice
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
394 {"audioid", &tv_param_audio_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 9, NULL
},
395 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
399 #ifdef HAS_DVBIN_SUPPORT
400 #include "libmpdemux/dvbin.h"
401 extern m_config_t dvbin_opts_conf
[];
405 extern char *fribidi_charset
;
406 extern int flip_hebrew
;
410 extern int audio_stream_cache
;
412 extern int sws_chr_vshift
;
413 extern int sws_chr_hshift
;
414 extern float sws_chr_gblur
;
415 extern float sws_lum_gblur
;
416 extern float sws_chr_sharpen
;
417 extern float sws_lum_sharpen
;
419 m_option_t scaler_filter_conf
[]={
420 {"lgb", &sws_lum_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
421 {"cgb", &sws_chr_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
422 {"cvs", &sws_chr_vshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
423 {"chs", &sws_chr_hshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
424 {"ls", &sws_lum_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
425 {"cs", &sws_chr_sharpen
, CONF_TYPE_FLOAT
, 0, -100.0, 100.0, NULL
},
426 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
429 /* VIVO demuxer options: */
430 extern int vivo_param_version
;
431 extern char *vivo_param_acodec
;
432 extern int vivo_param_abitrate
;
433 extern int vivo_param_samplerate
;
434 extern int vivo_param_bytesperblock
;
435 extern int vivo_param_width
;
436 extern int vivo_param_height
;
437 extern int vivo_param_vformat
;
438 extern char *dvd_device
, *cdrom_device
;
440 m_option_t vivoopts_conf
[]={
441 {"version", &vivo_param_version
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
443 {"acodec", &vivo_param_acodec
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
444 {"abitrate", &vivo_param_abitrate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
445 {"samplerate", &vivo_param_samplerate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
446 {"bytesperblock", &vivo_param_bytesperblock
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
448 {"width", &vivo_param_width
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
449 {"height", &vivo_param_height
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
450 {"vformat", &vivo_param_vformat
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
451 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
457 extern char * mf_type
;
458 extern m_obj_settings_t
* vf_settings
;
459 extern m_obj_list_t vf_obj_list
;
461 m_option_t mfopts_conf
[]={
462 {"on", "-mf on is deprecated, use mf:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
463 {"w", &mf_w
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
464 {"h", &mf_h
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
465 {"fps", &mf_fps
, CONF_TYPE_FLOAT
, 0, 0, 0, NULL
},
466 {"type", &mf_type
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
467 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
470 extern m_obj_settings_t
* vo_plugin_args
;
472 #include "libaf/af.h"
473 extern af_cfg_t af_cfg
; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
474 m_option_t audio_filter_conf
[]={
475 {"list", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
476 {"force", &af_cfg
.force
, CONF_TYPE_INT
, CONF_RANGE
, 0, 7, NULL
},
477 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
480 m_option_t msgl_config
[]={
481 { "all", &mp_msg_level_all
, CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
483 { "global", &mp_msg_levels
[MSGT_GLOBAL
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
484 { "cplayer", &mp_msg_levels
[MSGT_CPLAYER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
485 { "gplayer", &mp_msg_levels
[MSGT_GPLAYER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
486 { "vo", &mp_msg_levels
[MSGT_VO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
487 { "ao", &mp_msg_levels
[MSGT_AO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
488 { "demuxer", &mp_msg_levels
[MSGT_DEMUXER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
489 { "ds", &mp_msg_levels
[MSGT_DS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
490 { "demux", &mp_msg_levels
[MSGT_DEMUX
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
491 { "header", &mp_msg_levels
[MSGT_HEADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
492 { "avsync", &mp_msg_levels
[MSGT_AVSYNC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
493 { "autoq", &mp_msg_levels
[MSGT_AUTOQ
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
494 { "cfgparser", &mp_msg_levels
[MSGT_CFGPARSER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
495 { "decaudio", &mp_msg_levels
[MSGT_DECAUDIO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
496 { "decvideo", &mp_msg_levels
[MSGT_DECVIDEO
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
497 { "seek", &mp_msg_levels
[MSGT_SEEK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
498 { "win32", &mp_msg_levels
[MSGT_WIN32
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
499 { "open", &mp_msg_levels
[MSGT_OPEN
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
500 { "dvd", &mp_msg_levels
[MSGT_DVD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
501 { "parsees", &mp_msg_levels
[MSGT_PARSEES
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
502 { "lirc", &mp_msg_levels
[MSGT_LIRC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
503 { "stream", &mp_msg_levels
[MSGT_STREAM
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
504 { "cache", &mp_msg_levels
[MSGT_CACHE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
505 { "mencoder", &mp_msg_levels
[MSGT_MENCODER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
506 { "xacodec", &mp_msg_levels
[MSGT_XACODEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
507 { "tv", &mp_msg_levels
[MSGT_TV
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
508 { "osdep", &mp_msg_levels
[MSGT_OSDEP
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
509 { "spudec", &mp_msg_levels
[MSGT_SPUDEC
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
510 { "playtree", &mp_msg_levels
[MSGT_PLAYTREE
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
511 { "input", &mp_msg_levels
[MSGT_INPUT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
512 { "vfilter", &mp_msg_levels
[MSGT_VFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
513 { "osd", &mp_msg_levels
[MSGT_OSD
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
514 { "network", &mp_msg_levels
[MSGT_NETWORK
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
515 { "cpudetect", &mp_msg_levels
[MSGT_CPUDETECT
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
516 { "codeccfg", &mp_msg_levels
[MSGT_CODECCFG
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
517 { "sws", &mp_msg_levels
[MSGT_SWS
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
518 { "vobsub", &mp_msg_levels
[MSGT_VOBSUB
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
519 { "subreader", &mp_msg_levels
[MSGT_SUBREADER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
520 { "afilter", &mp_msg_levels
[MSGT_AFILTER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
521 { "netst", &mp_msg_levels
[MSGT_NETST
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
522 { "muxer", &mp_msg_levels
[MSGT_MUXER
], CONF_TYPE_INT
, CONF_RANGE
, -1, 9, NULL
},
523 {"help", "\nAvailable msg mdoules:\n"
524 " global - common player errors/information\n"
525 " cplayer - console player (mplayer.c)\n"
526 " gplayer - gui player\n"
529 " demuxer - demuxer.c (general stuff)\n"
530 " ds - demux stream (add/read packet etc)\n"
531 " demux - fileformat-specific stuff (demux_*.c)\n"
532 " header - fileformat-specific header (*header.c)\n"
533 " avsync - mplayer.c timer stuff\n"
534 " autoq - mplayer.c auto-quality stuff\n"
535 " cfgparser - cfgparser.c\n"
536 " decaudio - av decoder\n"
538 " seek - seeking code\n"
539 " win32 - win32 dll stuff\n"
540 " open - open.c (stream opening)\n"
541 " dvd - open.c (DVD init/read/seek)\n"
542 " parsees - parse_es.c (mpeg stream parser)\n"
543 " lirc - lirc_mp.c and input lirc driver\n"
544 " stream - stream.c\n"
545 " cache - cache2.c\n"
547 " xacodec - XAnim codecs\n"
548 " tv - TV input subsystem\n"
549 " osdep - OS Dependant parts (linux/ for now)\n"
550 " spudec - spudec.c\n"
551 " playtree - Playtree handeling (playtree.c, playtreeparser.c)\n"
561 " afilter - Audio filter messages\n"
562 " netst - Netstream\n"
563 " muxer - muxer layer\n"
564 "\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
569 extern char * proc_priority
;
574 } priority_presets_defs
[] = {
575 { "realtime", REALTIME_PRIORITY_CLASS
},
576 { "high", HIGH_PRIORITY_CLASS
},
577 #ifdef ABOVE_NORMAL_PRIORITY_CLASS
578 { "abovenormal", ABOVE_NORMAL_PRIORITY_CLASS
},
580 { "normal", NORMAL_PRIORITY_CLASS
},
581 #ifdef BELOW_NORMAL_PRIORITY_CLASS
582 { "belownormal", BELOW_NORMAL_PRIORITY_CLASS
},
584 { "idle", IDLE_PRIORITY_CLASS
},
585 { NULL
, NORMAL_PRIORITY_CLASS
} /* default */
589 #ifdef USE_LIBAVCODEC
590 extern m_option_t lavc_decode_opts_conf
[];
593 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
594 extern m_option_t xvid_dec_opts
[];
597 int dvd_parse_chapter_range(m_option_t
*, const char*);