mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[BUG] eng.traineddate not found! No Switching Possible #514
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anthonyeden on GitHub (Oct 8, 2019).
CCExtractor version (using the --version parameter preferably) : 0.88
My familiarity with the project is as follows:
Necessary information
ccextractor -hardsubx "input.mp4" -o out.srtVideo links (replace text below with your links)
My source material is DVD Rips. I can supply a private Dropbox link if you supply an email address to send it to.
Additional information
When I run ccextractorwinfull.exe on Windows 7 x64, I get the following output:
Then, I get the 'your program has stopped working' Windows error message. When I manage to load it in my VS2017 debugger, it mentions an access violation.
This could be an installation issue - are there dependancies that must be installed? I couldn't find a full guide on installation.
I have found and places 'eng.traineddata' in the same folder as 'ccextractorwinfull.exe', but this doesn't make a difference.
@RaXorX commented on GitHub (Nov 19, 2019):
Apparently you can fix this by putting the eng.traineddata (by downloading it through the GitHub repo or copying it from the tessdata directory from the installation folder.
Nonetheless, all you have to do is create a folder named tessdata inside CCextractor folder where the "ccextractorwinfull.exe" is and copy it there, it'll detect the eng.traineddata as usual.
Although, this only works for the English language and will only detect the said above file. If you do it for a different language it won't. Now there lies my problem, since I have tried everything in my case and I am trying to scan for Chinese language but apparently find nothing at all about it. I'll open a new bug thread for it perhaps.
@NilsIrl commented on GitHub (Dec 23, 2019):
I don't know how relevant it is to your problem, especially because it seems to be a permission issue rather than anything else, but you can use the
TESSDATA_PREFIXenvironment variable to show where the data is located.Also the folder pointed to by
TESSDATA_PREFIXmust be the folder containing the foldertessdata, nottessdataitself.@cfsmp3 commented on GitHub (Dec 27, 2019):
It would be useful to display a detailed error message that is actually helpful (for example, write which specific directories were checked for the train files, and what actions the user can take to fix the problem - maybe set the env variable, or actually download the required files and where from).
@cfsmp3 commented on GitHub (Jan 25, 2020):
@anthonyeden I'm closing this because there's been work about it in the past few weeks - feel free to reopen if you are still having problems.