2010-01-30 23:24:23 +00:00
|
|
|
/*
|
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_CFG_MPLAYER_H
|
|
|
|
#define MPLAYER_CFG_MPLAYER_H
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2001-03-18 23:32:31 +00:00
|
|
|
/*
|
|
|
|
* config for cfgparser
|
|
|
|
*/
|
|
|
|
|
2008-03-31 03:19:29 +00:00
|
|
|
#include <stddef.h>
|
2011-03-10 21:08:21 +00:00
|
|
|
#include <sys/types.h>
|
2008-03-31 03:19:29 +00:00
|
|
|
|
2012-11-09 00:06:43 +00:00
|
|
|
#include "core/options.h"
|
2011-03-10 21:08:21 +00:00
|
|
|
#include "config.h"
|
2012-11-09 00:06:43 +00:00
|
|
|
#include "core/m_config.h"
|
|
|
|
#include "core/m_option.h"
|
2011-03-10 21:08:21 +00:00
|
|
|
#include "stream/tv.h"
|
|
|
|
#include "stream/stream_radio.h"
|
2012-11-09 00:06:43 +00:00
|
|
|
#include "video/csputils.h"
|
2001-11-09 23:46:06 +00:00
|
|
|
|
2001-06-17 20:38:02 +00:00
|
|
|
extern char *lirc_configfile;
|
|
|
|
|
2004-05-03 10:09:18 +00:00
|
|
|
/* only used at startup (setting these values from configfile) */
|
2002-10-23 16:52:54 +00:00
|
|
|
extern char *vo_geometry;
|
2002-06-04 20:12:34 +00:00
|
|
|
extern int stop_xscreensaver;
|
2001-05-31 22:32:58 +00:00
|
|
|
|
2011-03-10 21:08:21 +00:00
|
|
|
extern int mp_msg_color;
|
|
|
|
extern int mp_msg_module;
|
|
|
|
|
|
|
|
/* defined in dec_video.c */
|
|
|
|
extern int field_dominance;
|
|
|
|
|
|
|
|
/* from dec_audio, currently used for ac3surround decoder only */
|
|
|
|
extern int fakemono;
|
|
|
|
|
|
|
|
/* defined in network.c */
|
|
|
|
extern char *network_username;
|
|
|
|
extern char *network_password;
|
|
|
|
extern int network_bandwidth;
|
|
|
|
extern char *network_useragent;
|
|
|
|
extern char *network_referrer;
|
|
|
|
extern int network_cookies_enabled;
|
|
|
|
extern char *cookies_file;
|
|
|
|
|
|
|
|
extern int network_prefer_ipv4;
|
|
|
|
extern int network_ipv4_only_proxy;
|
|
|
|
extern int reuse_socket;
|
|
|
|
|
|
|
|
extern int dvd_speed; /* stream/stream_dvd.c */
|
|
|
|
|
2012-11-09 00:06:43 +00:00
|
|
|
/* defined in demux: */
|
2011-03-10 21:08:21 +00:00
|
|
|
extern const m_option_t demux_rawaudio_opts[];
|
|
|
|
extern const m_option_t demux_rawvideo_opts[];
|
|
|
|
extern const m_option_t cdda_opts[];
|
|
|
|
|
|
|
|
extern int sws_flags;
|
2012-02-27 16:18:49 +00:00
|
|
|
extern const char pp_help[];
|
2011-03-10 21:08:21 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_RADIO
|
|
|
|
const m_option_t radioopts_conf[]={
|
|
|
|
{"device", &stream_radio_defaults.device, CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
|
|
|
{"driver", &stream_radio_defaults.driver, CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
|
|
|
#ifdef RADIO_BSDBT848_HDR
|
|
|
|
{"freq_min", &stream_radio_defaults.freq_min, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
|
|
|
|
{"freq_max", &stream_radio_defaults.freq_max, CONF_TYPE_FLOAT, 0, 0 ,0, NULL},
|
|
|
|
#endif
|
|
|
|
{"channels", &stream_radio_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0 ,0, NULL},
|
|
|
|
{"volume", &stream_radio_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0 ,100, NULL},
|
|
|
|
{"adevice", &stream_radio_defaults.adevice, CONF_TYPE_STRING, 0, 0 ,0, NULL},
|
|
|
|
{"arate", &stream_radio_defaults.arate, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
|
|
|
|
{"achannels", &stream_radio_defaults.achannels, CONF_TYPE_INT, CONF_MIN, 0 ,0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
#endif /* CONFIG_RADIO */
|
|
|
|
|
|
|
|
#ifdef CONFIG_TV
|
|
|
|
const m_option_t tvopts_conf[]={
|
|
|
|
{"immediatemode", &stream_tv_defaults.immediate, CONF_TYPE_INT, CONF_RANGE, 0, 1, NULL},
|
2012-07-29 23:58:41 +00:00
|
|
|
{"no-audio", &stream_tv_defaults.noaudio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
{"audiorate", &stream_tv_defaults.audiorate, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
{"driver", &stream_tv_defaults.driver, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"device", &stream_tv_defaults.device, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"freq", &stream_tv_defaults.freq, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"channel", &stream_tv_defaults.channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"chanlist", &stream_tv_defaults.chanlist, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"norm", &stream_tv_defaults.norm, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"automute", &stream_tv_defaults.automute, CONF_TYPE_INT, CONF_RANGE, 0, 255, NULL},
|
2012-10-28 19:09:09 +00:00
|
|
|
#if defined(CONFIG_TV_V4L2)
|
2011-03-10 21:08:21 +00:00
|
|
|
{"normid", &stream_tv_defaults.normid, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
#endif
|
|
|
|
{"width", &stream_tv_defaults.width, CONF_TYPE_INT, 0, 0, 4096, NULL},
|
|
|
|
{"height", &stream_tv_defaults.height, CONF_TYPE_INT, 0, 0, 4096, NULL},
|
|
|
|
{"input", &stream_tv_defaults.input, CONF_TYPE_INT, 0, 0, 20, NULL},
|
|
|
|
{"outfmt", &stream_tv_defaults.outfmt, CONF_TYPE_IMGFMT, 0, 0, 0, NULL},
|
|
|
|
{"fps", &stream_tv_defaults.fps, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
|
|
|
|
{"channels", &stream_tv_defaults.channels, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
|
|
|
{"brightness", &stream_tv_defaults.brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
|
|
|
|
{"contrast", &stream_tv_defaults.contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
|
|
|
|
{"hue", &stream_tv_defaults.hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
|
|
|
|
{"saturation", &stream_tv_defaults.saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
|
|
|
|
{"gain", &stream_tv_defaults.gain, CONF_TYPE_INT, CONF_RANGE, -1, 100, NULL},
|
2012-10-28 19:09:09 +00:00
|
|
|
#if defined(CONFIG_TV_V4L2)
|
2011-03-10 21:08:21 +00:00
|
|
|
{"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
|
|
|
|
{"amode", &stream_tv_defaults.amode, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
|
|
|
|
{"volume", &stream_tv_defaults.volume, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
|
|
|
|
#endif
|
2012-08-02 21:51:54 +00:00
|
|
|
#if defined(CONFIG_TV_V4L2)
|
2011-03-10 21:08:21 +00:00
|
|
|
{"bass", &stream_tv_defaults.bass, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
|
|
|
|
{"treble", &stream_tv_defaults.treble, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
|
|
|
|
{"balance", &stream_tv_defaults.balance, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL},
|
|
|
|
{"forcechan", &stream_tv_defaults.forcechan, CONF_TYPE_INT, CONF_RANGE, 1, 2, NULL},
|
|
|
|
{"forceaudio", &stream_tv_defaults.force_audio, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"buffersize", &stream_tv_defaults.buffer_size, CONF_TYPE_INT, CONF_RANGE, 16, 1024, NULL},
|
|
|
|
{"mjpeg", &stream_tv_defaults.mjpeg, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"decimation", &stream_tv_defaults.decimation, CONF_TYPE_INT, CONF_RANGE, 1, 4, NULL},
|
|
|
|
{"quality", &stream_tv_defaults.quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
|
|
|
|
#ifdef CONFIG_ALSA
|
|
|
|
{"alsa", &stream_tv_defaults.alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
#endif /* CONFIG_ALSA */
|
2012-08-02 21:51:54 +00:00
|
|
|
#endif /* defined(CONFIG_TV_V4L2) */
|
2011-03-10 21:08:21 +00:00
|
|
|
{"adevice", &stream_tv_defaults.adevice, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"audioid", &stream_tv_defaults.audio_id, CONF_TYPE_INT, CONF_RANGE, 0, 9, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
#endif /* CONFIG_TV */
|
|
|
|
|
|
|
|
extern int pvr_param_aspect_ratio;
|
|
|
|
extern int pvr_param_sample_rate;
|
|
|
|
extern int pvr_param_audio_layer;
|
|
|
|
extern int pvr_param_audio_bitrate;
|
|
|
|
extern char *pvr_param_audio_mode;
|
|
|
|
extern int pvr_param_bitrate;
|
|
|
|
extern char *pvr_param_bitrate_mode;
|
|
|
|
extern int pvr_param_bitrate_peak;
|
|
|
|
extern char *pvr_param_stream_type;
|
|
|
|
|
|
|
|
#ifdef CONFIG_PVR
|
|
|
|
const m_option_t pvropts_conf[]={
|
|
|
|
{"aspect", &pvr_param_aspect_ratio, CONF_TYPE_INT, 0, 1, 4, NULL},
|
|
|
|
{"arate", &pvr_param_sample_rate, CONF_TYPE_INT, 0, 32000, 48000, NULL},
|
|
|
|
{"alayer", &pvr_param_audio_layer, CONF_TYPE_INT, 0, 1, 2, NULL},
|
|
|
|
{"abitrate", &pvr_param_audio_bitrate, CONF_TYPE_INT, 0, 32, 448, NULL},
|
|
|
|
{"amode", &pvr_param_audio_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"vbitrate", &pvr_param_bitrate, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
{"vmode", &pvr_param_bitrate_mode, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"vpeak", &pvr_param_bitrate_peak, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
{"fmt", &pvr_param_stream_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
#endif /* CONFIG_PVR */
|
|
|
|
|
|
|
|
extern const m_option_t dvbin_opts_conf[];
|
|
|
|
extern const m_option_t lavfdopts_conf[];
|
|
|
|
|
|
|
|
extern int sws_chr_vshift;
|
|
|
|
extern int sws_chr_hshift;
|
|
|
|
extern float sws_chr_gblur;
|
|
|
|
extern float sws_lum_gblur;
|
|
|
|
extern float sws_chr_sharpen;
|
|
|
|
extern float sws_lum_sharpen;
|
|
|
|
|
|
|
|
const m_option_t scaler_filter_conf[]={
|
|
|
|
{"lgb", &sws_lum_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
|
|
|
|
{"cgb", &sws_chr_gblur, CONF_TYPE_FLOAT, 0, 0, 100.0, NULL},
|
|
|
|
{"cvs", &sws_chr_vshift, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
{"chs", &sws_chr_hshift, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
{"ls", &sws_lum_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
|
|
|
|
{"cs", &sws_chr_sharpen, CONF_TYPE_FLOAT, 0, -100.0, 100.0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
extern char *dvd_device, *cdrom_device;
|
|
|
|
|
|
|
|
extern double mf_fps;
|
|
|
|
extern char * mf_type;
|
|
|
|
extern m_obj_list_t vf_obj_list;
|
|
|
|
|
|
|
|
const m_option_t mfopts_conf[]={
|
|
|
|
{"fps", &mf_fps, CONF_TYPE_DOUBLE, 0, 0, 0, NULL},
|
|
|
|
{"type", &mf_type, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
|
2012-11-09 00:06:43 +00:00
|
|
|
#include "audio/filter/af.h"
|
2012-11-01 11:25:14 +00:00
|
|
|
extern struct af_cfg af_cfg; // Audio filter configuration, defined in libmpcodecs/dec_audio.c
|
2011-03-10 21:08:21 +00:00
|
|
|
const m_option_t audio_filter_conf[]={
|
|
|
|
{"list", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
|
|
|
{"force", &af_cfg.force, CONF_TYPE_INT, CONF_RANGE, 0, 7, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
|
|
|
|
extern int mp_msg_levels[MSGT_MAX];
|
|
|
|
extern int mp_msg_level_all;
|
|
|
|
|
|
|
|
const m_option_t msgl_config[]={
|
|
|
|
{ "all", &mp_msg_level_all, CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL},
|
|
|
|
|
|
|
|
{ "global", &mp_msg_levels[MSGT_GLOBAL], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "cplayer", &mp_msg_levels[MSGT_CPLAYER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "vo", &mp_msg_levels[MSGT_VO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "ao", &mp_msg_levels[MSGT_AO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "demuxer", &mp_msg_levels[MSGT_DEMUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "ds", &mp_msg_levels[MSGT_DS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "demux", &mp_msg_levels[MSGT_DEMUX], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "header", &mp_msg_levels[MSGT_HEADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "avsync", &mp_msg_levels[MSGT_AVSYNC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "autoq", &mp_msg_levels[MSGT_AUTOQ], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "cfgparser", &mp_msg_levels[MSGT_CFGPARSER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "decaudio", &mp_msg_levels[MSGT_DECAUDIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "decvideo", &mp_msg_levels[MSGT_DECVIDEO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "seek", &mp_msg_levels[MSGT_SEEK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "win32", &mp_msg_levels[MSGT_WIN32], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "open", &mp_msg_levels[MSGT_OPEN], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "dvd", &mp_msg_levels[MSGT_DVD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "parsees", &mp_msg_levels[MSGT_PARSEES], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "lirc", &mp_msg_levels[MSGT_LIRC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "stream", &mp_msg_levels[MSGT_STREAM], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "cache", &mp_msg_levels[MSGT_CACHE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
2012-09-14 15:51:26 +00:00
|
|
|
{ "encode", &mp_msg_levels[MSGT_ENCODE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
2011-03-10 21:08:21 +00:00
|
|
|
{ "xacodec", &mp_msg_levels[MSGT_XACODEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "tv", &mp_msg_levels[MSGT_TV], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "radio", &mp_msg_levels[MSGT_RADIO], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "osdep", &mp_msg_levels[MSGT_OSDEP], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "spudec", &mp_msg_levels[MSGT_SPUDEC], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "playtree", &mp_msg_levels[MSGT_PLAYTREE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "input", &mp_msg_levels[MSGT_INPUT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "vfilter", &mp_msg_levels[MSGT_VFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "osd", &mp_msg_levels[MSGT_OSD], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "network", &mp_msg_levels[MSGT_NETWORK], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "cpudetect", &mp_msg_levels[MSGT_CPUDETECT], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "codeccfg", &mp_msg_levels[MSGT_CODECCFG], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "sws", &mp_msg_levels[MSGT_SWS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "vobsub", &mp_msg_levels[MSGT_VOBSUB], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "subreader", &mp_msg_levels[MSGT_SUBREADER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "afilter", &mp_msg_levels[MSGT_AFILTER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "netst", &mp_msg_levels[MSGT_NETST], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "muxer", &mp_msg_levels[MSGT_MUXER], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "ass", &mp_msg_levels[MSGT_ASS], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "statusline", &mp_msg_levels[MSGT_STATUSLINE], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{ "fixme", &mp_msg_levels[MSGT_FIXME], CONF_TYPE_INT, CONF_RANGE, -1, 9, NULL },
|
|
|
|
{"help", "Available msg modules:\n"
|
|
|
|
" global - common player errors/information\n"
|
|
|
|
" cplayer - console player (mplayer.c)\n"
|
|
|
|
" vo - libvo\n"
|
|
|
|
" ao - libao\n"
|
|
|
|
" demuxer - demuxer.c (general stuff)\n"
|
|
|
|
" ds - demux stream (add/read packet etc)\n"
|
|
|
|
" demux - fileformat-specific stuff (demux_*.c)\n"
|
|
|
|
" header - fileformat-specific header (*header.c)\n"
|
|
|
|
" avsync - mplayer.c timer stuff\n"
|
|
|
|
" autoq - mplayer.c auto-quality stuff\n"
|
|
|
|
" cfgparser - cfgparser.c\n"
|
|
|
|
" decaudio - av decoder\n"
|
|
|
|
" decvideo\n"
|
|
|
|
" seek - seeking code\n"
|
|
|
|
" win32 - win32 dll stuff\n"
|
|
|
|
" open - open.c (stream opening)\n"
|
|
|
|
" dvd - open.c (DVD init/read/seek)\n"
|
|
|
|
" parsees - parse_es.c (mpeg stream parser)\n"
|
|
|
|
" lirc - lirc_mp.c and input lirc driver\n"
|
|
|
|
" stream - stream.c\n"
|
|
|
|
" cache - cache2.c\n"
|
2012-09-14 15:51:26 +00:00
|
|
|
" encode - encode_lavc.c and associated vo/ao drivers\n"
|
2011-03-10 21:08:21 +00:00
|
|
|
" xacodec - XAnim codecs\n"
|
|
|
|
" tv - TV input subsystem\n"
|
|
|
|
" osdep - OS-dependent parts\n"
|
|
|
|
" spudec - spudec.c\n"
|
|
|
|
" playtree - Playtree handling (playtree.c, playtreeparser.c)\n"
|
|
|
|
" input\n"
|
|
|
|
" vfilter\n"
|
|
|
|
" osd\n"
|
|
|
|
" network\n"
|
|
|
|
" cpudetect\n"
|
|
|
|
" codeccfg\n"
|
|
|
|
" sws\n"
|
|
|
|
" vobsub\n"
|
|
|
|
" subreader\n"
|
|
|
|
" afilter - Audio filter messages\n"
|
|
|
|
" netst - Netstream\n"
|
|
|
|
" muxer - muxer layer\n"
|
|
|
|
" identify - identify output\n"
|
|
|
|
" ass - libass messages\n"
|
|
|
|
" statusline - playback/encoding status line\n"
|
|
|
|
" fixme - messages not yet fixed to map to module\n"
|
2012-08-05 21:34:28 +00:00
|
|
|
"\n", CONF_TYPE_PRINT, CONF_GLOBAL | CONF_NOCFG, 0, 0, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const m_option_t lavc_decode_opts_conf[];
|
|
|
|
|
|
|
|
const m_option_t common_opts[] = {
|
|
|
|
// ------------------------- common options --------------------
|
|
|
|
OPT_MAKE_FLAGS("quiet", quiet, CONF_GLOBAL),
|
|
|
|
{"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_PRE_PARSE, 0, -10, NULL},
|
2012-05-07 20:51:58 +00:00
|
|
|
// -v is handled in command line preparser
|
2012-08-05 21:34:28 +00:00
|
|
|
{"v", NULL, CONF_TYPE_FLAG, CONF_GLOBAL | CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{"msglevel", (void *) msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2012-11-15 14:41:55 +00:00
|
|
|
{"msgcolor", &mp_msg_color, CONF_TYPE_FLAG, CONF_GLOBAL | CONF_PRE_PARSE, 0, 1, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
{"msgmodule", &mp_msg_module, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
|
|
|
|
#ifdef CONFIG_PRIORITY
|
|
|
|
{"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
#endif
|
2012-09-13 15:59:42 +00:00
|
|
|
OPT_CHOICE("no-config", noconfig, CONF_GLOBAL | CONF_NOCFG | CONF_PRE_PARSE,
|
2012-09-18 13:50:24 +00:00
|
|
|
({"no", 0}, {"user", 1}, {"system", 2}, {"all", 3})),
|
2011-03-10 21:08:21 +00:00
|
|
|
|
|
|
|
// ------------------------- stream options --------------------
|
|
|
|
|
|
|
|
#ifdef CONFIG_STREAM_CACHE
|
2012-11-17 17:12:13 +00:00
|
|
|
OPT_INTRANGE("cache", stream_cache_size, 0, 32, 0x7fffffff, OPTDEF_INT(-1)),
|
2012-09-13 15:59:42 +00:00
|
|
|
OPT_FLAG_CONSTANTS("no-cache", stream_cache_size, 0, -1, 0),
|
2012-08-19 13:31:38 +00:00
|
|
|
|
2011-03-10 21:08:21 +00:00
|
|
|
OPT_FLOATRANGE("cache-min", stream_cache_min_percent, 0, 0, 99),
|
|
|
|
OPT_FLOATRANGE("cache-seek-min", stream_cache_seek_min_percent, 0, 0, 99),
|
2012-12-01 23:22:54 +00:00
|
|
|
OPT_CHOICE_OR_INT("cache-pause", stream_cache_pause, 0,
|
|
|
|
0, 40, ({"no", -1})),
|
2011-03-10 21:08:21 +00:00
|
|
|
#endif /* CONFIG_STREAM_CACHE */
|
|
|
|
{"cdrom-device", &cdrom_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
#ifdef CONFIG_DVDREAD
|
|
|
|
{"dvd-device", &dvd_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"dvd-speed", &dvd_speed, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
{"dvdangle", &dvd_angle, CONF_TYPE_INT, CONF_RANGE, 1, 99, NULL},
|
|
|
|
#endif /* CONFIG_DVDREAD */
|
|
|
|
OPT_INTPAIR("chapter", chapterrange, 0),
|
|
|
|
OPT_INTRANGE("edition", edition_id, 0, -1, 8190),
|
|
|
|
#ifdef CONFIG_LIBBLURAY
|
|
|
|
{"bluray-device", &bluray_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"bluray-angle", &bluray_angle, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
|
|
|
|
{"bluray-chapter", &bluray_chapter, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
|
|
|
|
#endif /* CONFIG_LIBBLURAY */
|
|
|
|
|
|
|
|
#ifdef CONFIG_NETWORKING
|
|
|
|
{"user", &network_username, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"passwd", &network_password, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"bandwidth", &network_bandwidth, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
|
2011-05-01 21:46:03 +00:00
|
|
|
{"http-header-fields", &network_http_header_fields, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
{"user-agent", &network_useragent, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"referrer", &network_referrer, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"cookies", &network_cookies_enabled, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"cookies-file", &cookies_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"prefer-ipv4", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"ipv4-only-proxy", &network_ipv4_only_proxy, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2011-10-16 05:06:55 +00:00
|
|
|
{"reuse-socket", &reuse_socket, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
#ifdef HAVE_AF_INET6
|
|
|
|
{"prefer-ipv6", &network_prefer_ipv4, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
|
|
|
#endif /* HAVE_AF_INET6 */
|
|
|
|
#endif /* CONFIG_NETWORKING */
|
|
|
|
|
|
|
|
// ------------------------- demuxer options --------------------
|
|
|
|
|
|
|
|
// number of frames to play/convert
|
|
|
|
{"frames", &play_n_frames_mf, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
|
|
|
|
|
|
|
|
// seek to byte/seconds position
|
2012-09-18 09:48:50 +00:00
|
|
|
{"sb", &seek_to_byte, CONF_TYPE_INT64, CONF_MIN, 0, 0, NULL},
|
2012-11-15 17:49:17 +00:00
|
|
|
OPT_REL_TIME("start", play_start, 0),
|
|
|
|
OPT_REL_TIME("end", play_end, 0),
|
|
|
|
OPT_REL_TIME("length", play_length, 0),
|
2011-03-10 21:08:21 +00:00
|
|
|
|
2012-02-29 02:07:10 +00:00
|
|
|
OPT_FLAG_ON("pause", start_paused, 0),
|
core: add --keep-open, which doesn't close the file on EOF
The --keep-open option causes mpv not to close the current file.
Instead, it will pause, and allow the user to seek around. When
seeking beyond the end of the file, mpv does a precise seek back to
the previous last known position that produced video output.
In some corner cases, mpv might not be able to produce video output at
all, despite having created a VO. (Possibly when only 1 frame could be
decoded, but the video filter chain queues frames. Then a VO would be
created, without sending an actual video frame to the VO.) In these
cases, the VO window will not redraw, not even OSD.
Based on a patch by coax [1].
[1] http://devel.mplayer2.org/ticket/210#comment:4
2012-11-12 23:56:20 +00:00
|
|
|
OPT_FLAG_ON("keep-open", keep_open, 0),
|
2012-02-08 23:36:53 +00:00
|
|
|
|
2011-03-10 21:08:21 +00:00
|
|
|
// AVI specific: force non-interleaved mode
|
2012-10-28 19:23:15 +00:00
|
|
|
{"avi-ni", &force_ni, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
|
|
|
|
// AVI and Ogg only: (re)build index at startup
|
|
|
|
{"idx", &index_mode, CONF_TYPE_FLAG, 0, -1, 1, NULL},
|
|
|
|
{"forceidx", &index_mode, CONF_TYPE_FLAG, 0, -1, 2, NULL},
|
|
|
|
|
|
|
|
// select audio/video/subtitle stream
|
2012-09-05 00:39:12 +00:00
|
|
|
OPT_TRACKCHOICE("aid", audio_id),
|
|
|
|
OPT_TRACKCHOICE("vid", video_id),
|
|
|
|
OPT_TRACKCHOICE("sid", sub_id),
|
2012-07-29 23:58:41 +00:00
|
|
|
OPT_FLAG_CONSTANTS("no-sub", sub_id, 0, -1, -2),
|
|
|
|
OPT_FLAG_CONSTANTS("no-video", video_id, 0, -1, -2),
|
2012-07-30 00:04:00 +00:00
|
|
|
OPT_FLAG_CONSTANTS("no-audio", audio_id, 0, -1, -2),
|
2011-03-10 21:08:21 +00:00
|
|
|
OPT_STRINGLIST("alang", audio_lang, 0),
|
|
|
|
OPT_STRINGLIST("slang", sub_lang, 0),
|
|
|
|
|
2012-12-10 17:52:06 +00:00
|
|
|
OPT_CHOICE("audio-display", audio_display, 0,
|
|
|
|
({"no", 0}, {"attachment", 1})),
|
|
|
|
|
2012-03-02 19:24:34 +00:00
|
|
|
OPT_STRING("quvi-format", quvi_format, 0),
|
|
|
|
|
2011-07-07 21:41:42 +00:00
|
|
|
{ "rawaudio", (void *)&demux_rawaudio_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
|
|
|
{ "rawvideo", (void *)&demux_rawvideo_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
|
|
|
|
#ifdef CONFIG_CDDA
|
2011-07-07 21:41:42 +00:00
|
|
|
{ "cdda", (void *)&cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// demuxer.c - select audio/sub file/demuxer
|
|
|
|
OPT_STRING("audiofile", audio_stream, 0),
|
|
|
|
OPT_INTRANGE("audiofile-cache", audio_stream_cache, 0, 50, 65536),
|
|
|
|
OPT_STRING("subfile", sub_stream, 0),
|
|
|
|
OPT_STRING("demuxer", demuxer_name, 0),
|
|
|
|
OPT_STRING("audio-demuxer", audio_demuxer_name, 0),
|
|
|
|
OPT_STRING("sub-demuxer", sub_demuxer_name, 0),
|
|
|
|
OPT_MAKE_FLAGS("extbased", extension_parsing, 0),
|
|
|
|
|
|
|
|
{"mf", (void *) mfopts_conf, CONF_TYPE_SUBCONFIG, 0,0,0, NULL},
|
|
|
|
#ifdef CONFIG_RADIO
|
|
|
|
{"radio", radioopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
|
|
|
#endif /* CONFIG_RADIO */
|
|
|
|
#ifdef CONFIG_TV
|
|
|
|
{"tv", (void *) tvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
|
|
|
#endif /* CONFIG_TV */
|
|
|
|
#ifdef CONFIG_PVR
|
|
|
|
{"pvr", (void *) pvropts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
|
|
|
#endif /* CONFIG_PVR */
|
|
|
|
#ifdef CONFIG_DVBIN
|
|
|
|
{"dvbin", (void *) dvbin_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// ------------------------- a-v sync options --------------------
|
|
|
|
|
|
|
|
// AVI specific: A-V sync mode (bps vs. interleaving)
|
|
|
|
{"bps", &pts_from_bps, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
|
|
|
|
// set A-V sync correction speed (0=disables it):
|
|
|
|
{"mc", &default_max_pts_correction, CONF_TYPE_FLOAT, CONF_RANGE, 0, 100, NULL},
|
|
|
|
|
|
|
|
// force video/audio rate:
|
|
|
|
{"fps", &force_fps, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL},
|
|
|
|
{"srate", &force_srate, CONF_TYPE_INT, CONF_RANGE, 1000, 8*48000, NULL},
|
|
|
|
OPT_INTRANGE("channels", audio_output_channels, 0, 1, 8),
|
|
|
|
OPT_AUDIOFORMAT("format", audio_output_format, 0),
|
|
|
|
OPT_FLOATRANGE("speed", playback_speed, 0, 0.01, 100.0),
|
|
|
|
|
|
|
|
// set a-v distance
|
2012-09-18 18:07:24 +00:00
|
|
|
{"audio-delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
|
|
|
|
// ignore header-specified delay (dwStart)
|
|
|
|
{"ignore-start", &ignore_start, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
|
|
|
|
OPT_FLOATRANGE("a52drc", drc_level, 0, 0, 2),
|
|
|
|
|
|
|
|
// ------------------------- codec/vfilter options --------------------
|
|
|
|
|
|
|
|
// MP3-only: select stereo/left/right
|
|
|
|
{"stereo", &fakemono, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
|
|
|
|
|
|
|
|
{"af*", &af_cfg.list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
|
|
|
{"af-adv", (void *) audio_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
|
|
|
|
2011-08-09 00:07:22 +00:00
|
|
|
OPT_SETTINGSLIST("vf*", vf_settings, 0, &vf_obj_list),
|
2011-03-10 21:08:21 +00:00
|
|
|
// select audio/video codec (by name) or codec family (by number):
|
|
|
|
{"afm", &audio_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
|
|
|
{"vfm", &video_fm_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
|
|
|
{"ac", &audio_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
|
|
|
{"vc", &video_codec_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
|
|
|
|
|
|
|
// postprocessing:
|
|
|
|
{"pp", &divx_quality, CONF_TYPE_INT, 0, 0, 0, NULL},
|
2012-02-27 16:18:49 +00:00
|
|
|
#ifdef CONFIG_LIBPOSTPROC
|
2012-11-21 13:10:33 +00:00
|
|
|
{"pphelp", (void *) &pp_help, CONF_TYPE_PRINT, CONF_GLOBAL | CONF_NOCFG, 0, 0, NULL},
|
2012-02-27 16:18:49 +00:00
|
|
|
#endif
|
2011-03-10 21:08:21 +00:00
|
|
|
|
|
|
|
// scaling:
|
|
|
|
{"sws", &sws_flags, CONF_TYPE_INT, 0, 0, 2, NULL},
|
|
|
|
{"ssf", (void *) scaler_filter_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2011-06-21 17:32:07 +00:00
|
|
|
OPT_FLOATRANGE("aspect", movie_aspect, 0, 0.1, 10.0),
|
2012-07-29 23:58:41 +00:00
|
|
|
OPT_FLAG_CONSTANTS("no-aspect", movie_aspect, 0, 0, 0),
|
2011-03-10 21:08:21 +00:00
|
|
|
OPT_FLOATRANGE("xy", screen_size_xy, 0, 0.001, 4096),
|
|
|
|
|
|
|
|
OPT_FLAG_CONSTANTS("flip", flip, 0, -1, 1),
|
|
|
|
|
|
|
|
// draw by slices or whole frame (useful with libmpeg2/libavcodec)
|
|
|
|
OPT_MAKE_FLAGS("slices", vd_use_slices, 0),
|
2012-11-03 14:57:40 +00:00
|
|
|
// use (probably completely broken) decoder direct rendering
|
|
|
|
OPT_MAKE_FLAGS("dr1", vd_use_dr1, 0),
|
2012-11-15 17:53:51 +00:00
|
|
|
{"field-dominance", &field_dominance, CONF_TYPE_CHOICE, 0,
|
|
|
|
M_CHOICES(({"auto", -1}, {"top", 0}, {"bottom", 1}))},
|
2011-03-10 21:08:21 +00:00
|
|
|
|
|
|
|
{"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2011-10-16 05:06:55 +00:00
|
|
|
{"lavfdopts", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2012-11-20 12:31:56 +00:00
|
|
|
OPT_STRING("codecs-file", codecs_file, 0),
|
2011-03-10 21:08:21 +00:00
|
|
|
// ------------------------- subtitles options --------------------
|
|
|
|
|
|
|
|
OPT_STRINGLIST("sub", sub_name, 0),
|
|
|
|
OPT_PATHLIST("sub-paths", sub_paths, 0),
|
|
|
|
{"subcp", &sub_cp, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
2012-09-18 18:07:24 +00:00
|
|
|
{"sub-delay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
{"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
|
|
|
|
OPT_MAKE_FLAGS("autosub", sub_auto, 0),
|
2012-12-05 08:36:20 +00:00
|
|
|
{"sub-forced-only", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2011-03-10 21:08:21 +00:00
|
|
|
// enable Closed Captioning display
|
|
|
|
{"overlapsub", &suboverlap_enabled, CONF_TYPE_FLAG, 0, 0, 2, NULL},
|
|
|
|
{"sub-no-text-pp", &sub_no_text_pp, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2012-11-15 18:08:21 +00:00
|
|
|
{"autosub-match", &sub_match_fuzziness, CONF_TYPE_CHOICE, 0,
|
|
|
|
M_CHOICES(({"exact", 0}, {"fuzzy", 1}, {"all", 2}))},
|
2012-09-18 18:07:24 +00:00
|
|
|
{"sub-pos", &sub_pos, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
|
2012-11-24 23:06:16 +00:00
|
|
|
OPT_FLOATRANGE("sub-gauss", sub_gauss, 0, 0.0, 3.0),
|
2012-11-25 22:32:35 +00:00
|
|
|
OPT_MAKE_FLAGS("sub-gray", sub_gray, 0),
|
2011-03-10 21:08:21 +00:00
|
|
|
OPT_MAKE_FLAGS("ass", ass_enabled, 0),
|
2012-11-17 19:56:45 +00:00
|
|
|
OPT_FLOATRANGE("sub-scale", sub_scale, 0, 0, 100),
|
2011-09-03 10:47:56 +00:00
|
|
|
OPT_FLOATRANGE("ass-line-spacing", ass_line_spacing, 0, -1000, 1000),
|
|
|
|
OPT_MAKE_FLAGS("ass-use-margins", ass_use_margins, 0),
|
2011-08-04 19:47:36 +00:00
|
|
|
OPT_MAKE_FLAGS("ass-vsfilter-aspect-compat", ass_vsfilter_aspect_compat, 0),
|
2011-09-03 10:47:56 +00:00
|
|
|
OPT_MAKE_FLAGS("embeddedfonts", use_embedded_fonts, 0),
|
2011-07-23 02:13:25 +00:00
|
|
|
OPT_STRINGLIST("ass-force-style", ass_force_style_list, 0),
|
2011-09-03 10:47:56 +00:00
|
|
|
OPT_STRING("ass-styles", ass_styles_file, 0),
|
|
|
|
OPT_INTRANGE("ass-hinting", ass_hinting, 0, 0, 7),
|
2012-10-11 00:23:29 +00:00
|
|
|
OPT_CHOICE("ass-style-override", ass_style_override, 0,
|
|
|
|
({"no", 0}, {"yes", 1})),
|
2012-11-17 19:56:45 +00:00
|
|
|
OPT_GENERAL("osd", osd_style, M_OPT_PREFIXED,
|
|
|
|
.type = &m_option_type_subconfig_struct,
|
|
|
|
.priv = (void*)&osd_style_conf),
|
2011-03-10 21:08:21 +00:00
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_TV
|
2007-12-02 16:45:34 +00:00
|
|
|
const m_option_t tvscan_conf[]={
|
2010-05-03 23:34:38 +00:00
|
|
|
{"autostart", &stream_tv_defaults.scan, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"threshold", &stream_tv_defaults.scan_threshold, CONF_TYPE_INT, CONF_RANGE, 1, 100, NULL},
|
|
|
|
{"period", &stream_tv_defaults.scan_period, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 2.0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2007-08-23 16:09:30 +00:00
|
|
|
};
|
|
|
|
#endif
|
2001-08-15 19:26:22 +00:00
|
|
|
|
2012-08-06 15:48:30 +00:00
|
|
|
extern const struct m_sub_options image_writer_conf;
|
|
|
|
|
|
|
|
const m_option_t screenshot_conf[] = {
|
|
|
|
OPT_SUBSTRUCT(screenshot_image_opts, image_writer_conf, M_OPT_MERGE),
|
|
|
|
OPT_STRING("template", screenshot_template, 0),
|
|
|
|
{0},
|
|
|
|
};
|
|
|
|
|
2007-12-02 16:45:34 +00:00
|
|
|
const m_option_t mplayer_opts[]={
|
2010-05-03 23:34:38 +00:00
|
|
|
/* name, pointer, type, flags, min, max */
|
2001-11-02 00:32:35 +00:00
|
|
|
|
2002-05-04 21:26:45 +00:00
|
|
|
//---------------------- libao/libvo options ------------------------
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_STRINGLIST("vo", video_driver_list, 0),
|
|
|
|
OPT_STRINGLIST("ao", audio_driver_list, 0),
|
2010-11-04 04:41:47 +00:00
|
|
|
OPT_MAKE_FLAGS("fixed-vo", fixed_vo, CONF_GLOBAL),
|
|
|
|
OPT_MAKE_FLAGS("ontop", vo_ontop, 0),
|
2010-05-03 23:34:38 +00:00
|
|
|
{"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"border", &vo_border, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
|
2012-01-21 07:28:07 +00:00
|
|
|
OPT_STRING("mixer", mixer_device, 0),
|
|
|
|
OPT_STRING("mixer-channel", mixer_channel, 0),
|
softvol, ao_pulse: prefer ao_pulse volume control by default
--softvol is enabled by default. For most audio outputs, this is a good
thing, as they have either their own (bad) soft volume implementation,
or control the system mixer. With ao_pulse, the situation is a bit
different: it supports per-application volume (i.e. volume control is
not really global). More importantly, ao_pulse uses a rather large audio
buffer, and changing the volume with mplayer's volume filter has a large
delay. With the native ao_pulse volume control, it's instant, because
PulseAudio's audio filtering happens at a later stage in its processing
pipeline (inaccessible for mplayer).
This means native volume control should really be allowed for ao_pulse,
while it's the reverse for other audio outputs. Make --softvol a choice
option, and add a new "auto" choice. This is default and will use PA's
volume control with ao_pulse, and mplayer's volume filter otherwise
(i.e. the old softvol behavior).
2012-09-18 19:41:22 +00:00
|
|
|
OPT_CHOICE("softvol", softvol, 0,
|
|
|
|
({"no", SOFTVOL_NO},
|
|
|
|
{"yes", SOFTVOL_YES},
|
|
|
|
{"auto", SOFTVOL_AUTO})),
|
2012-01-21 07:28:07 +00:00
|
|
|
OPT_FLOATRANGE("softvol-max", softvol_max, 0, 10, 10000),
|
2010-05-03 23:34:38 +00:00
|
|
|
{"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
|
2012-11-15 18:22:01 +00:00
|
|
|
OPT_FLOATRANGE("volume", mixer_init_volume, 0, -1, 10000),
|
|
|
|
OPT_CHOICE("mute", mixer_init_mute, 0,
|
|
|
|
({"auto", -1},
|
|
|
|
{"no", 0},
|
|
|
|
{"yes", 1})),
|
2010-11-12 12:06:37 +00:00
|
|
|
OPT_MAKE_FLAGS("gapless-audio", gapless_audio, 0),
|
|
|
|
// override audio buffer size (used only by -ao oss/win32, obsolete)
|
|
|
|
OPT_INT("abs", ao_buffersize, 0),
|
2010-05-03 23:34:38 +00:00
|
|
|
|
|
|
|
{"edlout", &edl_output_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
2001-06-23 19:58:32 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// force window width/height or resolution (with -vm)
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_INTRANGE("x", screen_size_x, 0, 0, 4096),
|
|
|
|
OPT_INTRANGE("y", screen_size_y, 0, 0, 4096),
|
2010-05-03 23:34:38 +00:00
|
|
|
// set screen dimensions (when not detectable or virtual!=visible)
|
2012-08-04 09:39:23 +00:00
|
|
|
OPT_INTRANGE("screenw", vo_screenwidth, CONF_GLOBAL, 0, 4096),
|
|
|
|
OPT_INTRANGE("screenh", vo_screenheight, CONF_GLOBAL, 0, 4096),
|
2010-05-03 23:34:38 +00:00
|
|
|
// Geometry string
|
|
|
|
{"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
2010-11-04 04:41:47 +00:00
|
|
|
OPT_MAKE_FLAGS("force-window-position", force_window_position, 0),
|
2010-05-03 23:34:38 +00:00
|
|
|
// vo name (X classname) and window title strings
|
2010-11-04 03:41:11 +00:00
|
|
|
OPT_STRING("name", vo_winname, 0),
|
|
|
|
OPT_STRING("title", vo_wintitle, 0),
|
2010-05-03 23:34:38 +00:00
|
|
|
// set aspect ratio of monitor - useful for 16:9 TV-out
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_FLOATRANGE("monitoraspect", force_monitor_aspect, 0, 0.0, 9.0),
|
|
|
|
OPT_FLOATRANGE("monitorpixelaspect", monitor_pixel_aspect, 0, 0.2, 9.0),
|
2010-05-03 23:34:38 +00:00
|
|
|
// video mode switching: (x11,xv,dga)
|
2010-11-04 04:41:47 +00:00
|
|
|
OPT_MAKE_FLAGS("vm", vidmode, 0),
|
2010-05-03 23:34:38 +00:00
|
|
|
// start in fullscreen mode:
|
2012-09-18 18:07:24 +00:00
|
|
|
OPT_MAKE_FLAGS("fullscreen", fullscreen, CONF_GLOBAL),
|
2012-08-04 09:39:23 +00:00
|
|
|
OPT_MAKE_FLAGS("fs", fullscreen, CONF_GLOBAL),
|
2010-05-03 23:34:38 +00:00
|
|
|
// set fullscreen switch method (workaround for buggy WMs)
|
|
|
|
{"fsmode-dontuse", &vo_fsmode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
|
2012-09-01 18:02:15 +00:00
|
|
|
// set bpp (x11+vm)
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_INTRANGE("bpp", vo_dbpp, 0, 0, 32),
|
2010-05-03 23:34:38 +00:00
|
|
|
{"colorkey", &vo_colorkey, CONF_TYPE_INT, 0, 0, 0, NULL},
|
2012-07-29 23:58:41 +00:00
|
|
|
{"no-colorkey", &vo_colorkey, CONF_TYPE_FLAG, 0, 0, 0x1000000, NULL},
|
2012-09-01 18:02:15 +00:00
|
|
|
// wait for v-sync (gl)
|
2010-05-03 23:34:38 +00:00
|
|
|
{"vsync", &vo_vsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2012-09-18 18:07:24 +00:00
|
|
|
{"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, 0, 1.0, NULL},
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_FLOATRANGE("panscanrange", vo_panscanrange, 0, -19.0, 99.0),
|
video, options: implement better YUV->RGB conversion control
Rewrite control of the colorspace and input/output level parameters
used in YUV-RGB conversions, replacing VO-specific suboptions with new
common options and adding configuration support to more cases.
Add new option --colormatrix which selects the colorspace the original
video is assumed to have in YUV->RGB conversions. The default
behavior changes from assuming BT.601 to colorspace autoselection
between BT.601 and BT.709 using a simple heuristic based on video
size. Add new options --colormatrix-input-range and
--colormatrix-output-range which select input YUV and output RGB range.
Disable the previously existing VO-specific colorspace and level
conversion suboptions in vo_gl and vo_vdpau. Remove the
"yuv_colorspace" property and replace it with one named "colormatrix"
and semantics matching the new option. Add new properties matching the
options for level conversion.
Colorspace selection is currently supported by vo_gl, vo_vdpau, vo_xv
and vf_scale, and all can change it at runtime (previously only
vo_vdpau and vo_xv could). vo_vdpau now uses the same conversion
matrix generation as vo_gl instead of libvdpau functionality; the main
functional difference is that the "contrast" equalizer control behaves
somewhat differently (it scales the Y component around 1/2 instead of
around 0, so that contrast 0 makes the image gray rather than black).
vo_xv does not support level conversion. vf_scale supports range
setting for input, but always outputs full-range RGB.
The value of the slave properties is the policy setting used for
conversions. This means they can be set to any value regardless of
whether the current VO supports that value or whether there currently
even is any video. Possibly separate properties could be added to
query the conversion actually used at the moment, if any.
Because the colorspace and level settings are now set with a single
VF/VO control call, the return value of that is no longer used to
signal whether all the settings are actually supported. Instead code
should set all the details it can support, and ignore the rest. The
core will use GET_YUV_COLORSPACE to check which colorspace details
have been set and which not. In other words, the return value for
SET_YUV_COLORSPACE only signals whether any kind of YUV colorspace
conversion handling exists at all, and VOs have to take care to return
the actual state with GET_YUV_COLORSPACE instead.
To be changed in later commits: add missing option documentation.
2011-10-15 21:50:21 +00:00
|
|
|
OPT_CHOICE("colormatrix", requested_colorspace, 0,
|
2012-08-05 22:10:13 +00:00
|
|
|
({"auto", MP_CSP_AUTO},
|
|
|
|
{"BT.601", MP_CSP_BT_601},
|
|
|
|
{"BT.709", MP_CSP_BT_709},
|
|
|
|
{"SMPTE-240M", MP_CSP_SMPTE_240M})),
|
video, options: implement better YUV->RGB conversion control
Rewrite control of the colorspace and input/output level parameters
used in YUV-RGB conversions, replacing VO-specific suboptions with new
common options and adding configuration support to more cases.
Add new option --colormatrix which selects the colorspace the original
video is assumed to have in YUV->RGB conversions. The default
behavior changes from assuming BT.601 to colorspace autoselection
between BT.601 and BT.709 using a simple heuristic based on video
size. Add new options --colormatrix-input-range and
--colormatrix-output-range which select input YUV and output RGB range.
Disable the previously existing VO-specific colorspace and level
conversion suboptions in vo_gl and vo_vdpau. Remove the
"yuv_colorspace" property and replace it with one named "colormatrix"
and semantics matching the new option. Add new properties matching the
options for level conversion.
Colorspace selection is currently supported by vo_gl, vo_vdpau, vo_xv
and vf_scale, and all can change it at runtime (previously only
vo_vdpau and vo_xv could). vo_vdpau now uses the same conversion
matrix generation as vo_gl instead of libvdpau functionality; the main
functional difference is that the "contrast" equalizer control behaves
somewhat differently (it scales the Y component around 1/2 instead of
around 0, so that contrast 0 makes the image gray rather than black).
vo_xv does not support level conversion. vf_scale supports range
setting for input, but always outputs full-range RGB.
The value of the slave properties is the policy setting used for
conversions. This means they can be set to any value regardless of
whether the current VO supports that value or whether there currently
even is any video. Possibly separate properties could be added to
query the conversion actually used at the moment, if any.
Because the colorspace and level settings are now set with a single
VF/VO control call, the return value of that is no longer used to
signal whether all the settings are actually supported. Instead code
should set all the details it can support, and ignore the rest. The
core will use GET_YUV_COLORSPACE to check which colorspace details
have been set and which not. In other words, the return value for
SET_YUV_COLORSPACE only signals whether any kind of YUV colorspace
conversion handling exists at all, and VOs have to take care to return
the actual state with GET_YUV_COLORSPACE instead.
To be changed in later commits: add missing option documentation.
2011-10-15 21:50:21 +00:00
|
|
|
OPT_CHOICE("colormatrix-input-range", requested_input_range, 0,
|
|
|
|
({"auto", MP_CSP_LEVELS_AUTO},
|
|
|
|
{"limited", MP_CSP_LEVELS_TV},
|
|
|
|
{"full", MP_CSP_LEVELS_PC})),
|
|
|
|
OPT_CHOICE("colormatrix-output-range", requested_output_range, 0,
|
|
|
|
({"auto", MP_CSP_LEVELS_AUTO},
|
|
|
|
{"limited", MP_CSP_LEVELS_TV},
|
|
|
|
{"full", MP_CSP_LEVELS_PC})),
|
2010-05-03 23:34:38 +00:00
|
|
|
|
|
|
|
{"grabpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2012-11-15 17:59:41 +00:00
|
|
|
OPT_CHOICE_OR_INT("cursor-autohide", cursor_autohide_delay, 0,
|
|
|
|
0, 30000, ({"no", -1}, {"always", -2})),
|
2009-07-06 23:26:13 +00:00
|
|
|
|
2004-03-13 16:48:52 +00:00
|
|
|
{"refreshrate",&vo_refresh_rate,CONF_TYPE_INT,CONF_RANGE, 0,100, NULL},
|
2010-05-03 23:34:38 +00:00
|
|
|
{"wid", &WinID, CONF_TYPE_INT64, 0, 0, 0, NULL},
|
2008-08-04 06:16:23 +00:00
|
|
|
#ifdef CONFIG_X11
|
2010-05-03 23:34:38 +00:00
|
|
|
{"stop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
|
2004-07-23 13:00:16 +00:00
|
|
|
#endif
|
2010-05-03 23:34:38 +00:00
|
|
|
{"heartbeat-cmd", &heartbeat_cmd, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"mouseinput", &vo_nomouse_input, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
2004-07-23 13:00:16 +00:00
|
|
|
|
2012-11-15 14:32:55 +00:00
|
|
|
{"screen", &xinerama_screen, CONF_TYPE_CHOICE, CONF_RANGE,
|
|
|
|
.min = 0, .max = 32, M_CHOICES(({"all", -2}, {"current", -1}))},
|
2002-05-04 21:26:45 +00:00
|
|
|
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_INTRANGE("brightness", vo_gamma_brightness, 0, -100, 100),
|
|
|
|
OPT_INTRANGE("saturation", vo_gamma_saturation, 0, -100, 100),
|
|
|
|
OPT_INTRANGE("contrast", vo_gamma_contrast, 0, -100, 100),
|
|
|
|
OPT_INTRANGE("hue", vo_gamma_hue, 0, -100, 100),
|
2011-03-09 23:03:54 +00:00
|
|
|
OPT_INTRANGE("gamma", vo_gamma_gamma, 0, -100, 100),
|
2010-05-03 23:34:38 +00:00
|
|
|
{"keepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
2002-05-04 21:26:45 +00:00
|
|
|
|
|
|
|
//---------------------- mplayer-only options ------------------------
|
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
|
2012-09-17 06:45:35 +00:00
|
|
|
OPT_CHOICE("osd-level", osd_level, 0,
|
|
|
|
({"0", 0}, {"1", 1}, {"2", 2}, {"3", 3})),
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_INTRANGE("osd-duration", osd_duration, 0, 0, 3600000),
|
2012-07-31 22:39:49 +00:00
|
|
|
OPT_MAKE_FLAGS("osd-fractions", osd_fractions, 0),
|
2002-05-04 21:26:45 +00:00
|
|
|
|
2012-09-18 09:48:50 +00:00
|
|
|
{"sstep", &step_sec, CONF_TYPE_DOUBLE, CONF_MIN, 0, 0, NULL},
|
2002-05-04 21:26:45 +00:00
|
|
|
|
2012-09-17 06:38:19 +00:00
|
|
|
OPT_CHOICE("framedrop", frame_dropping, 0,
|
|
|
|
({"no", 0},
|
|
|
|
{"yes", 1}, {"", 1},
|
|
|
|
{"hard", 2})),
|
2002-05-04 21:26:45 +00:00
|
|
|
|
2012-07-29 22:27:50 +00:00
|
|
|
OPT_FLAG_ON("untimed", untimed, 0),
|
2002-05-04 21:26:45 +00:00
|
|
|
|
2008-08-07 08:58:07 +00:00
|
|
|
#ifdef CONFIG_LIRC
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
2001-11-02 00:32:35 +00:00
|
|
|
#endif
|
|
|
|
|
2011-01-15 20:26:27 +00:00
|
|
|
{"leak-report", "", CONF_TYPE_PRINT, 0, 0, 0, (void*)1},
|
2001-11-02 00:32:35 +00:00
|
|
|
|
2012-07-29 23:58:41 +00:00
|
|
|
OPT_FLAG_CONSTANTS("no-loop", loop_times, 0, 0, -1),
|
2012-11-14 12:28:16 +00:00
|
|
|
OPT_CHOICE_OR_INT("loop", loop_times, M_OPT_LOCAL, 1, 10000,
|
2012-09-18 13:50:24 +00:00
|
|
|
({"no", -1}, {"0", -1},
|
2012-09-05 00:17:13 +00:00
|
|
|
{"inf", 0})),
|
2012-08-05 21:34:28 +00:00
|
|
|
|
|
|
|
{"playlist", NULL, CONF_TYPE_STRING, CONF_NOCFG | M_OPT_MIN, 1, 0, NULL},
|
2011-03-29 19:38:39 +00:00
|
|
|
{"shuffle", NULL, CONF_TYPE_FLAG, CONF_NOCFG, 0, 0, NULL},
|
2012-08-05 21:34:28 +00:00
|
|
|
{"{", NULL, CONF_TYPE_FLAG, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{"}", NULL, CONF_TYPE_FLAG, CONF_NOCFG, 0, 0, NULL},
|
2002-05-04 21:26:45 +00:00
|
|
|
|
2010-11-04 04:41:47 +00:00
|
|
|
OPT_MAKE_FLAGS("ordered-chapters", ordered_chapters, 0),
|
2010-11-26 14:56:05 +00:00
|
|
|
OPT_INTRANGE("chapter-merge-threshold", chapter_merge_threshold, 0, 0, 10000),
|
2009-04-07 23:37:27 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// a-v sync stuff:
|
2010-11-04 04:41:47 +00:00
|
|
|
OPT_MAKE_FLAGS("correct-pts", user_correct_pts, 0),
|
2010-12-17 23:00:28 +00:00
|
|
|
OPT_CHOICE("pts-association-mode", user_pts_assoc_mode, 0,
|
|
|
|
({"auto", 0}, {"decoder", 1}, {"sort", 2})),
|
2010-11-13 17:27:01 +00:00
|
|
|
OPT_MAKE_FLAGS("initial-audio-sync", initial_audio_sync, 0),
|
2010-12-14 23:09:47 +00:00
|
|
|
OPT_CHOICE("hr-seek", hr_seek, 0,
|
2012-09-18 13:50:24 +00:00
|
|
|
({"no", -1}, {"absolute", 0}, {"always", 1}, {"yes", 1})),
|
2011-11-06 14:54:57 +00:00
|
|
|
OPT_FLOATRANGE("hr-seek-demuxer-offset", hr_seek_demuxer_offset, 0, -9, 99),
|
2012-07-29 23:58:41 +00:00
|
|
|
OPT_FLAG_CONSTANTS("no-autosync", autosync, 0, 0, -1),
|
2010-11-12 20:04:16 +00:00
|
|
|
OPT_INTRANGE("autosync", autosync, 0, 0, 10000),
|
2002-09-23 22:12:29 +00:00
|
|
|
|
2010-11-12 20:04:16 +00:00
|
|
|
OPT_FLAG_ON("softsleep", softsleep, 0),
|
2002-03-12 18:02:02 +00:00
|
|
|
|
2012-09-03 20:44:44 +00:00
|
|
|
OPT_CHOICE("term-osd", term_osd, 0,
|
2012-01-06 18:48:50 +00:00
|
|
|
({"force", 1},
|
2012-09-03 20:44:44 +00:00
|
|
|
{"auto", 2}, {"", 2},
|
2012-09-18 13:50:24 +00:00
|
|
|
{"no", 0})),
|
2012-01-06 18:48:50 +00:00
|
|
|
|
2012-05-17 00:31:11 +00:00
|
|
|
OPT_STRING("term-osd-esc", term_osd_esc, 0, OPTDEF_STR("\x1b[A\r\x1b[K")),
|
2010-11-13 21:10:58 +00:00
|
|
|
OPT_STRING("playing-msg", playing_msg, 0),
|
2012-10-02 01:12:09 +00:00
|
|
|
OPT_STRING("status-msg", status_msg, 0),
|
2010-05-03 23:34:38 +00:00
|
|
|
|
2012-08-15 20:21:17 +00:00
|
|
|
{"slave-broken", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL},
|
2010-11-13 21:10:58 +00:00
|
|
|
OPT_MAKE_FLAGS("idle", player_idle_mode, CONF_GLOBAL),
|
2011-07-17 01:47:50 +00:00
|
|
|
OPT_INTRANGE("key-fifo-size", input.key_fifo_size, CONF_GLOBAL, 2, 65000),
|
2010-11-13 21:10:58 +00:00
|
|
|
OPT_MAKE_FLAGS("consolecontrols", consolecontrols, CONF_GLOBAL),
|
2010-05-03 23:34:38 +00:00
|
|
|
{"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
|
2010-05-07 19:02:47 +00:00
|
|
|
OPT_INTRANGE("doubleclick-time", doubleclick_time, 0, 0, 1000),
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_TV
|
2010-05-07 19:02:47 +00:00
|
|
|
{"tvscan", (void *) tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
|
2008-07-30 12:01:30 +00:00
|
|
|
#endif /* CONFIG_TV */
|
2002-05-04 21:26:45 +00:00
|
|
|
|
2012-08-06 15:48:30 +00:00
|
|
|
{"screenshot", (void *) screenshot_conf, CONF_TYPE_SUBCONFIG,
|
|
|
|
M_OPT_PREFIXED, 0, 0, NULL},
|
2011-10-06 18:46:02 +00:00
|
|
|
|
2010-11-13 21:10:58 +00:00
|
|
|
OPT_FLAG_ON("list-properties", list_properties, CONF_GLOBAL),
|
2010-05-03 23:34:38 +00:00
|
|
|
{"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL},
|
2010-05-07 19:02:47 +00:00
|
|
|
{"help", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
{"h", (void *) help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
|
2005-02-23 01:37:03 +00:00
|
|
|
|
2012-11-14 01:34:42 +00:00
|
|
|
#ifdef CONFIG_ENCODING
|
2012-09-14 15:51:26 +00:00
|
|
|
OPT_STRING("o", encode_output.file, CONF_GLOBAL),
|
|
|
|
OPT_STRING("of", encode_output.format, CONF_GLOBAL),
|
|
|
|
OPT_STRINGLIST("ofopts*", encode_output.fopts, CONF_GLOBAL),
|
|
|
|
OPT_FLOATRANGE("ofps", encode_output.fps, CONF_GLOBAL, 0.0, 1000000.0),
|
|
|
|
OPT_STRING("ovc", encode_output.vcodec, CONF_GLOBAL),
|
|
|
|
OPT_STRINGLIST("ovcopts*", encode_output.vopts, CONF_GLOBAL),
|
|
|
|
OPT_STRING("oac", encode_output.acodec, CONF_GLOBAL),
|
|
|
|
OPT_STRINGLIST("oacopts*", encode_output.aopts, CONF_GLOBAL),
|
|
|
|
OPT_MAKE_FLAGS("oharddup", encode_output.harddup, CONF_GLOBAL),
|
|
|
|
OPT_FLOATRANGE("ovoffset", encode_output.voffset, CONF_GLOBAL, -1000000.0, 1000000.0),
|
|
|
|
OPT_FLOATRANGE("oaoffset", encode_output.aoffset, CONF_GLOBAL, -1000000.0, 1000000.0),
|
|
|
|
OPT_MAKE_FLAGS("ocopyts", encode_output.copyts, CONF_GLOBAL),
|
|
|
|
OPT_MAKE_FLAGS("orawts", encode_output.rawts, CONF_GLOBAL),
|
|
|
|
OPT_MAKE_FLAGS("oautofps", encode_output.autofps, CONF_GLOBAL),
|
|
|
|
OPT_MAKE_FLAGS("oneverdrop", encode_output.neverdrop, CONF_GLOBAL),
|
2012-09-29 13:04:40 +00:00
|
|
|
OPT_MAKE_FLAGS("ovfirst", encode_output.video_first, CONF_GLOBAL),
|
|
|
|
OPT_MAKE_FLAGS("oafirst", encode_output.audio_first, CONF_GLOBAL),
|
2012-11-14 01:34:42 +00:00
|
|
|
#endif
|
2012-09-14 15:51:26 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2001-03-18 23:32:31 +00:00
|
|
|
};
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_CFG_MPLAYER_H */
|