From: Loren Merritt Date: Thu, 3 Aug 2006 19:49:17 +0000 (+0000) Subject: cli: move some options from --help to --longhelp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3f15918ac03a0fc3b6fe1a8311fabedf5fa6b53;p=libx264 cli: move some options from --help to --longhelp git-svn-id: svn://svn.videolan.org/x264/trunk@550 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/x264.c b/x264.c index 1324c83f..badb5237 100644 --- a/x264.c +++ b/x264.c @@ -80,7 +80,7 @@ static int (*p_write_nalu)( hnd_t handle, uint8_t *p_nal, int i_size ); static int (*p_set_eop)( hnd_t handle, x264_picture_t *p_picture ); static int (*p_close_outfile)( hnd_t handle ); -static void Help( x264_param_t *defaults ); +static void Help( x264_param_t *defaults, int b_longhelp ); static int Parse( int argc, char **argv, x264_param_t *param, cli_opt_t *opt ); static int Encode( x264_param_t *param, cli_opt_t *opt ); @@ -119,209 +119,180 @@ static char const *strtable_lookup( const char * const table[], int index ) /***************************************************************************** * Help: *****************************************************************************/ -static void Help( x264_param_t *defaults ) +static void Help( x264_param_t *defaults, int b_longhelp ) { - fprintf( stderr, - "x264 core:%d%s\n" - "Syntax: x264 [options] -o outfile infile [widthxheight]\n" - "\n" - "Infile can be raw YUV 4:2:0 (in which case resolution is required),\n" - " or YUV4MPEG 4:2:0 (*.y4m),\n" - " or AVI or Avisynth if compiled with AVIS support (%s).\n" - "Outfile type is selected by filename:\n" - " .264 -> Raw bytestream\n" - " .mkv -> Matroska\n" - " .mp4 -> MP4 if compiled with GPAC support (%s)\n" - "\n" - "Options:\n" - "\n" - " -h, --help Print this help\n" - "\n" - "Frame-type options:\n" - "\n" - " -I, --keyint Maximum GOP size [%d]\n" - " -i, --min-keyint Minimum GOP size [%d]\n" - " --scenecut How aggressively to insert extra I-frames [%d]\n" - " -b, --bframes Number of B-frames between I and P [%d]\n" - " --no-b-adapt Disable adaptive B-frame decision\n" - " --b-bias Influences how often B-frames are used [%d]\n" - " --b-pyramid Keep some B-frames as references\n" - "\n" - " --no-cabac Disable CABAC\n" - " -r, --ref Number of reference frames [%d]\n" - " --nf Disable loop filter\n" - " -f, --filter Loop filter AlphaC0 and Beta parameters [%d:%d]\n" - "\n" - "Ratecontrol:\n" - "\n" - " -q, --qp Set QP (0=lossless) [%d]\n" - " -B, --bitrate Set bitrate\n" - " --crf Quality-based VBR (nominal QP)\n" - " --qpmin Set min QP [%d]\n" - " --qpmax Set max QP [%d]\n" - " --qpstep Set max QP step [%d]\n" - " --ratetol Allowed variance of average bitrate [%.1f]\n" - " --vbv-maxrate Max local bitrate [%d]\n" - " --vbv-bufsize Size of VBV buffer [%d]\n" - " --vbv-init Initial VBV buffer occupancy [%.1f]\n" - "\n" - " --ipratio QP factor between I and P [%.2f]\n" - " --pbratio QP factor between P and B [%.2f]\n" - " --chroma-qp-offset QP difference between chroma and luma [%d]\n" - "\n" - " -p, --pass <1|2|3> Enable multipass ratecontrol:\n" - " - 1: First pass, creates stats file\n" - " - 2: Last pass, does not overwrite stats file\n" - " - 3: Nth pass, overwrites stats file\n" - " --stats Filename for 2 pass stats [\"%s\"]\n" - " --rceq Ratecontrol equation [\"%s\"]\n" - " --qcomp QP curve compression: 0.0 => CBR, 1.0 => CQP [%.2f]\n" - " --cplxblur Reduce fluctuations in QP (before curve compression) [%.1f]\n" - " --qblur Reduce fluctuations in QP (after curve compression) [%.1f]\n" - "\n" - " --zones //...\n" - " Tweak the bitrate of some regions of the video\n" - " Each zone is of the form\n" - " ,,