[DOCS] Documentation fix and mentioned alternatives that ccx accepts for -stdin and -cc2 options (#1295)

* added alternate params for -stdin and -cc2
* change readme text file to markdown
* deleted README.TXT
This commit is contained in:
Sivaram D
2021-04-05 01:16:17 +05:30
committed by GitHub
parent 97da554da6
commit acb55470f6
2 changed files with 14 additions and 21 deletions

View File

@@ -1,20 +1,16 @@
CCExtractor
(check AUTHORS.TXT for history and developers)
----------------------------------------------
## CCExtractor
check AUTHORS.TXT for history and developers
License
-------
## License
GPL 2.0.
Description
-----------
## Description
Since the original port, the whole code has been rewritten (more than once,
one might add) and support for most subtitle formats around the world has
been added (teletext, DVB, CEA-708, ISDB...)
Basic Usage
-----------
## Basic Usage
(please run ccextractor with no parameters for the complete manual -
this is for your convenience, really).
@@ -31,8 +27,7 @@ trivial - you just need to pass the input file and (optionally) some
details about the input and output files.
Languages
---------
## Languages
Usually English captions are transmitted in line 21 field 1 data,
using channel 1, so the default values are correct so you don't
need to do anything and you don't need to understand what it all
@@ -50,20 +45,17 @@ So try adding these parameter combinations to your other parameters.
If there are Spanish subtitles, one of them should work.
McPoodle's page
---------------
## McPoodle's page
http://www.theneitherworld.com/mcpoodle/SCC_TOOLS/DOCS/SCC_TOOLS.HTML
Essential CC related information and free (with source) tools.
Encoding
--------
## Encoding
This version, in both its Linux and Windows builds generates by
default Unicode files. You can use -latin1 and -utf8 if you prefer
these encodings (usually it just depends on what your specific
player likes).
Future work
-----------
## Future work
- Please check www.ccextractor.org for news and future work.

View File

@@ -362,6 +362,7 @@ void print_usage(void)
mprint(" -fixptsjumps: fix pts jumps. Use this parameter if you\n");
mprint(" experience timeline resets/jumps in the output.\n");
mprint(" -stdin: Reads input from stdin (console) instead of file.\n");
mprint(" Alternatively, - can be used instead of -stdin\n");
mprint("You can pass as many input files as you need. They will be processed in order.\n");
mprint("If a file name is suffixed by +, ccextractor will try to follow a numerical\n");
mprint("sequence. For example, DVD001.VOB+ means DVD001.VOB, DVD002.VOB and so on\n");
@@ -400,7 +401,7 @@ void print_usage(void)
mprint("Use --append to prevent overwriting of existing files. The output will be\n");
mprint(" appended instead.\n");
mprint(" -cc2: When in srt/sami mode, process captions in channel 2\n");
mprint(" instead of channel 1.\n");
mprint(" instead of channel 1. Alternatively, -CC2 can also be used.\n");
mprint("-svc --service N1[cs1],N2[cs2]...:\n");
mprint(" Enable CEA-708 (DTVCC) captions processing for the listed\n");
mprint(" services. The parameter is a comma delimited list\n");
@@ -1031,7 +1032,7 @@ void version(char *location)
char *leptversion = getLeptonicaVersion();
mprint(" Leptonica Version: %s\n", leptversion);
lept_free(leptversion);
#endif
#endif //ENABLE_OCR
mprint(" libGPAC Version: %s\n", GPAC_VERSION);
mprint(" zlib: %s\n", ZLIB_VERSION);
mprint(" utf8proc Version: %s\n", (const char *)utf8proc_version());
@@ -2745,7 +2746,7 @@ int parse_parameters(struct ccx_s_options *opt, int argc, char *argv[])
fatal(EXIT_MALFORMED_PARAMETER, "-curlposturl has no argument.\n");
}
}
#endif
#endif //WITH_LIBCURL
#ifdef ENABLE_SHARING
if (strcmp(argv[i], "-enable-sharing") == 0)
@@ -2923,7 +2924,7 @@ int parse_parameters(struct ccx_s_options *opt, int argc, char *argv[])
print_error(opt->gui_mode_reports, "-curlposturl requires that the format is curl\n");
return EXIT_INCOMPATIBLE_PARAMETERS;
}
#endif
#endif //WITH_LIBCURL
/* Initialize some Encoder Configuration */
opt->enc_cfg.extract = opt->extract;
if (opt->num_input_files > 0)