| 1315 | } |
| 1316 | |
| 1317 | static void ShowHelp(void) |
| 1318 | { |
| 1319 | int i, clock_min, clock_max, clock; |
| 1320 | const hb_rate_t *rate; |
| 1321 | const hb_dither_t *dither; |
| 1322 | const hb_mixdown_t *mixdown; |
| 1323 | const hb_encoder_t *encoder; |
| 1324 | const hb_container_t *container; |
| 1325 | FILE* const out = stdout; |
| 1326 | |
| 1327 | fprintf( out, |
| 1328 | "Usage: HandBrakeCLI [options] -i <source> -o <destination>\n" |
| 1329 | "\n" |
| 1330 | "General Options --------------------------------------------------------------\n" |
| 1331 | "\n" |
| 1332 | " -h, --help Print help\n" |
| 1333 | " --version Print version\n" |
| 1334 | " --json Log title, progress, and version info in\n" |
| 1335 | " JSON format\n" |
| 1336 | " -v, --verbose[=number] Be verbose (optional argument: logging level)\n" |
| 1337 | " -Z, --preset <string> Select preset by name (case-sensitive)\n" |
| 1338 | " Enclose names containing spaces in double quotation\n" |
| 1339 | " marks (e.g. \"Preset Name\")\n" |
| 1340 | " -z, --preset-list List available presets\n" |
| 1341 | " --preset-import-file <filespec>\n" |
| 1342 | " Import presets from a json preset file.\n" |
| 1343 | " 'filespec' may be a list of files separated\n" |
| 1344 | " by spaces, or it may use shell wildcards.\n" |
| 1345 | " --preset-import-gui Import presets from GUI config preset file.\n" |
| 1346 | " --preset-export <string>\n" |
| 1347 | " Create a new preset from command line options and\n" |
| 1348 | " write a json representation of the preset to the\n" |
| 1349 | " console or a file if '--preset-export-file' is\n" |
| 1350 | " specified. The required argument will be the name\n" |
| 1351 | " of the new preset.\n" |
| 1352 | " --preset-export-file <filename>\n" |
| 1353 | " Write new preset generated by '--preset-export'\n" |
| 1354 | " to file 'filename'.\n" |
| 1355 | " --preset-export-description <string>\n" |
| 1356 | " Add a description to the new preset created with\n" |
| 1357 | " '--preset-export'\n" |
| 1358 | " --queue-import-file <filename>\n" |
| 1359 | " Import an encode queue file created by the GUI\n" |
| 1360 | " --no-dvdnav Do not use dvdnav for reading DVDs\n" |
| 1361 | "\n" |
| 1362 | "\n" |
| 1363 | "Source Options ---------------------------------------------------------------\n" |
| 1364 | "\n" |
| 1365 | " -i, --input <string> Set input file or device (\"source\")\n" |
| 1366 | " -t, --title <number> Select a title to encode (0 to scan all titles\n" |
| 1367 | " only, default: 1)\n" |
| 1368 | " --min-duration Set the minimum title duration (in seconds).\n" |
| 1369 | " Shorter titles will be ignored (default: 10).\n" |
| 1370 | " --max-duration Set the maximum title duration (in seconds).\n" |
| 1371 | " Longer titles will be ignored.\n" |
| 1372 | " --scan Scan selected title only.\n" |
| 1373 | " --main-feature Detect and select the main feature title.\n" |
| 1374 | " --keep-duplicate-titles\n" |
no test coverage detected