Skip to content

Commit ffe075b

Browse files
authored
[IMPROVEMENT] Clarify CEA-608/708 Subtitle Extraction Behavior #1448 (#1663)
* made changes to the file src/lib_ccx/params.c * made changes to the help message.
1 parent b08c5fa commit ffe075b

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

src/lib_ccx/params.c

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -969,17 +969,17 @@ void print_usage(void)
969969
mprint(" You can adjust, or disable, the algorithm settings with the following\n");
970970
mprint(" parameters.\n");
971971
mprint("\n");
972-
mprint("Notes on times:\n"
973-
" --startat and --endat times are used first, then -delay.\n");
972+
mprint("Notes on times:\n");
973+
mprint(" --startat and --endat times are used first, then -delay.\n");
974974
mprint(" So if you use --srt -startat 3:00 --endat 5:00 --delay 120000, ccextractor will\n");
975975
mprint(" generate a .srt file, with only data from 3:00 to 5:00 in the input file(s)\n");
976976
mprint(" and then add that (huge) delay, which would make the final file start at\n");
977977
mprint(" 5:00 and end at 7:00.\n");
978978
mprint("\n");
979979
mprint("Notes on codec options:\n");
980-
mprint(" If codec type is not selected then first elementary stream suitable for \n"
981-
" subtitle is selected, please consider --teletext -noteletext override this\n"
982-
" option.\n");
980+
mprint(" If codec type is not selected then first elementary stream suitable for\n");
981+
mprint(" subtitle is selected, please consider --teletext --noteletext override this\n");
982+
mprint(" option.\n");
983983
mprint(" no-codec and codec parameter must not be same if found to be same \n"
984984
" then parameter of no-codec is ignored, this flag should be passed \n"
985985
" once, more then one are not supported yet and last parameter would \n"
@@ -992,8 +992,14 @@ void print_usage(void)
992992
mprint(" The start window must be between the times given and must have enough time\n");
993993
mprint(" to display the message for at least the specified time.\n");
994994
mprint("\n");
995-
mprint("Notes on the CEA-708 decoder:\n"
996-
" While it is starting to be useful, it's\n");
995+
mprint("Notes on the CEA-708 decoder:\n");
996+
mprint(" By default, ccextractor now extracts both CEA-608 and CEA-708 subtitles\n");
997+
mprint(" if they are present in the input. This results in two output files: one\n");
998+
mprint(" for CEA-608 and one for CEA-708.\n");
999+
mprint(" To extract only CEA-608 subtitles, use -1, -2, or -12.\n");
1000+
mprint(" To extract only CEA-708 subtitles, use -svc.\n");
1001+
mprint(" To extract both CEA-608 and CEA-708 subtitles, use both -1/-2/-12 and -svc.\n\n");
1002+
mprint(" While it is starting to be useful, it's\n");
9971003
mprint(" a work in progress. A number of things don't work yet in the decoder\n");
9981004
mprint(" itself, and many of the auxiliary tools (case conversion to name one)\n");
9991005
mprint(" won't do anything yet. Feel free to submit samples that cause problems\n");

src/rust/src/args.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ Notes on adding credits:
104104
to display the message for at least the specified time.
105105
106106
Notes on the CEA-708 decoder:
107+
By default, ccextractor now extracts both CEA-608 and CEA-708 subtitles
108+
if they are present in the input. This results in two output files: one
109+
for CEA-608 and one for CEA-708.
110+
To extract only CEA-608 subtitles, use -1, -2, or -12.
111+
To extract only CEA-708 subtitles, use -svc.
112+
To extract both CEA-608 and CEA-708 subtitles, use both -1/-2/-12 and -svc.
107113
While it is starting to be useful, it's
108114
a work in progress. A number of things don't work yet in the decoder
109115
itself, and many of the auxiliary tools (case conversion to name one)

0 commit comments

Comments
 (0)