comparison cfg-mencoder.h @ 14802:63b1cc62fc9b

MEncoder multiple files patch by Oded Shimon (ods15) Seems to work, or at least not to cause problems with existing functionality (encoding single files). Please test and report bugs, if there are any!
author rfelker
date Fri, 25 Feb 2005 02:32:29 +0000
parents 26557a239706
children 92e234f53156
comparison
equal deleted inserted replaced
14801:d64f41650916 14802:63b1cc62fc9b
196 extern int write_odml; /* defined in libmpdemux/muxer_avi.c */ 196 extern int write_odml; /* defined in libmpdemux/muxer_avi.c */
197 197
198 m_option_t mencoder_opts[]={ 198 m_option_t mencoder_opts[]={
199 /* name, pointer, type, flags, min, max */ 199 /* name, pointer, type, flags, min, max */
200 200
201 {"endpos", parse_end_at, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL}, 201 {"endpos", &end_at_string, CONF_TYPE_STRING, 0, 0, 0, NULL},
202 202
203 // set output framerate - recommended for variable-FPS (ASF etc) files 203 // set output framerate - recommended for variable-FPS (ASF etc) files
204 // and for 29.97FPS progressive MPEG2 streams 204 // and for 29.97FPS progressive MPEG2 streams
205 {"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN, 0, 0, NULL}, 205 {"ofps", &force_ofps, CONF_TYPE_FLOAT, CONF_MIN|CONF_GLOBAL, 0, 0, NULL},
206 {"o", &out_filename, CONF_TYPE_STRING, 0, 0, 0, NULL}, 206 {"o", &out_filename, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
207 207
208 // limit number of skippable frames after a non-skipped one 208 // limit number of skippable frames after a non-skipped one
209 {"skiplimit", &skip_limit, CONF_TYPE_INT, 0, 0, 0, NULL}, 209 {"skiplimit", &skip_limit, CONF_TYPE_INT, 0, 0, 0, NULL},
210 {"noskiplimit", &skip_limit, CONF_TYPE_FLAG, 0, 0, -1, NULL}, 210 {"noskiplimit", &skip_limit, CONF_TYPE_FLAG, 0, 0, -1, NULL},
211 {"noskip", &skip_limit, CONF_TYPE_FLAG, 0, 0, 0, NULL}, 211 {"noskip", &skip_limit, CONF_TYPE_FLAG, 0, 0, 0, NULL},
212 212
213 {"audio-density", &audio_density, CONF_TYPE_INT, CONF_RANGE, 1, 50, NULL}, 213 {"audio-density", &audio_density, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 1, 50, NULL},
214 {"audio-preload", &audio_preload, CONF_TYPE_FLOAT, CONF_RANGE, 0, 2, NULL}, 214 {"audio-preload", &audio_preload, CONF_TYPE_FLOAT, CONF_RANGE|CONF_GLOBAL, 0, 2, NULL},
215 {"audio-delay", &audio_delay, CONF_TYPE_FLOAT, CONF_MIN, 0, 0, NULL}, 215 {"audio-delay", &audio_delay, CONF_TYPE_FLOAT, CONF_MIN|CONF_GLOBAL, 0, 0, NULL},
216 216
217 {"x", "-x is obsolete, use -vf scale=w:h for scaling.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, 217 {"x", "-x is obsolete, use -vf scale=w:h for scaling.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
218 {"xsize", "-xsize is obsolete, use -vf crop=w:h:x:y for cropping.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, 218 {"xsize", "-xsize is obsolete, use -vf crop=w:h:x:y for cropping.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
219 219
220 // output audio/video codec selection 220 // output audio/video codec selection
221 {"oac", oac_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 221 {"oac", oac_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
222 {"ovc", ovc_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 222 {"ovc", ovc_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
223 223
224 // output file format 224 // output file format
225 {"of", of_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 225 {"of", of_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
226 226
227 // override FOURCC in output file 227 // override FOURCC in output file
228 {"ffourcc", &force_fourcc, CONF_TYPE_STRING, 0, 4, 4, NULL}, 228 {"ffourcc", &force_fourcc, CONF_TYPE_STRING, CONF_GLOBAL, 4, 4, NULL},
229 229
230 // override avi aspect autodetection 230 // override avi aspect autodetection
231 {"force-avi-aspect", &avi_aspect_override, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, 231 {"force-avi-aspect", &avi_aspect_override, CONF_TYPE_FLOAT, CONF_RANGE|CONF_GLOBAL, 0.2, 3.0, NULL},
232 232
233 {"pass", "-pass is obsolete, use -lavcopts vpass=n, -xvidencopts pass=n, -divx4opts pass=n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, 233 {"pass", "-pass is obsolete, use -lavcopts vpass=n, -xvidencopts pass=n, -divx4opts pass=n\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
234 {"passlogfile", &passtmpfile, CONF_TYPE_STRING, 0, 0, 0, NULL}, 234 {"passlogfile", &passtmpfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
235 235
236 {"vobsubout", &vobsub_out, CONF_TYPE_STRING, 0, 0, 0, NULL}, 236 {"vobsubout", &vobsub_out, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
237 {"vobsuboutindex", &vobsub_out_index, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL}, 237 {"vobsuboutindex", &vobsub_out_index, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 0, 31, NULL},
238 {"vobsuboutid", &vobsub_out_id, CONF_TYPE_STRING, 0, 0, 0, NULL}, 238 {"vobsuboutid", &vobsub_out_id, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
239 239
240 {"autoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 240 {"autoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 0, 1, NULL},
241 {"noautoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 241 {"noautoexpand", &auto_expand, CONF_TYPE_FLAG, 0, 1, 0, NULL},
242 242
243 {"encodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 243 {"encodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 0, 1, NULL},
244 {"noencodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 244 {"noencodedups", &encode_duplicates, CONF_TYPE_FLAG, 0, 1, 0, NULL},
245 245
246 {"odml", &write_odml, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 246 {"odml", &write_odml, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
247 {"noodml", &write_odml, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 247 {"noodml", &write_odml, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
248 248
249 // info header strings 249 // info header strings
250 {"info", info_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 250 {"info", info_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
251 251
252 #ifdef HAVE_DIVX4ENCORE 252 #ifdef HAVE_DIVX4ENCORE
253 {"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 253 {"divx4opts", divx4opts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
254 #endif 254 #endif
255 #ifdef HAVE_MP3LAME 255 #ifdef HAVE_MP3LAME
256 {"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 256 {"lameopts", lameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
257 #endif 257 #endif
258 #ifdef USE_LIBAVCODEC 258 #ifdef USE_LIBAVCODEC
259 {"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 259 {"lavcopts", lavcopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
260 #else 260 #else
261 {"lavcopts", "MPlayer was compiled without libavcodec. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, 261 {"lavcopts", "MPlayer was compiled without libavcodec. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
262 #endif 262 #endif
263 #ifdef HAVE_TOOLAME 263 #ifdef HAVE_TOOLAME
264 {"toolameopts", toolameopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 264 {"toolameopts", toolameopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
265 #else 265 #else
266 {"toolameopts", "MPlayer was compiled without libtoolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, 266 {"toolameopts", "MPlayer was compiled without libtoolame. See README or DOCS.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
267 #endif 267 #endif
268 #ifdef USE_WIN32DLL 268 #ifdef USE_WIN32DLL
269 {"vfwopts", vfwopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 269 {"vfwopts", vfwopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
270 #endif 270 #endif
271 #if defined(HAVE_XVID3) || defined(HAVE_XVID4) 271 #if defined(HAVE_XVID3) || defined(HAVE_XVID4)
272 {"xvidencopts", xvidencopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 272 {"xvidencopts", xvidencopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
273 #endif 273 #endif
274 #if defined(HAVE_X264) 274 #if defined(HAVE_X264)
275 {"x264encopts", x264encopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 275 {"x264encopts", x264encopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
276 #endif 276 #endif
277 277
278 {"nuvopts", nuvopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 278 {"nuvopts", nuvopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
279 {"mpegopts", mpegopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 279 {"mpegopts", mpegopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
280 #ifdef USE_LIBAVFORMAT 280 #ifdef USE_LIBAVFORMAT
281 {"lavfopts", lavfopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, 281 {"lavfopts", lavfopts_conf, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
282 #endif 282 #endif
283 283
284 #define MAIN_CONF 284 #define MAIN_CONF
285 #include "cfg-common.h" 285 #include "cfg-common.h"
286 #undef MAIN_CONF 286 #undef MAIN_CONF