2001-11-02 01:25:13 +00:00
|
|
|
/*
|
|
|
|
* config for cfgparser
|
|
|
|
*/
|
|
|
|
|
2001-11-09 23:46:06 +00:00
|
|
|
#include "cfg-common.h"
|
|
|
|
|
2001-11-02 01:25:13 +00:00
|
|
|
#ifdef USE_FAKE_MONO
|
|
|
|
extern int fakemono; // defined in dec_audio.c
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_ODIVX_POSTPROCESS
|
|
|
|
extern int use_old_pp;
|
|
|
|
#endif
|
|
|
|
|
2001-12-02 20:03:26 +00:00
|
|
|
extern int sws_flags;
|
|
|
|
|
2001-11-02 03:22:33 +00:00
|
|
|
struct config divx4opts_conf[]={
|
|
|
|
{"br", &divx4_param.bitrate, CONF_TYPE_INT, CONF_RANGE, 4, 24000000},
|
|
|
|
{"rc_period", &divx4_param.rc_period, CONF_TYPE_INT, 0,0,0},
|
|
|
|
{"rc_reaction_period", &divx4_param.rc_reaction_period, CONF_TYPE_INT, 0,0,0},
|
|
|
|
{"rc_reaction_ratio", &divx4_param.rc_reaction_ratio, CONF_TYPE_INT, 0,0,0},
|
|
|
|
{"min_quant", &divx4_param.min_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32},
|
|
|
|
{"max_quant", &divx4_param.max_quantizer, CONF_TYPE_INT, CONF_RANGE,0,32},
|
|
|
|
{"key", &divx4_param.max_key_interval, CONF_TYPE_INT, CONF_MIN,0,0},
|
|
|
|
{"deinterlace", &divx4_param.deinterlace, CONF_TYPE_FLAG, 0,0,1},
|
|
|
|
{"q", &divx4_param.quality, CONF_TYPE_INT, CONF_RANGE, 1, 5},
|
2001-11-03 00:44:02 +00:00
|
|
|
{"crispness", &divx4_crispness, CONF_TYPE_INT, CONF_RANGE,0,100},
|
2001-11-02 03:22:33 +00:00
|
|
|
{"help", "TODO: divx4opts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0}
|
|
|
|
};
|
|
|
|
|
2001-12-06 22:27:09 +00:00
|
|
|
#ifdef HAVE_MP3LAME
|
2001-11-02 03:22:33 +00:00
|
|
|
struct config lameopts_conf[]={
|
|
|
|
{"q", &lame_param_quality, CONF_TYPE_INT, CONF_RANGE, 0, 9},
|
|
|
|
{"vbr", &lame_param_vbr, CONF_TYPE_INT, CONF_RANGE, 0, vbr_max_indicator},
|
|
|
|
{"cbr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, 0},
|
2001-12-06 22:27:09 +00:00
|
|
|
{"abr", &lame_param_vbr, CONF_TYPE_FLAG, 0, 0, vbr_abr},
|
2001-11-02 03:22:33 +00:00
|
|
|
{"mode", &lame_param_mode, CONF_TYPE_INT, CONF_RANGE, 0, MAX_INDICATOR},
|
|
|
|
{"padding", &lame_param_padding, CONF_TYPE_INT, CONF_RANGE, 0, PAD_MAX_INDICATOR},
|
|
|
|
{"br", &lame_param_br, CONF_TYPE_INT, CONF_RANGE, 0, 1024},
|
|
|
|
{"ratio", &lame_param_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 100},
|
2001-11-03 23:01:17 +00:00
|
|
|
{"help", "TODO: lameopts help!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0}
|
|
|
|
};
|
2001-12-06 22:27:09 +00:00
|
|
|
#endif
|
2001-11-03 23:01:17 +00:00
|
|
|
|
|
|
|
struct config ovc_conf[]={
|
2001-12-08 12:21:23 +00:00
|
|
|
{"copy", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_COPY},
|
2001-12-06 23:59:46 +00:00
|
|
|
{"frameno", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_FRAMENO},
|
2001-11-03 23:01:17 +00:00
|
|
|
{"divx4", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_DIVX4},
|
2001-12-13 17:50:19 +00:00
|
|
|
{"raw", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_RAW},
|
|
|
|
{"help", "\nAvailable codecs:\n copy\n frameno\n divx4\n raw\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
2001-11-03 23:01:17 +00:00
|
|
|
{NULL, NULL, 0, 0, 0, 0}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct config oac_conf[]={
|
2001-12-08 13:30:35 +00:00
|
|
|
{"copy", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_COPY},
|
2001-11-03 23:01:17 +00:00
|
|
|
{"pcm", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_PCM},
|
2001-12-06 22:27:09 +00:00
|
|
|
#ifdef HAVE_MP3LAME
|
2001-11-03 23:01:17 +00:00
|
|
|
{"mp3lame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_VBRMP3},
|
|
|
|
{"help", "\nAvailable codecs:\n copy\n pcm\n mp3lame\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
2001-12-06 22:27:09 +00:00
|
|
|
#else
|
|
|
|
{"mp3lame", "MPlayer was compiled without libmp3lame support!\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
{"help", "\nAvailable codecs:\n copy\n pcm\n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
#endif
|
2001-11-02 03:22:33 +00:00
|
|
|
{NULL, NULL, 0, 0, 0, 0}
|
|
|
|
};
|
|
|
|
|
2001-11-02 01:25:13 +00:00
|
|
|
struct config conf[]={
|
|
|
|
/* name, pointer, type, flags, min, max */
|
|
|
|
{"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */
|
|
|
|
|
2001-11-02 03:22:33 +00:00
|
|
|
{"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0},
|
|
|
|
{"o", &out_filename, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
|
2001-12-01 01:29:25 +00:00
|
|
|
{"x", &vo_w, CONF_TYPE_INT, CONF_RANGE, 0, 4096},
|
|
|
|
{"y", &vo_h, CONF_TYPE_INT, CONF_RANGE, 0, 4096},
|
|
|
|
|
2001-11-02 03:22:33 +00:00
|
|
|
{"mp3file", &mp3_filename, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"ac3file", &ac3_filename, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
|
2001-11-03 23:01:17 +00:00
|
|
|
// {"oac", &out_audio_codec, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
// {"ovc", &out_video_codec, CONF_TYPE_STRING, 0, 0, 0},
|
|
|
|
{"oac", oac_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
|
|
|
{"ovc", ovc_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
2001-11-03 00:44:02 +00:00
|
|
|
|
|
|
|
{"pass", &pass, CONF_TYPE_INT, CONF_RANGE,0,2},
|
2001-12-08 01:29:19 +00:00
|
|
|
{"passlogfile", &passtmpfile, CONF_TYPE_STRING, 0, 0, 0},
|
2001-11-02 03:22:33 +00:00
|
|
|
|
|
|
|
{"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
2001-12-06 22:27:09 +00:00
|
|
|
#ifdef HAVE_MP3LAME
|
2001-11-02 03:22:33 +00:00
|
|
|
{"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0},
|
2001-12-06 22:27:09 +00:00
|
|
|
#endif
|
2001-11-02 01:25:13 +00:00
|
|
|
|
2001-11-09 23:46:06 +00:00
|
|
|
#define MAIN_CONF
|
2001-11-02 01:25:13 +00:00
|
|
|
#include "cfg-common.h"
|
2001-11-09 23:46:06 +00:00
|
|
|
#undef MAIN_CONF
|
2001-11-02 01:25:13 +00:00
|
|
|
|
|
|
|
// {"quiet", &quiet, CONF_TYPE_FLAG, 0, 0, 1},
|
|
|
|
{"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100},
|
|
|
|
{"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0},
|
|
|
|
// {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
// {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
// {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0}
|
|
|
|
};
|