summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2007-12-13 02:29:29 +0000
committerjbrjake <[email protected]>2007-12-13 02:29:29 +0000
commit4247f9c145c7c5ef5f35e0ae5bdd0bd50e0c237c (patch)
tree0787e98b3a625bcb5588285f1e99da165f5fb473 /test
parent0a3bce91386cbd0d6e47754178d9a01c9a0d1386 (diff)
CLI: Makes CRF (constant rate factor) the default constant quality mode, instead of CQP (constant quantization parameter). This means the -Q short option now turns CQP on and CRF off, whereas up until now it did the reverse. The long option has accordingly changed from --crf to --cqp.
( CRF has been the default in the MacGui since r526 ) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1121 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r--test/test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.c b/test/test.c
index 2eb9e53fa..773983478 100644
--- a/test/test.c
+++ b/test/test.c
@@ -60,7 +60,7 @@ static int chapter_start = 0;
static int chapter_end = 0;
static int chapter_markers = 0;
static char * marker_file = NULL;
-static int crf = 0;
+static int crf = 1;
static char *x264opts = NULL;
static char *x264opts2 = NULL;
static int maxHeight = 0;
@@ -1150,7 +1150,7 @@ static void ShowHelp()
" -e, --encoder <string> Set video library encoder (ffmpeg,xvid,\n"
" x264,x264b13,x264b30 default: ffmpeg)\n"
" -q, --quality <float> Set video quality (0.0..1.0)\n"
- " -Q, --crf Use with -q for CRF instead of CQP\n"
+ " -Q, --cqp Use with -q for CQP instead of CRF\n"
" -S, --size <MB> Set target size\n"
" -b, --vb <kb/s> Set video bitrate (default: 1000)\n"
" -r, --rate Set video framerate (" );
@@ -1317,7 +1317,7 @@ static int ParseOptions( int argc, char ** argv )
{ "ab", required_argument, NULL, 'B' },
{ "rate", required_argument, NULL, 'r' },
{ "arate", required_argument, NULL, 'R' },
- { "crf", no_argument, NULL, 'Q' },
+ { "cqp", no_argument, NULL, 'Q' },
{ "x264opts", required_argument, NULL, 'x' },
{ "turbo", no_argument, NULL, 'T' },
{ "maxHeight", required_argument, NULL, 'Y' },
@@ -1649,7 +1649,7 @@ static int ParseOptions( int argc, char ** argv )
abitrate = atoi( optarg );
break;
case 'Q':
- crf = 1;
+ crf = 0;
break;
case 'x':
x264opts = strdup( optarg );