Skip to content

Commit

Permalink
Merge pull request #980 from thealphadollar/correct_help
Browse files Browse the repository at this point in the history
[IMPROVEMENTS] Update CLI help and HARDBUX Installation Instructions
  • Loading branch information
canihavesomecoffee committed May 20, 2018
2 parents b364298 + 68e6f26 commit 1fac910
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
14 changes: 11 additions & 3 deletions docs/HARDSUBX.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,17 @@ pkg-config --libs libswscale

On success, you should see the correct include directory path and the linker flags.

To build the program with hardsubx support, from the Linux directory run:-
./configure --enable-hardsubx
make ENABLE_HARDSUBX=yes
To build the program with hardsubx support,

== from the Linux directory run:-
./configure --enable-hardsubx
make ENABLE_HARDSUBX=yes

== using cmake from root directory
mkdir build
cd build
cmake -DWITH_OCR=on -DWITH_HARDSUBX=on ../src/
make

NOTE: The build has been tested with FFMpeg version 3.1.0, and Tesseract 3.04.

Expand Down
9 changes: 7 additions & 2 deletions docs/using_cmake_build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Step 2) create a separate directory where you want to build the target.
~> cd ccextractor
~> mkdir build

Step 3) make the build system using cmake
~> cmake ../src/
Step 3) make the build system using cmake. Params in [] are optional and have
been explained later in the document.
~> cmake [-DWITH_FFMPEG=ON] [-DWITH_OCR=ON] [-DWITH_SHARING=ON]
[-DWITH_HARDSUBX=ON] ../src/

Step 4) Compile the code.
~> make
Expand All @@ -30,5 +32,8 @@ cmake -DWITH_OCR=ON ../src/
If you want to build CCExtractor with Sharing and Translating service:
cmake -DWITH_SHARING ../src/

If you want to build CCExtractor with HARDSUBX support
cmake -DWITH_OCR=ON ../src/

Hint for looking all the things you want to set from outside
cmake -LAH ../src/
2 changes: 1 addition & 1 deletion src/lib_ccx/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void print_usage (void)
mprint (" -cf filename: Write 'clean' data to a file. Cleans means the ES\n");
mprint (" without TS or PES headers.\n");
mprint (" -stdout: Write output to stdout (console) instead of file. If\n");
mprint (" stdout is used, then -o, -o1 and -o2 can't be used. Also\n");
mprint (" stdout is used, then -o can't be used. Also\n");
mprint (" -stdout will redirect all messages to stderr (error).\n");
mprint (" -pesheader: Dump the PES Header to stdout (console). This is\n");
mprint (" used for debugging purposes to see the contents\n");
Expand Down

0 comments on commit 1fac910

Please sign in to comment.