Currently the instructions to install with hardsubx are vague and a new method was added in PR #966
This method makes installation with HARDSUBX easy and hence has been added to the documentation.
There are no parameters as o1 or o2 in ccextractor but they have been mentioned in the help.
This commit removes such instances from file(s).
Change severity: trivial
* Add Updated GPAC
File changes have been directly inserted from libGPAC master into ccextractor's libGPAC.
This has resulted into removal of multiple custom functions and minor changes. These will be rectified in the next step of the updation.
Change severity: Very High
* Update libGPAC dependency
We use libGPAC for all our MP4 operations and, this commit updates it to the latest version.
All previous changes to the original library were restored post straight file updation and bugs have been removed.
change severity: very high
* Add Guide To Updating Dependencies
A small textual guide on how to update dependencies easily and efficiently.
strdup will give a segmentation fault if the argument passed to it is
NULL. TessResultIteratorGetUTF8Text returns a char* which can be NULL
and we should not call strdup directly over it. Once we check if the
value returned is not NULL, then we can call strdup.
* [IMPROVEMENT] Add LICENSE File
We should be adding a LICENSE File to the root of the project. We do mention that we follow GPL v2 and hence can include it's declaration file.
* Rename LICENSE to LICENSE.txt
The start and end timestamps of extracted burned in captions are flawed
and off by a large difference. Also, the start time of the first burned
in caption extracted is always zero, which is not always the case. And
the extracted captions always appear in continuous timestamps.
This commit improves the start and end timestamps of the extracted
burned in captions and reduces the error significantly, bringing the
timestamps fairly close to the actual timings as they appear in the
media file.
Add instructions to make the installation systemwide (on Linux) which can allow CCExtractor to be used from anywhere with just the below command in terminal:
`ccextractor [videofile]`
This commit adds some checks to avoid segmentation faults.
* In `add_cc_sub_text()`, strdup will cause a segfault if we duplicate an
empty string.
* In `init_encoder()`, initialize pointer fields to NULL to avoid random
addressing so we can avoid illegal memory accessing and segfaults in
other places.
To build ccextractor with hardsubx support on linux, we need to configure
ccextractor with the `-enable-hardsubx` switch along with the
`ENABLE_HARDSUBX` flag passed during compilation with make. This commit
adds the missing configure instruction.
* Added tags file and removed the previosly wrongly writtern file
* Added .vscode to visual code section
* Added the .tags in .gitignore
* Changed *.tags to *.tags*
write_dvb_sub(): Test for out of bounds and report details when this happens. Still doesn't fix the underlying issue but will help figure it out.
ocr.c: Solve malloc()/delete[] combinations that happened when operating on tesseract output. Now a malloc()'ed copy is immediately made, tesseract's results are unallocated using tesseract's delete function, and we continue using our own copy which is later free()'d.
ccx_encoders_srt.c: Made sure a pointer is non-NULL before dereferencing.
dvb_subtitle_decoder.c: Initialize pointer members to NULL when creating a structure.
lib_ccx.c: Initialize (memset 0) structure cc_subtitle after memory allocation.
README.TXT: Removed reference to sourceforge.