summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-07-24 20:32:13 +0000
committersr55 <[email protected]>2011-07-24 20:32:13 +0000
commite71ac4bb36c9cec69ed4cb45a48e179d662fa828 (patch)
treecf936363bb59b2d57437c821e87079baf1554aba /test/test.c
parentbcd278c661c41f1b5db2184f7d471724de561e5d (diff)
Min Duration now uses Seconds rather than ticks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4140 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c
index c6fb92ef1..d9f360dec 100644
--- a/test/test.c
+++ b/test/test.c
@@ -135,7 +135,7 @@ static int64_t stop_at_pts = 0;
static int stop_at_frame = 0;
static char * stop_at_string = NULL;
static char * stop_at_token = NULL;
-static uint64_t min_title_duration = 900000LL;
+static uint64_t min_title_duration = 10;
/* Exit cleanly on Ctrl-C */
static volatile int die = 0;
@@ -245,7 +245,7 @@ int main( int argc, char ** argv )
titleindex = 0;
}
- hb_scan( h, input, titleindex, preview_count, store_previews, min_title_duration );
+ hb_scan( h, input, titleindex, preview_count, store_previews, min_title_duration * 90000LL );
/* Wait... */
while( !die )
@@ -2486,6 +2486,8 @@ static void ShowHelp()
" -i, --input <string> Set input device\n"
" -t, --title <number> Select a title to encode (0 to scan all titles only,\n"
" default: 1)\n"
+ " --min-duration Set the minimum title duration (in seconds). Shorter\n"
+ " titles will not be scanned (default: 10)."
" --scan Scan selected title only.\n"
" --main-feature Detect and select the main feature title.\n"
" -c, --chapters <string> Select chapters (e.g. \"1-3\" for chapters\n"