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 {"verbose", &verbose
, CONF_TYPE_INT
, CONF_RANGE
|CONF_GLOBAL
, 0, 100, NULL
},
7 {"v", cfg_inc_verbose
, CONF_TYPE_FUNC
, CONF_GLOBAL
|CONF_NOSAVE
, 0, 0, NULL
},
8 {"include", cfg_include
, CONF_TYPE_FUNC_PARAM
, CONF_NOSAVE
, 0, 0, NULL
},
10 // ------------------------- stream options --------------------
12 #ifdef USE_STREAM_CACHE
13 {"cache", &stream_cache_size
, CONF_TYPE_INT
, CONF_RANGE
, 4, 65536, NULL
},
14 {"nocache", &stream_cache_size
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
16 {"cache", "MPlayer was compiled WITHOUT cache2 support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
18 {"vcd", "-vcd N is deprecated, use vcd://N instead.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
},
19 {"cuefile", "-cuefile is deprecated, use cue://filname:N where N is the track number.\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
20 {"cdrom-device", &cdrom_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
22 {"dvdnav", "-dvdnav deprecated, use dvdnav:// instead.\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
23 {"skipopening", &dvd_nav_skip_opening
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
24 {"noskipopening", &dvd_nav_skip_opening
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
27 {"dvd-device", &dvd_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
28 {"dvd", "-dvd N is deprecated, use dvd://N instead.\n" , CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
29 {"dvdangle", &dvd_angle
, CONF_TYPE_INT
, CONF_RANGE
, 1, 99, NULL
},
30 {"chapter", dvd_parse_chapter_range
, CONF_TYPE_FUNC_PARAM
, 0, 0, 0, NULL
},
31 {"alang", &audio_lang
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
33 {"dvd", "MPlayer was compiled WITHOUT libdvdread support!\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
35 {"slang", &dvdsub_lang
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
37 {"dvdauth", "libcss support is OBSOLETED! RTFM!\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
38 {"dvdkey", "libcss support is OBSOLETED! RTFM!\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
39 {"csslib", "libcss support is OBSOLETED! RTFM!\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
41 #ifdef MPLAYER_NETWORK
42 {"user", &network_username
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
43 {"passwd", &network_password
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
44 {"bandwidth", &network_bandwidth
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
45 {"user-agent", &network_useragent
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
46 {"cookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
47 {"nocookies", &network_cookies_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
48 {"cookies-file", &cookies_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
49 {"prefer-ipv4", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
50 {"ipv4-only-proxy", &network_ipv4_only_proxy
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
52 {"prefer-ipv6", &network_prefer_ipv4
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
54 {"prefer-ipv6", "MPlayer was compiled WITHOUT IPv6 support\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
58 {"user", "MPlayer was compiled WITHOUT streaming(network) support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
59 {"passwd", "MPlayer was compiled WITHOUT streaming(network) support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
60 {"bandwidth", "MPlayer was compiled WITHOUT streaming(network) support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
61 {"user-agent", "MPlayer was compiled WITHOUT streaming(network) support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
65 // ------------------------- demuxer options --------------------
67 // number of frames to play/convert
68 {"frames", &play_n_frames_mf
, CONF_TYPE_INT
, CONF_MIN
, 0, 0, NULL
},
70 // seek to byte/seconds position
71 {"sb", &seek_to_byte
, CONF_TYPE_POSITION
, CONF_MIN
, 0, 0, NULL
},
72 {"ss", &seek_to_sec
, CONF_TYPE_STRING
, CONF_MIN
, 0, 0, NULL
},
74 // AVI specific: force non-interleaved mode
75 {"ni", &force_ni
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
76 {"noni", &force_ni
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
78 // AVI and OGG only: (re)build index at startup
79 {"noidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 0, NULL
},
80 {"idx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
81 {"forceidx", &index_mode
, CONF_TYPE_FLAG
, 0, -1, 2, NULL
},
82 {"saveidx", &index_file_save
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
83 {"loadidx", &index_file_load
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
85 // select audio/videosubtitle stream
86 {"aid", &audio_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 8190, NULL
},
87 {"vid", &video_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 8190, NULL
},
88 {"sid", &dvdsub_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 8190, NULL
},
89 {"novideo", &video_id
, CONF_TYPE_FLAG
, 0, -1, -2, NULL
},
91 { "hr-mp3-seek", &hr_mp3_seek
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
92 { "nohr-mp3-seek", &hr_mp3_seek
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
94 { "rawaudio", &demux_rawaudio_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
95 { "rawvideo", &demux_rawvideo_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
98 { "cdda", &cdda_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
101 // demuxer.c - select audio/sub file/demuxer
102 { "audiofile", &audio_stream
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
103 { "audiofile-cache", &audio_stream_cache
, CONF_TYPE_INT
, CONF_RANGE
, 50, 65536, NULL
},
104 { "subfile", &sub_stream
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
105 { "demuxer", &demuxer_type
, CONF_TYPE_INT
, CONF_RANGE
, 1, DEMUXER_TYPE_MAX
, NULL
},
106 { "audio-demuxer", &audio_demuxer_type
, CONF_TYPE_INT
, CONF_RANGE
, 1, DEMUXER_TYPE_MAX
, NULL
},
107 { "sub-demuxer", &sub_demuxer_type
, CONF_TYPE_INT
, CONF_RANGE
, 1, DEMUXER_TYPE_MAX
, NULL
},
108 { "extbased", &extension_parsing
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
109 { "noextbased", &extension_parsing
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
111 {"mf", mfopts_conf
, CONF_TYPE_SUBCONFIG
, 0,0,0, NULL
},
113 {"tv", tvopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
115 {"tv", "MPlayer was compiled without TV Interface support\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
117 {"vivo", vivoopts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
118 #ifdef HAS_DVBIN_SUPPORT
119 {"dvbin", dvbin_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
122 // ------------------------- a-v sync options --------------------
124 // AVI specific: A-V sync mode (bps vs. interleaving)
125 {"bps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
126 {"nobps", &pts_from_bps
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
128 // set A-V sync correction speed (0=disables it):
129 {"mc", &default_max_pts_correction
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 10, NULL
},
131 // force video/audio rate:
132 {"fps", &force_fps
, CONF_TYPE_FLOAT
, CONF_MIN
, 0, 0, NULL
},
133 {"srate", &force_srate
, CONF_TYPE_INT
, CONF_RANGE
, 1000, 8*48000, NULL
},
134 {"channels", &audio_output_channels
, CONF_TYPE_INT
, CONF_RANGE
, 1, 6, NULL
},
135 {"format", &audio_output_format
, CONF_TYPE_INT
, CONF_RANGE
, 0, 0x00002000, NULL
},
137 // ------------------------- codec/vfilter options --------------------
139 // MP3-only: select stereo/left/right
141 {"stereo", &fakemono
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
145 {"sound", &audio_id
, CONF_TYPE_FLAG
, 0, -2, -1, NULL
},
146 {"nosound", &audio_id
, CONF_TYPE_FLAG
, 0, -1, -2, NULL
},
148 {"af-adv", audio_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
149 {"af", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
151 {"vop*", &vo_plugin_args
, CONF_TYPE_OBJ_SETTINGS_LIST
, 0, 0, 0,&vf_obj_list
},
152 {"vf*", &vf_settings
, CONF_TYPE_OBJ_SETTINGS_LIST
, 0, 0, 0, &vf_obj_list
},
153 // select audio/video codec (by name) or codec family (by number):
154 // {"afm", &audio_family, CONF_TYPE_INT, CONF_MIN, 0, 22, NULL}, // keep ranges in sync
155 // {"vfm", &video_family, CONF_TYPE_INT, CONF_MIN, 0, 29, NULL}, // with codec-cfg.c
156 // {"afm", &audio_fm, CONF_TYPE_STRING, 0, 0, 0, NULL},
157 {"afm", &audio_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
158 {"vfm", &video_fm_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
159 // {"ac", &audio_codec, CONF_TYPE_STRING, 0, 0, 0, NULL},
160 {"ac", &audio_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
161 {"vc", &video_codec_list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
164 {"divxq", "Option -divxq has been renamed to -pp (postprocessing), use -pp !\n",
165 CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
166 #ifdef USE_LIBAVCODEC
167 {"pp", &divx_quality
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
169 #ifdef HAVE_ODIVX_POSTPROCESS
170 {"oldpp", &use_old_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
172 {"oldpp", "MPlayer was compiled without opendivx library\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
174 {"npp", "-npp has been removed, use -vf pp and read the fine manual.\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
175 #ifdef FF_POSTPROCESS
176 {"pphelp", &pp_help
, CONF_TYPE_PRINT_INDIRECT
, CONF_NOCFG
, 0, 0, NULL
},
180 {"sws", &sws_flags
, CONF_TYPE_INT
, 0, 0, 2, NULL
},
181 {"ssf", scaler_filter_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
182 {"zoom", &softzoom
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
183 {"nozoom", &softzoom
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
184 {"aspect", &movie_aspect
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.2, 3.0, NULL
},
185 {"noaspect", &movie_aspect
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
186 {"xy", &screen_size_xy
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.001, 4096, NULL
},
188 {"flip", &flip
, CONF_TYPE_FLAG
, 0, -1, 1, NULL
},
189 {"noflip", &flip
, CONF_TYPE_FLAG
, 0, -1, 0, NULL
},
190 {"tsfastparse", "-tsfastparse isn't a valid option anymore.\n", CONF_TYPE_PRINT
, CONF_NOCFG
,0,0, NULL
192 {"tsprog", &ts_prog
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65534, NULL
},
193 #define TS_MAX_PROBE_SIZE 2000000 /* dont forget to change this in libmpdemux/demux_ts.c too */
194 {"tsprobe", &ts_probe
, CONF_TYPE_POSITION
, 0, 0, TS_MAX_PROBE_SIZE
, NULL
},
195 {"tskeepbroken", &ts_keep_broken
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
197 // draw by slices or whole frame (useful with libmpeg2/libavcodec)
198 {"slices", &vd_use_slices
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
199 {"noslices", &vd_use_slices
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
201 #ifdef USE_LIBAVCODEC
202 {"lavdopts", lavc_decode_opts_conf
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
204 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
205 {"xvidopts", xvid_dec_opts
, CONF_TYPE_SUBCONFIG
, 0, 0, 0, NULL
},
207 {"codecs-file", &codecs_file
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
208 // ------------------------- subtitles options --------------------
211 {"sub", &sub_name
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
213 {"fribidi-charset", &fribidi_charset
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
214 {"flip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
215 {"noflip-hebrew", &flip_hebrew
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
217 {"fribidi-charset", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
218 {"flip-hebrew", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
219 {"noflip-hebrew", "MPlayer wasn't compiled with FriBiDi support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
222 {"subcp", &sub_cp
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
224 {"subdelay", &sub_delay
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
225 {"subfps", &sub_fps
, CONF_TYPE_FLOAT
, 0, 0.0, 10.0, NULL
},
226 {"autosub", &sub_auto
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
227 {"noautosub", &sub_auto
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
228 {"unicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
229 {"nounicode", &sub_unicode
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
230 {"utf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
231 {"noutf8", &sub_utf8
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
232 {"forcedsubsonly", &forced_subs_only
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
233 // specify IFO file for VOBSUB subtitle
234 {"ifo", &spudec_ifo
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
235 // enable Closed Captioning display
236 {"subcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
237 {"nosubcc", &subcc_enabled
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
238 {"overlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 2, NULL
},
239 {"nooverlapsub", &suboverlap_enabled
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
240 {"sub-bg-color", &sub_bg_color
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
241 {"sub-bg-alpha", &sub_bg_alpha
, CONF_TYPE_INT
, CONF_RANGE
, 0, 255, NULL
},
242 {"sub-no-text-pp", &sub_no_text_pp
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
243 {"sub-fuzziness", &sub_match_fuzziness
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
246 {"font", &font_name
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
247 {"ffactor", &font_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 10.0, NULL
},
248 {"subpos", &sub_pos
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
249 {"subalign", &sub_alignment
, CONF_TYPE_INT
, CONF_RANGE
, 0, 2, NULL
},
250 {"subwidth", &sub_width_p
, CONF_TYPE_INT
, CONF_RANGE
, 10, 100, NULL
},
251 {"spualign", &spu_alignment
, CONF_TYPE_INT
, CONF_RANGE
, -1, 2, NULL
},
252 {"spuaa", &spu_aamode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 31, NULL
},
253 {"spugauss", &spu_gaussvar
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0.0, 3.0, NULL
},
255 {"subfont-encoding", &subtitle_font_encoding
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
256 {"subfont-text-scale", &text_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
257 {"subfont-osd-scale", &osd_font_scale_factor
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 100, NULL
},
258 {"subfont-blur", &subtitle_font_radius
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
259 {"subfont-outline", &subtitle_font_thickness
, CONF_TYPE_FLOAT
, CONF_RANGE
, 0, 8, NULL
},
260 {"subfont-autoscale", &subtitle_autoscale
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
262 #ifdef HAVE_FONTCONFIG
263 {"fontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
264 {"nofontconfig", &font_fontconfig
, CONF_TYPE_FLAG
, 0, 1, 0, NULL
},
266 {"fontconfig", "MPlayer wasn't compiled with Fontconfig support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
267 {"nofontconfig", "MPlayer wasn't compiled with Fontconfig support\n", CONF_TYPE_PRINT
, CONF_NOCFG
, 0, 0, NULL
},
278 // codec/filter opts: (defiend at libmpcodecs/vd.c)
279 extern float screen_size_xy
;
280 extern float movie_aspect
;
283 extern int vd_use_slices
;
284 extern int divx_quality
;
286 /* defined in codec-cfg.c */
287 extern char * codecs_file
;
289 /* from dec_audio, currently used for ac3surround decoder only */
290 extern int audio_output_channels
;
292 #ifdef MPLAYER_NETWORK
293 /* defined in network.c */
294 extern char *network_username
;
295 extern char *network_password
;
296 extern int network_bandwidth
;
297 extern char *network_useragent
;
298 extern int network_cookies_enabled
;
299 extern char *cookies_file
;
301 extern int network_prefer_ipv4
;
302 extern int network_ipv4_only_proxy
;
306 /* defined in libmpdemux: */
307 extern int hr_mp3_seek
;
308 extern m_option_t demux_rawaudio_opts
[];
309 extern m_option_t demux_rawvideo_opts
[];
310 extern m_option_t cdda_opts
[];
312 extern char* audio_stream
;
313 extern char* sub_stream
;
314 extern int demuxer_type
, audio_demuxer_type
, sub_demuxer_type
;
316 extern int ts_keep_broken
;
317 extern off_t ts_probe
;
319 #include "libmpdemux/tv.h"
322 extern char* edl_filename
;
323 extern char* edl_output_filename
;
327 m_option_t tvopts_conf
[]={
328 {"on", "-tv on is deprecated, use tv:// instead\n", CONF_TYPE_PRINT
, 0, 0, 0, NULL
},
329 {"immediatemode", &tv_param_immediate
, CONF_TYPE_FLAG
, 0, 0, 0, NULL
},
330 {"noaudio", &tv_param_noaudio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
331 {"audiorate", &tv_param_audiorate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
332 {"driver", &tv_param_driver
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
333 {"device", &tv_param_device
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
334 {"freq", &tv_param_freq
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
335 {"channel", &tv_param_channel
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
336 {"chanlist", &tv_param_chanlist
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
337 {"norm", &tv_param_norm
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
339 {"normid", &tv_param_normid
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
341 {"width", &tv_param_width
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
342 {"height", &tv_param_height
, CONF_TYPE_INT
, 0, 0, 4096, NULL
},
343 {"input", &tv_param_input
, CONF_TYPE_INT
, 0, 0, 20, NULL
},
344 {"outfmt", &tv_param_outfmt
, CONF_TYPE_IMGFMT
, 0, 0, 0, NULL
},
345 {"fps", &tv_param_fps
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
346 {"channels", &tv_param_channels
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
347 {"brightness", &tv_param_brightness
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
348 {"contrast", &tv_param_contrast
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
349 {"hue", &tv_param_hue
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
350 {"saturation", &tv_param_saturation
, CONF_TYPE_INT
, CONF_RANGE
, -100, 100, NULL
},
351 #if defined(HAVE_TV_V4L) || defined(HAVE_TV_V4L2)
352 {"amode", &tv_param_amode
, CONF_TYPE_INT
, CONF_RANGE
, 0, 3, NULL
},
353 {"volume", &tv_param_volume
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
354 {"bass", &tv_param_bass
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
355 {"treble", &tv_param_treble
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
356 {"balance", &tv_param_balance
, CONF_TYPE_INT
, CONF_RANGE
, 0, 65535, NULL
},
357 {"forcechan", &tv_param_forcechan
, CONF_TYPE_INT
, CONF_RANGE
, 1, 2, NULL
},
358 {"forceaudio", &tv_param_force_audio
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
359 {"buffersize", &tv_param_buffer_size
, CONF_TYPE_INT
, CONF_RANGE
, 16, 1024, NULL
},
360 {"mjpeg", &tv_param_mjpeg
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
361 {"decimation", &tv_param_decimation
, CONF_TYPE_INT
, CONF_RANGE
, 1, 4, NULL
},
362 {"quality", &tv_param_quality
, CONF_TYPE_INT
, CONF_RANGE
, 0, 100, NULL
},
363 #if defined(HAVE_ALSA9) || defined(HAVE_ALSA1X)
364 {"alsa", &tv_param_alsa
, CONF_TYPE_FLAG
, 0, 0, 1, NULL
},
366 {"adevice", &tv_param_adevice
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
368 {"audioid", &tv_param_audio_id
, CONF_TYPE_INT
, CONF_RANGE
, 0, 9, NULL
},
369 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
373 #ifdef HAS_DVBIN_SUPPORT
374 #include "libmpdemux/dvbin.h"
375 extern m_config_t dvbin_opts_conf
[];
379 extern char *fribidi_charset
;
380 extern int flip_hebrew
;
384 extern int audio_stream_cache
;
386 extern int sws_chr_vshift
;
387 extern int sws_chr_hshift
;
388 extern float sws_chr_gblur
;
389 extern float sws_lum_gblur
;
390 extern float sws_chr_sharpen
;
391 extern float sws_lum_sharpen
;
393 m_option_t scaler_filter_conf
[]={
394 {"lgb", &sws_lum_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
395 {"cgb", &sws_chr_gblur
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
396 {"cvs", &sws_chr_vshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
397 {"chs", &sws_chr_hshift
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
398 {"ls", &sws_lum_sharpen
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
399 {"cs", &sws_chr_sharpen
, CONF_TYPE_FLOAT
, 0, 0, 100.0, NULL
},
400 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
403 /* VIVO demuxer options: */
404 extern int vivo_param_version
;
405 extern char *vivo_param_acodec
;
406 extern int vivo_param_abitrate
;
407 extern int vivo_param_samplerate
;
408 extern int vivo_param_bytesperblock
;
409 extern int vivo_param_width
;
410 extern int vivo_param_height
;
411 extern int vivo_param_vformat
;
412 extern char *dvd_device
, *cdrom_device
;
414 m_option_t vivoopts_conf
[]={
415 {"version", &vivo_param_version
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
417 {"acodec", &vivo_param_acodec
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
418 {"abitrate", &vivo_param_abitrate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
419 {"samplerate", &vivo_param_samplerate
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
420 {"bytesperblock", &vivo_param_bytesperblock
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
422 {"width", &vivo_param_width
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
423 {"height", &vivo_param_height
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
424 {"vformat", &vivo_param_vformat
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
425 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
431 extern char * mf_type
;
432 extern m_obj_settings_t
* vf_settings
;
433 extern m_obj_list_t vf_obj_list
;
435 m_option_t mfopts_conf
[]={
436 {"on", "-mf on is deprecated, use mf://files instead\n", CONF_TYPE_PRINT
, 0, 0, 1, NULL
},
437 {"w", &mf_w
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
438 {"h", &mf_h
, CONF_TYPE_INT
, 0, 0, 0, NULL
},
439 {"fps", &mf_fps
, CONF_TYPE_FLOAT
, 0, 0, 0, NULL
},
440 {"type", &mf_type
, CONF_TYPE_STRING
, 0, 0, 0, NULL
},
441 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
444 extern m_obj_settings_t
* vo_plugin_args
;
446 #include "libaf/af.h"
447 extern af_cfg_t af_cfg
; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
448 m_option_t audio_filter_conf
[]={
449 {"list", &af_cfg
.list
, CONF_TYPE_STRING_LIST
, 0, 0, 0, NULL
},
450 {"force", &af_cfg
.force
, CONF_TYPE_INT
, CONF_RANGE
, 0, 7, NULL
},
451 {NULL
, NULL
, 0, 0, 0, 0, NULL
}
454 #ifdef USE_LIBAVCODEC
455 extern m_option_t lavc_decode_opts_conf
[];
458 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
459 extern m_option_t xvid_dec_opts
[];
462 int dvd_parse_chapter_range(m_option_t
*, const char*);