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_MENCODER_H
|
|
|
|
#define MPLAYER_CFG_MENCODER_H
|
2004-05-03 10:09:18 +00:00
|
|
|
|
2001-11-02 01:25:13 +00:00
|
|
|
/*
|
|
|
|
* config for cfgparser
|
|
|
|
*/
|
|
|
|
|
2010-04-03 14:20:34 +00:00
|
|
|
#include "libmpcodecs/ve_x264.h"
|
2010-05-30 22:14:13 +00:00
|
|
|
#include "libmpdemux/demux_ts.h"
|
2001-11-09 23:46:06 +00:00
|
|
|
#include "cfg-common.h"
|
|
|
|
|
2001-12-02 20:03:26 +00:00
|
|
|
extern int sws_flags;
|
2003-01-03 12:40:10 +00:00
|
|
|
extern char *pp_help;
|
2001-12-02 20:03:26 +00:00
|
|
|
|
2010-04-04 15:59:09 +00:00
|
|
|
extern const m_option_t faacopts_conf[];
|
|
|
|
extern const m_option_t lameopts_conf[];
|
|
|
|
extern const m_option_t lavcopts_conf[];
|
|
|
|
extern const m_option_t lavfopts_conf[];
|
|
|
|
extern const m_option_t mpegopts_conf[];
|
|
|
|
extern const m_option_t nuvopts_conf[];
|
|
|
|
extern const m_option_t toolameopts_conf[];
|
|
|
|
extern const m_option_t twolameopts_conf[];
|
|
|
|
extern const m_option_t vfwopts_conf[];
|
|
|
|
extern const m_option_t xvidencopts_conf[];
|
2003-03-03 11:03:19 +00:00
|
|
|
|
2007-12-02 16:45:34 +00:00
|
|
|
const m_option_t ovc_conf[]={
|
2010-05-03 23:34:38 +00: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},
|
|
|
|
{"lavc", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_LIBAVCODEC, NULL},
|
|
|
|
// {"null", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_NULL, NULL},
|
|
|
|
{"raw", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_RAW, NULL},
|
|
|
|
{"vfw", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_VFW, NULL},
|
|
|
|
{"libdv", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_LIBDV, NULL},
|
|
|
|
{"xvid", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_XVID, NULL},
|
|
|
|
{"qtvideo", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_QTVIDEO, NULL},
|
|
|
|
{"nuv", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_NUV, NULL},
|
|
|
|
{"x264", &out_video_codec, CONF_TYPE_FLAG, 0, 0, VCODEC_X264, NULL},
|
|
|
|
{"help", "\nAvailable codecs:\n"
|
|
|
|
" copy - frame copy, without re-encoding. Doesn't work with filters.\n"
|
|
|
|
" frameno - special audio-only file for 3-pass encoding, see DOCS.\n"
|
|
|
|
" raw - uncompressed video. Use fourcc option to set format explicitly.\n"
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBLZO
|
2010-05-03 23:34:38 +00:00
|
|
|
" nuv - nuppel video\n"
|
2007-02-18 19:28:47 +00:00
|
|
|
#endif
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVCODEC
|
2010-05-03 23:34:38 +00:00
|
|
|
" lavc - libavcodec codecs - best quality!\n"
|
2002-04-18 15:32:30 +00:00
|
|
|
#endif
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_WIN32DLL
|
2010-05-03 23:34:38 +00:00
|
|
|
" vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.\n"
|
|
|
|
" qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.\n"
|
2002-04-18 15:32:30 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_LIBDV095
|
2010-05-03 23:34:38 +00:00
|
|
|
" libdv - DV encoding with libdv v0.9.5\n"
|
2002-09-21 12:41:29 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_XVID4
|
2010-05-03 23:34:38 +00:00
|
|
|
" xvid - XviD encoding\n"
|
2004-08-27 20:43:05 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_X264
|
2010-05-03 23:34:38 +00:00
|
|
|
" x264 - H.264 encoding\n"
|
2002-04-18 15:32:30 +00:00
|
|
|
#endif
|
2010-05-03 23:34:38 +00:00
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2001-11-03 23:01:17 +00:00
|
|
|
};
|
|
|
|
|
2007-12-02 16:45:34 +00:00
|
|
|
const m_option_t oac_conf[]={
|
2010-05-03 23:34:38 +00: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},
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_MP3LAME
|
2010-05-03 23:34:38 +00:00
|
|
|
{"mp3lame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_VBRMP3, NULL},
|
2001-12-06 22:27:09 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"mp3lame", "MPlayer was compiled without libmp3lame support.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-08-02 16:30:32 +00:00
|
|
|
#endif /* CONFIG_MP3LAME */
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVCODEC
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lavc", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_LAVC, NULL},
|
2003-11-03 16:35:40 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lavc", "MPlayer was compiled without libavcodec. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-07-30 12:01:30 +00:00
|
|
|
#endif /* CONFIG_LIBAVCODEC */
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_TOOLAME
|
2010-05-03 23:34:38 +00:00
|
|
|
{"toolame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_TOOLAME, NULL},
|
2004-09-21 19:50:54 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"toolame", "MPlayer was compiled without libtoolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-08-02 16:30:32 +00:00
|
|
|
#endif /* CONFIG_TOOLAME */
|
|
|
|
#ifdef CONFIG_TWOLAME
|
2010-05-03 23:34:38 +00:00
|
|
|
{"twolame", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_TWOLAME, NULL},
|
2005-05-07 14:50:14 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"twolame", "MPlayer was compiled without libtwolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-08-02 16:30:32 +00:00
|
|
|
#endif /* CONFIG_TWOLAME */
|
|
|
|
#ifdef CONFIG_FAAC
|
2010-05-03 23:34:38 +00:00
|
|
|
{"faac", &out_audio_codec, CONF_TYPE_FLAG, 0, 0, ACODEC_FAAC, NULL},
|
2005-04-25 07:07:57 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"faac", "MPlayer was compiled without libfaac. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-08-02 16:30:32 +00:00
|
|
|
#endif /* CONFIG_FAAC */
|
2010-05-03 23:34:38 +00:00
|
|
|
{"help", "\nAvailable codecs:\n"
|
|
|
|
" copy - frame copy, without re-encoding (useful for AC3)\n"
|
|
|
|
" pcm - uncompressed PCM audio\n"
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_MP3LAME
|
2010-05-03 23:34:38 +00:00
|
|
|
" mp3lame - cbr/abr/vbr MP3 using libmp3lame\n"
|
2003-11-03 16:35:40 +00:00
|
|
|
#endif
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVCODEC
|
2010-05-03 23:34:38 +00:00
|
|
|
" lavc - FFmpeg audio encoder (MP2, AC3, ...)\n"
|
2004-09-21 19:50:54 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_TOOLAME
|
2010-05-03 23:34:38 +00:00
|
|
|
" toolame - Toolame MP2 audio encoder\n"
|
2005-04-25 07:07:57 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_TWOLAME
|
2010-05-03 23:34:38 +00:00
|
|
|
" twolame - Twolame MP2 audio encoder\n"
|
2005-05-07 14:50:14 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_FAAC
|
2010-05-03 23:34:38 +00:00
|
|
|
" faac - FAAC AAC audio encoder\n"
|
2002-08-05 13:41:32 +00:00
|
|
|
#endif
|
2010-05-03 23:34:38 +00:00
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2001-11-02 03:22:33 +00:00
|
|
|
};
|
|
|
|
|
2007-12-02 16:45:34 +00:00
|
|
|
const m_option_t info_conf[]={
|
2010-05-03 23:34:38 +00: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"
|
|
|
|
" name - title of the work\n"
|
|
|
|
" artist - artist or author of the work\n"
|
|
|
|
" genre - original work category\n"
|
|
|
|
" 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"
|
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2002-08-29 20:50:49 +00:00
|
|
|
};
|
|
|
|
|
2007-12-02 16:45:34 +00:00
|
|
|
const m_option_t of_conf[]={
|
2010-05-03 23:34:38 +00: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},
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVFORMAT
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lavf", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_LAVF, NULL},
|
2005-02-21 23:18:31 +00:00
|
|
|
#endif
|
2010-05-03 23:34:38 +00:00
|
|
|
{"rawvideo", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_RAWVIDEO, NULL},
|
|
|
|
{"rawaudio", &out_file_format, CONF_TYPE_FLAG, 0, 0, MUXER_TYPE_RAWAUDIO, NULL},
|
|
|
|
{"help", "\nAvailable output formats:\n"
|
|
|
|
" avi - Microsoft Audio/Video Interleaved\n"
|
|
|
|
" mpeg - MPEG-1/2 system stream format\n"
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVFORMAT
|
2010-05-03 23:34:38 +00:00
|
|
|
" lavf - FFmpeg libavformat muxers\n"
|
2005-05-21 18:19:13 +00:00
|
|
|
#endif
|
2010-05-03 23:34:38 +00:00
|
|
|
" rawvideo - (video only, one stream only) raw stream, no muxing\n"
|
|
|
|
" rawaudio - (audio only, one stream only) raw stream, no muxing\n"
|
|
|
|
"\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
2002-12-27 22:43:20 +00:00
|
|
|
};
|
|
|
|
|
2004-03-24 15:16:36 +00:00
|
|
|
extern float avi_aspect_override; /* defined in libmpdemux/muxer_avi.c */
|
2004-04-30 21:33:53 +00:00
|
|
|
extern int write_odml; /* defined in libmpdemux/muxer_avi.c */
|
2004-03-24 15:16:36 +00:00
|
|
|
|
2007-12-02 16:45:34 +00:00
|
|
|
const m_option_t mencoder_opts[]={
|
2010-05-03 23:34:38 +00:00
|
|
|
/* name, pointer, type, flags, min, max */
|
2001-11-02 01:25:13 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{"frameno-file", &frameno_filename, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
2005-09-19 19:23:38 +00:00
|
|
|
|
2010-05-03 23:34:38 +00: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},
|
2005-03-19 20:55:51 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// set output framerate - recommended for variable-FPS (ASF etc) files
|
|
|
|
// and for 29.97FPS progressive MPEG2 streams
|
|
|
|
{"ofps", &force_ofps, CONF_TYPE_DOUBLE, CONF_MIN|CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
{"o", &out_filename, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
2001-11-02 03:22:33 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// limit number of skippable frames after a non-skipped one
|
|
|
|
{"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},
|
2002-04-15 02:33:05 +00:00
|
|
|
|
2010-05-03 23:34:38 +00: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},
|
|
|
|
{"audio-delay", &audio_delay_fix, CONF_TYPE_FLOAT, CONF_GLOBAL, 0, 0, NULL},
|
2002-08-01 08:39:33 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{"x", "-x has been removed, use -vf scale=w:h for scaling.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{"xsize", "-xsize has been removed, use -vf crop=w:h:x:y for cropping.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2002-03-23 13:13:12 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// output audio/video codec selection
|
2010-05-07 19:02:47 +00:00
|
|
|
{"oac", (void *) oac_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
{"ovc", (void *) ovc_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2001-11-03 00:44:02 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// output file format
|
2010-05-07 19:02:47 +00:00
|
|
|
{"of", (void *) of_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2002-12-27 22:43:20 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// override audio format tag in output file
|
|
|
|
{"fafmttag", &force_audiofmttag, CONF_TYPE_INT, CONF_GLOBAL, 0, 0, NULL},
|
|
|
|
// override FOURCC in output file
|
|
|
|
{"ffourcc", &force_fourcc, CONF_TYPE_STRING, CONF_GLOBAL, 4, 4, NULL},
|
2001-12-22 14:32:08 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// override avi aspect autodetection
|
|
|
|
{"force-avi-aspect", &avi_aspect_override, CONF_TYPE_FLOAT, CONF_RANGE|CONF_GLOBAL, 0.2, 3.0, NULL},
|
2004-03-24 15:16:36 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{"pass", "-pass has been removed, use -lavcopts vpass=n, -xvidencopts pass=n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
|
|
|
{"passlogfile", &passtmpfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
|
2009-07-06 23:26:13 +00:00
|
|
|
|
2010-05-03 23:34:38 +00: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 21:44:51 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{"autoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"noautoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
2009-07-06 23:26:13 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{"encodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
|
|
|
{"noencodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 1, 0, NULL},
|
2009-07-06 23:26:13 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
{"odml", &write_odml, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
|
|
|
|
{"noodml", &write_odml, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
|
2009-07-06 23:26:13 +00:00
|
|
|
|
2010-05-03 23:34:38 +00:00
|
|
|
// info header strings
|
2010-05-07 19:02:47 +00:00
|
|
|
{"info", (void *) info_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2002-08-29 20:50:49 +00:00
|
|
|
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_MP3LAME
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2001-12-06 22:27:09 +00:00
|
|
|
#endif
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVCODEC
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2003-01-26 14:47:15 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lavcopts", "MPlayer was compiled without libavcodec. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-07-30 12:01:30 +00:00
|
|
|
#endif /* CONFIG_LIBAVCODEC */
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_TOOLAME
|
2010-05-03 23:34:38 +00:00
|
|
|
{"toolameopts", toolameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2004-09-21 19:50:54 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"toolameopts", "MPlayer was compiled without libtoolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-08-02 16:30:32 +00:00
|
|
|
#endif /* CONFIG_TOOLAME */
|
|
|
|
#ifdef CONFIG_TWOLAME
|
2010-05-03 23:34:38 +00:00
|
|
|
{"twolameopts", twolameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2005-05-07 14:50:14 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"twolameopts", "MPlayer was compiled without libtwolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-08-02 16:30:32 +00:00
|
|
|
#endif /* CONFIG_TWOLAME */
|
|
|
|
#ifdef CONFIG_FAAC
|
2010-05-03 23:34:38 +00:00
|
|
|
{"faacopts", faacopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2005-04-25 07:07:57 +00:00
|
|
|
#else
|
2010-05-03 23:34:38 +00:00
|
|
|
{"faacopts", "MPlayer was compiled without libfaac. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
|
2008-08-02 16:30:32 +00:00
|
|
|
#endif /* CONFIG_FAAC */
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_WIN32DLL
|
2010-05-03 23:34:38 +00:00
|
|
|
{"xvfwopts", vfwopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2001-12-22 14:32:08 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#ifdef CONFIG_XVID4
|
2010-05-03 23:34:38 +00:00
|
|
|
{"xvidencopts", xvidencopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2002-09-21 12:41:29 +00:00
|
|
|
#endif
|
2008-08-02 16:30:32 +00:00
|
|
|
#if defined(CONFIG_X264)
|
2010-05-03 23:34:38 +00:00
|
|
|
{"x264encopts", &x264enc_set_param, CONF_TYPE_FUNC_PARAM, CONF_GLOBAL, 0, 0, NULL},
|
2004-08-27 20:43:05 +00:00
|
|
|
#endif
|
2001-11-02 01:25:13 +00:00
|
|
|
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBLZO
|
2010-05-03 23:34:38 +00:00
|
|
|
{"nuvopts", nuvopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2007-02-18 19:28:47 +00:00
|
|
|
#endif
|
2010-05-03 23:34:38 +00:00
|
|
|
{"mpegopts", mpegopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2008-07-30 12:01:30 +00:00
|
|
|
#ifdef CONFIG_LIBAVFORMAT
|
2010-05-03 23:34:38 +00:00
|
|
|
{"lavfopts", lavfopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
|
2009-07-06 23:26:13 +00:00
|
|
|
#endif
|
2003-03-03 11:03:19 +00:00
|
|
|
|
2008-04-11 09:48:36 +00:00
|
|
|
#include "cfg-common-opts.h"
|
2001-11-02 01:25:13 +00:00
|
|
|
|
2010-05-03 23:34:38 +00: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 01:25:13 +00:00
|
|
|
};
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_CFG_MENCODER_H */
|