@@ -47,7 +47,7 @@ http://www.ccextractor.org
47
47
#[ command(
48
48
help_template = "{name} {version}, {author}.\n {about}\n {all-args} {tab}\n
49
49
An example command for burned-in subtitle extraction is as follows:
50
- ccextractor video.mp4 --hardsubx --subcolor white --detect_italics --whiteness_thresh 90 --conf_thresh 60
50
+ ccextractor video.mp4 --hardsubx --subcolor white --detect-italics --whiteness-thresh 90 --conf-thresh 60
51
51
52
52
Notes on File name related options:
53
53
You can pass as many input files as you need. They will be processed in order.
@@ -876,7 +876,7 @@ pub struct Args {
876
876
/// or letter wise.
877
877
/// e.g. --ocr-mode frame (default), --ocr-mode word,
878
878
/// --ocr-mode letter
879
- #[ arg( long, verbatim_doc_comment, value_name="mode" , help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
879
+ #[ arg( long = "ocr-mode" , verbatim_doc_comment, value_name="mode" , help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
880
880
pub ocr_mode : Option < String > ,
881
881
/// Specify the color of the subtitles
882
882
/// Possible values are in the set
@@ -893,29 +893,29 @@ pub struct Args {
893
893
/// A lower value gives better results, but takes more
894
894
/// processing time.
895
895
/// The recommended value is 0.5 (default).
896
- /// e.g. --min_sub_duration 1.0 (for a duration of 1 second)
897
- #[ arg( long, verbatim_doc_comment, value_name="duration" , help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
896
+ /// e.g. --min-sub-duration 1.0 (for a duration of 1 second)
897
+ #[ arg( long = "min-sub-duration" , verbatim_doc_comment, value_name="duration" , help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
898
898
pub min_sub_duration : Option < f32 > ,
899
899
/// Specify whether italics are to be detected from the
900
900
/// OCR text.
901
901
/// Italic detection automatically enforces the OCR mode
902
902
/// to be word-wise
903
- #[ arg( long, verbatim_doc_comment, help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
903
+ #[ arg( long = "detect-italics" , verbatim_doc_comment, help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
904
904
pub detect_italics : bool ,
905
905
/// Specify the classifier confidence threshold between
906
906
/// 1 and 100.
907
907
/// Try and use a threshold which works for you if you get
908
908
/// a lot of garbage text.
909
- /// e.g. --conf_thresh 50
910
- #[ arg( long, verbatim_doc_comment, help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
909
+ /// e.g. --conf-thresh 50
910
+ #[ arg( long = "conf-thresh" , verbatim_doc_comment, help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
911
911
pub conf_thresh : Option < f32 > ,
912
912
/// For white subtitles only, specify the luminance
913
913
/// threshold between 1 and 100
914
914
/// This threshold is content dependent, and adjusting
915
915
/// values may give you better results
916
916
/// Recommended values are in the range 80 to 100.
917
917
/// The default value is 95
918
- #[ arg( long, verbatim_doc_comment, value_name="threshold" , help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
918
+ #[ arg( long = "whiteness-thresh" , verbatim_doc_comment, value_name="threshold" , help_heading=BURNEDIN_SUBTITLE_EXTRACTION ) ]
919
919
pub whiteness_thresh : Option < f32 > ,
920
920
/// This option will be used if the file should have both
921
921
/// closed captions and burned in subtitles
0 commit comments