2004-05-03 12:09:18 +02:00
|
|
|
|
2001-11-02 02:25:13 +01:00
|
|
|
/*
|
|
|
|
* config for cfgparser
|
|
|
|
*/
|
|
|
|
|
2001-11-10 00:46:06 +01:00
|
|
|
#include "cfg-common.h"
|
|
|
|
|
2001-11-02 02:25:13 +01: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 21:03:26 +01:00
|
|
|
extern int sws_flags;
|
2001-12-26 20:45:49 +01:00
|
|
|
extern int readPPOpt(void *, char *arg);
|
2002-01-19 17:59:59 +01:00
|
|
|
extern void revertPPOpt(void *conf, char* opt);
|
2003-01-03 13:40:10 +01:00
|
|
|
extern char *pp_help;
|
2001-12-02 21:03:26 +01:00
|
|
|
|
2001-12-22 17:59:10 +01:00
|
|
|
#ifdef HAVE_DIVX4ENCORE
|
2003-08-13 18:29:32 +02:00
|
|
|
extern m_option_t divx4opts_conf[];
|
2001-12-22 17:59:10 +01:00
|
|
|
#endif
|
2001-11-02 04:22:33 +01:00
|
|
|
|
2001-12-06 23:27:09 +01:00
|
|
|
#ifdef HAVE_MP3LAME
|
2005-04-22 08:59:59 +02:00
|
|
|
extern m_option_t lameopts_conf[];
|
2001-12-06 23:27:09 +01:00
|
|
|
#endif
|
2001-11-04 00:01:17 +01:00
|
|
|
|
2001-12-22 15:32:08 +01:00
|
|
|
#ifdef USE_LIBAVCODEC
|
2003-08-13 18:29:32 +02:00
|
|
|
extern m_option_t lavcopts_conf[];
|
2001-12-22 15:32:08 +01:00
|
|
|
#endif
|
|
|
|
|
2004-09-21 21:50:54 +02:00
|
|
|
#ifdef HAVE_TOOLAME
|
|
|
|
extern m_option_t toolameopts_conf[];
|
|
|
|
#endif
|
|
|
|
|
2005-05-07 16:50:14 +02:00
|
|
|
#ifdef HAVE_TWOLAME
|
|
|
|
extern m_option_t twolameopts_conf[];
|
|
|
|
#endif
|
|
|
|
|
2005-04-25 09:07:57 +02:00
|
|
|
#ifdef HAVE_FAAC
|
|
|
|
extern m_option_t faacopts_conf[];
|
|
|
|
#endif
|
|
|
|
|
2001-12-22 15:32:08 +01:00
|
|
|
#ifdef USE_WIN32DLL
|
2003-08-13 18:29:32 +02:00
|
|
|
extern m_option_t vfwopts_conf[];
|
2001-12-22 15:32:08 +01:00
|
|
|
#endif
|
|
|
|
|
2003-11-12 01:43:42 +01:00
|
|
|
#if defined(HAVE_XVID3) || defined(HAVE_XVID4)
|
2003-08-13 18:29:32 +02:00
|
|
|
extern m_option_t xvidencopts_conf[];
|
2002-09-21 14:41:29 +02:00
|
|
|
#endif
|
|
|
|
|
2004-08-27 22:43:05 +02:00
|
|
|
#if defined(HAVE_X264)
|
|
|
|
extern m_option_t x264encopts_conf[];
|
|
|
|
#endif
|
|
|
|
|
2003-08-13 18:29:32 +02:00
|
|
|
extern m_option_t nuvopts_conf[];
|
2005-02-21 22:45:49 +01:00
|
|
|
extern m_option_t mpegopts_conf[];
|
2006-01-09 20:35:44 +01:00
|
|
|
#if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO)
|
2005-02-22 00:18:31 +01:00
|
|
|
extern m_option_t lavfopts_conf[];
|
|
|
|
#endif
|
2003-03-03 12:03:19 +01:00
|
|
|
|
2003-08-13 18:29:32 +02:00
|
|
|
m_option_t ovc_conf[]={
|
2002-01-15 00:54:31 +01:00
|
|
|
{"copy", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_COPY, NULL},
|
|
|
|
{"frameno", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_FRAMENO, NULL},
|
|
|
|
{"divx4", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_DIVX4, NULL},
|
|
|
|
{"lavc", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_LIBAVCODEC, NULL},
|
2002-04-11 04:52:03 +02:00
|
|
|
// {"null", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_NULL, NULL},
|
2004-02-17 13:43:07 +01:00
|
|
|
{"raw", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_RAW, NULL},
|
2002-02-07 21:22:03 +01:00
|
|
|
{"vfw", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_VFW, NULL},
|
2002-04-12 23:50:38 +02:00
|
|
|
{"libdv", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_LIBDV, NULL},
|
2002-09-21 14:41:29 +02:00
|
|
|
{"xvid", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_XVID, NULL},
|
2002-12-16 02:49:39 +01:00
|
|
|
{"qtvideo", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_QTVIDEO, NULL},
|
2003-03-03 12:03:19 +01:00
|
|
|
{"nuv", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_NUV, NULL},
|
2004-08-27 22:43:05 +02:00
|
|
|
{"x264", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_X264, NULL},
|
2002-08-05 15:41:32 +02:00
|
|
|
{"help", "\nAvailable codecs:\n"
|
2004-05-03 12:09:18 +02:00
|
|
|
" copy - frame copy, without re-encoding. Doesn't work with filters.\n"
|
|
|
|
" frameno - special audio-only file for 3-pass encoding, see DOCS.\n"
|
2004-02-17 13:43:07 +01:00
|
|
|
" raw - uncompressed video. Use fourcc option to set format explicitly.\n"
|
2003-08-19 17:10:10 +02:00
|
|
|
" nuv - nuppel video\n"
|
2002-04-18 17:32:30 +02:00
|
|
|
#ifdef HAVE_DIVX4ENCORE
|
2003-02-06 21:24:14 +01:00
|
|
|
#ifdef ENCORE_XVID
|
2004-05-03 12:09:18 +02:00
|
|
|
" divx4 - XviD (divx4linux compatibility mode)\n"
|
2003-02-06 21:24:14 +01:00
|
|
|
#else
|
2004-05-03 12:09:18 +02:00
|
|
|
" divx4 - divx4linux/divx5linux library (depends on configuration)\n"
|
2003-02-06 21:24:14 +01:00
|
|
|
#endif
|
2002-04-18 17:32:30 +02:00
|
|
|
#endif
|
|
|
|
#ifdef USE_LIBAVCODEC
|
2004-05-03 12:09:18 +02:00
|
|
|
" lavc - libavcodec codecs - best quality!\n"
|
2002-04-18 17:32:30 +02:00
|
|
|
#endif
|
|
|
|
#ifdef USE_WIN32DLL
|
2006-05-11 07:51:26 +02:00
|
|
|
" vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.\n"
|
2004-05-03 12:09:18 +02:00
|
|
|
" qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.\n"
|
2002-04-18 17:32:30 +02:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LIBDV095
|
2004-05-03 12:09:18 +02:00
|
|
|
" libdv - DV encoding with libdv v0.9.5\n"
|
2002-09-21 14:41:29 +02:00
|
|
|
#endif
|
2003-11-12 01:43:42 +01:00
|
|
|
#if defined(HAVE_XVID3) || defined(HAVE_XVID4)
|
2004-05-03 12:09:18 +02:00
|
|
|
" xvid - XviD encoding\n"
|
2004-08-27 22:43:05 +02:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_X264
|
|
|
|
" x264 - H.264 encoding\n"
|
2002-04-18 17:32:30 +02:00
|
|
|
#endif
|
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2002-01-15 00:54:31 +01:00
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2001-11-04 00:01:17 +01:00
|
|
|
};
|
|
|
|
|
2003-08-13 18:29:32 +02:00
|
|
|
m_option_t oac_conf[]={
|
2002-01-15 00:54:31 +01:00
|
|
|
{"copy", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_COPY, NULL},
|
|
|
|
{"pcm", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_PCM, NULL},
|
2001-12-06 23:27:09 +01:00
|
|
|
#ifdef HAVE_MP3LAME
|
2002-01-15 00:54:31 +01:00
|
|
|
{"mp3lame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_VBRMP3, NULL},
|
2001-12-06 23:27:09 +01:00
|
|
|
#else
|
2004-05-03 12:09:18 +02:00
|
|
|
{"mp3lame", "MPlayer was compiled without libmp3lame support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2003-11-03 17:35:40 +01:00
|
|
|
#endif
|
|
|
|
#ifdef USE_LIBAVCODEC
|
|
|
|
{"lavc", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_LAVC, NULL},
|
|
|
|
#else
|
2004-05-03 12:09:18 +02:00
|
|
|
{"lavc", "MPlayer was compiled without libavcodec. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2004-09-21 21:50:54 +02:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_TOOLAME
|
|
|
|
{"toolame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_TOOLAME, NULL},
|
|
|
|
#else
|
|
|
|
{"toolame", "MPlayer was compiled without libtoolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2005-04-25 09:07:57 +02:00
|
|
|
#endif
|
2005-05-07 16:50:14 +02:00
|
|
|
#ifdef HAVE_TWOLAME
|
|
|
|
{"twolame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_TWOLAME, NULL},
|
|
|
|
#else
|
|
|
|
{"twolame", "MPlayer was compiled without libtwolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
#endif
|
2005-04-25 09:07:57 +02:00
|
|
|
#ifdef HAVE_FAAC
|
|
|
|
{"faac", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_FAAC, NULL},
|
|
|
|
#else
|
|
|
|
{"faac", "MPlayer was compiled without libfaac. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2001-12-06 23:27:09 +01:00
|
|
|
#endif
|
2002-08-05 15:41:32 +02:00
|
|
|
{"help", "\nAvailable codecs:\n"
|
2002-12-26 12:33:11 +01:00
|
|
|
" copy - frame copy, without re-encoding (useful for AC3)\n"
|
2002-08-05 15:41:32 +02:00
|
|
|
" pcm - uncompressed PCM audio\n"
|
|
|
|
#ifdef HAVE_MP3LAME
|
|
|
|
" mp3lame - cbr/abr/vbr MP3 using libmp3lame\n"
|
2003-11-03 17:35:40 +01:00
|
|
|
#endif
|
|
|
|
#ifdef USE_LIBAVCODEC
|
2004-05-03 12:09:18 +02:00
|
|
|
" lavc - FFmpeg audio encoder (MP2, AC3, ...)\n"
|
2004-09-21 21:50:54 +02:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_TOOLAME
|
|
|
|
" toolame - Toolame MP2 audio encoder\n"
|
2005-04-25 09:07:57 +02:00
|
|
|
#endif
|
2005-05-07 16:50:14 +02:00
|
|
|
#ifdef HAVE_TWOLAME
|
|
|
|
" twolame - Twolame MP2 audio encoder\n"
|
|
|
|
#endif
|
2005-04-25 09:07:57 +02:00
|
|
|
#ifdef HAVE_FAAC
|
2005-05-07 16:50:14 +02:00
|
|
|
" faac - FAAC AAC audio encoder\n"
|
2002-08-05 15:41:32 +02:00
|
|
|
#endif
|
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2002-01-15 00:54:31 +01:00
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2001-11-02 04:22:33 +01:00
|
|
|
};
|
|
|
|
|
2003-08-13 18:29:32 +02:00
|
|
|
m_option_t info_conf[]={
|
2002-08-29 22:50:49 +02:00
|
|
|
{"name", &info_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"artist", &info_artist, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"genre", &info_genre, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"subject", &info_subject, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"copyright", &info_copyright, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"srcform", &info_sourceform, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"comment", &info_comment, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
|
|
|
{"help", "\nAvailable INFO fields:\n"
|
2004-05-03 12:09:18 +02:00
|
|
|
" name - title of the work\n"
|
|
|
|
" artist - artist or author of the work\n"
|
2002-08-29 22:50:49 +02:00
|
|
|
" genre - original work category\n"
|
2004-05-03 12:09:18 +02:00
|
|
|
" subject - contents of the work\n"
|
|
|
|
" copyright - copyright information\n"
|
|
|
|
" srcform - original format of the digitzed material\n"
|
|
|
|
" comment - general comments about the work\n"
|
2002-08-29 22:50:49 +02:00
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
|
2003-08-13 18:29:32 +02:00
|
|
|
m_option_t of_conf[]={
|
2002-12-27 23:43:20 +01:00
|
|
|
{"avi", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_AVI, NULL},
|
|
|
|
{"mpeg", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_MPEG, NULL},
|
2006-01-09 20:35:44 +01:00
|
|
|
#if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO)
|
2005-02-22 00:18:31 +01:00
|
|
|
{"lavf", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_LAVF, NULL},
|
|
|
|
#endif
|
2004-03-09 15:46:34 +01:00
|
|
|
{"rawvideo", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_RAWVIDEO, NULL},
|
2005-06-19 11:12:44 +02:00
|
|
|
{"rawaudio", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_RAWAUDIO, NULL},
|
2002-12-27 23:43:20 +01:00
|
|
|
{"help", "\nAvailable output formats:\n"
|
|
|
|
" avi - Microsoft Audio/Video Interleaved\n"
|
2005-02-22 22:27:58 +01:00
|
|
|
" mpeg - MPEG-1/2 system stream format\n"
|
2006-01-09 20:35:44 +01:00
|
|
|
#if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO)
|
2005-05-21 01:22:54 +02:00
|
|
|
" lavf - FFmpeg libavformat muxers\n"
|
2005-05-21 20:19:13 +02:00
|
|
|
#endif
|
2004-03-09 15:46:34 +01:00
|
|
|
" rawvideo - (video only, one stream only) raw stream, no muxing\n"
|
2005-06-19 11:12:44 +02:00
|
|
|
" rawaudio - (audio only, one stream only) raw stream, no muxing\n"
|
2002-12-27 23:43:20 +01:00
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
|
|
|
};
|
|
|
|
|
2004-03-24 16:16:36 +01:00
|
|
|
extern float avi_aspect_override; /* defined in libmpdemux/muxer_avi.c */
|
2004-04-30 23:33:53 +02:00
|
|
|
extern int write_odml; /* defined in libmpdemux/muxer_avi.c */
|
2004-03-24 16:16:36 +01:00
|
|
|
|
2003-08-13 18:29:32 +02:00
|
|
|
m_option_t mencoder_opts[]={
|
2001-11-02 02:25:13 +01:00
|
|
|
/* name, pointer, type, flags, min, max */
|
|
|
|
|
2005-02-25 03:32:29 +01:00
|
|
|
{"endpos", &end_at_string, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
2002-05-04 23:26:45 +02:00
|
|
|
|
2005-09-19 21:23:38 +02:00
|
|
|
{"frameno-file", &frameno_filename, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
|
2005-03-19 21:55:51 +01:00
|
|
|
{"hr-edl-seek", &edl_seek_type, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"nohr-edl-seek", &edl_seek_type, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
|
|
|
|
2004-05-03 15:19:04 +02:00
|
|
|
// set output framerate - recommended for variable-FPS (ASF etc) files
|
|
|
|
// and for 29.97FPS progressive MPEG2 streams
|
2005-02-25 03:32:29 +01:00
|
|
|
{"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN|CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
{"o", &out_filename, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
2001-11-02 04:22:33 +01:00
|
|
|
|
2002-05-04 23:26:45 +02:00
|
|
|
// limit number of skippable frames after a non-skipped one
|
2002-04-15 04:33:05 +02:00
|
|
|
{"skiplimit", &skip_limit, CONF_TYPE_INT, 0, 0, 0, NULL},
|
|
|
|
{"noskiplimit", &skip_limit, CONF_TYPE_FLAG, 0, 0, -1, NULL},
|
|
|
|
{"noskip", &skip_limit, CONF_TYPE_FLAG, 0, 0, 0, NULL},
|
|
|
|
|
2005-02-25 03:32:29 +01:00
|
|
|
{"audio-density", &audio_density, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 1, 50, NULL},
|
|
|
|
{"audio-preload", &audio_preload, CONF_TYPE_FLOAT, CONF_RANGE|CONF_GLOBAL, 0, 2, NULL},
|
2006-02-19 10:34:37 +01:00
|
|
|
{"audio-delay", &audio_delay_fix, CONF_TYPE_FLOAT, CONF_GLOBAL, 0, 0, NULL},
|
2002-08-01 10:39:33 +02:00
|
|
|
|
2004-05-03 12:09:18 +02:00
|
|
|
{"x", "-x is obsolete, use -vf scale=w:h for scaling.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{"xsize", "-xsize is obsolete, use -vf crop=w:h:x:y for cropping.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2002-03-23 14:13:12 +01:00
|
|
|
|
2002-12-26 12:33:11 +01:00
|
|
|
// output audio/video codec selection
|
2005-02-25 03:32:29 +01:00
|
|
|
{"oac", oac_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
{"ovc", ovc_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2001-11-03 01:44:02 +01:00
|
|
|
|
2002-12-27 23:43:20 +01:00
|
|
|
// output file format
|
2005-02-25 03:32:29 +01:00
|
|
|
{"of", of_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2002-12-27 23:43:20 +01:00
|
|
|
|
2005-07-02 21:00:13 +02:00
|
|
|
// override audio format tag in output file
|
|
|
|
{"fafmttag", &force_audiofmttag, CONF_TYPE_INT, CONF_GLOBAL, 0, 0, NULL},
|
2002-05-04 23:26:45 +02:00
|
|
|
// override FOURCC in output file
|
2005-02-25 03:32:29 +01:00
|
|
|
{"ffourcc", &force_fourcc, CONF_TYPE_STRING, CONF_GLOBAL, 4, 4, NULL},
|
2001-12-22 15:32:08 +01:00
|
|
|
|
2004-03-24 16:16:36 +01:00
|
|
|
// override avi aspect autodetection
|
2005-02-25 03:32:29 +01:00
|
|
|
{"force-avi-aspect", &avi_aspect_override, CONF_TYPE_FLOAT, CONF_RANGE|CONF_GLOBAL, 0.2, 3.0, NULL},
|
2004-03-24 16:16:36 +01:00
|
|
|
|
2004-05-03 12:09:18 +02:00
|
|
|
{"pass", "-pass is obsolete, use -lavcopts vpass=n, -xvidencopts pass=n, -divx4opts pass=n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2005-02-25 03:32:29 +01:00
|
|
|
{"passlogfile", &passtmpfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
2001-11-02 04:22:33 +01:00
|
|
|
|
2005-02-25 03:32:29 +01:00
|
|
|
{"vobsubout", &vobsub_out, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
{"vobsuboutindex", &vobsub_out_index, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 0, 31, NULL},
|
|
|
|
{"vobsuboutid", &vobsub_out_id, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
2002-07-08 23:44:51 +02:00
|
|
|
|
2003-01-24 02:04:50 +01:00
|
|
|
{"autoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"noautoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
|
|
|
|
2004-04-30 12:07:52 +02:00
|
|
|
{"encodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"noencodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
|
|
|
|
2005-02-25 03:32:29 +01:00
|
|
|
{"odml", &write_odml, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
|
|
|
|
{"noodml", &write_odml, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
|
2004-04-30 23:33:53 +02:00
|
|
|
|
2002-08-29 22:50:49 +02:00
|
|
|
// info header strings
|
2005-02-25 03:32:29 +01:00
|
|
|
{"info", info_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2002-08-29 22:50:49 +02:00
|
|
|
|
2002-03-29 08:20:44 +01:00
|
|
|
#ifdef HAVE_DIVX4ENCORE
|
2005-02-25 03:32:29 +01:00
|
|
|
{"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2001-12-22 17:59:10 +01:00
|
|
|
#endif
|
2001-12-06 23:27:09 +01:00
|
|
|
#ifdef HAVE_MP3LAME
|
2005-02-25 03:32:29 +01:00
|
|
|
{"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2001-12-06 23:27:09 +01:00
|
|
|
#endif
|
2001-12-22 15:32:08 +01:00
|
|
|
#ifdef USE_LIBAVCODEC
|
2005-02-25 03:32:29 +01:00
|
|
|
{"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2003-01-26 15:47:15 +01:00
|
|
|
#else
|
2004-05-03 12:09:18 +02:00
|
|
|
{"lavcopts", "MPlayer was compiled without libavcodec. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2001-12-22 15:32:08 +01:00
|
|
|
#endif
|
2004-09-21 21:50:54 +02:00
|
|
|
#ifdef HAVE_TOOLAME
|
2005-02-25 03:32:29 +01:00
|
|
|
{"toolameopts", toolameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2004-09-21 21:50:54 +02:00
|
|
|
#else
|
|
|
|
{"toolameopts", "MPlayer was compiled without libtoolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
#endif
|
2005-05-07 16:50:14 +02:00
|
|
|
#ifdef HAVE_TWOLAME
|
|
|
|
{"twolameopts", twolameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
#else
|
|
|
|
{"twolameopts", "MPlayer was compiled without libtwolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
#endif
|
2005-04-25 09:07:57 +02:00
|
|
|
#ifdef HAVE_FAAC
|
|
|
|
{"faacopts", faacopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
#else
|
|
|
|
{"faacopts", "MPlayer was compiled without libfaac. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
#endif
|
2001-12-22 15:32:08 +01:00
|
|
|
#ifdef USE_WIN32DLL
|
2005-09-28 23:49:40 +02:00
|
|
|
{"xvfwopts", vfwopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2001-12-22 15:32:08 +01:00
|
|
|
#endif
|
2003-11-12 01:43:42 +01:00
|
|
|
#if defined(HAVE_XVID3) || defined(HAVE_XVID4)
|
2005-02-25 03:32:29 +01:00
|
|
|
{"xvidencopts", xvidencopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2002-09-21 14:41:29 +02:00
|
|
|
#endif
|
2004-08-27 22:43:05 +02:00
|
|
|
#if defined(HAVE_X264)
|
2005-02-25 03:32:29 +01:00
|
|
|
{"x264encopts", x264encopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2004-08-27 22:43:05 +02:00
|
|
|
#endif
|
2001-11-02 02:25:13 +01:00
|
|
|
|
2005-02-25 03:32:29 +01:00
|
|
|
{"nuvopts", nuvopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
{"mpegopts", mpegopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2006-01-09 20:35:44 +01:00
|
|
|
#if defined(USE_LIBAVFORMAT) || defined(USE_LIBAVFORMAT_SO)
|
2005-02-25 03:32:29 +01:00
|
|
|
{"lavfopts", lavfopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2005-02-22 00:18:31 +01:00
|
|
|
#endif
|
2003-03-03 12:03:19 +01:00
|
|
|
|
2001-11-10 00:46:06 +01:00
|
|
|
#define MAIN_CONF
|
2001-11-02 02:25:13 +01:00
|
|
|
#include "cfg-common.h"
|
2001-11-10 00:46:06 +01:00
|
|
|
#undef MAIN_CONF
|
2001-11-02 02:25:13 +01:00
|
|
|
|
2002-01-15 00:54:31 +01:00
|
|
|
// {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
// {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
// {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2001-11-02 02:25:13 +01:00
|
|
|
};
|