Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using docker #18

Closed
Er-WaN opened this issue Dec 11, 2020 · 3 comments
Closed

Error using docker #18

Er-WaN opened this issue Dec 11, 2020 · 3 comments

Comments

@Er-WaN
Copy link

Er-WaN commented Dec 11, 2020

Hi,

I want to convert .sup (PGS) to .srt with your libs using docker :

docker run -it -v /share/CACHEDEV1_DATA/Multimedia/Movies/Test:/data -e INPUT=/data/Mission.Impossible.Fallout.2018.MULTi.TRUEFRENCH.2160p.UHD.BluRay.REMUX.DV.HEVC-BEO.6.en.sup -e LANGUAGE=eng tentacule/pgstosrt

But I have this error :

2020/12/11 11:36:28.418|ERROR|Error: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Tncl.NativeLoader.NativeInstance.CreateInstance(NativeLoader loader, Type interfaceType)
at PgsToSrt.TesseractApi.Initialize()
at PgsOcr.DoOcr() Exception has been thrown by the target of an invocation.

I have a QNAP NAS.

Thanks in advance for your help.

Erwan

@Tentacule
Copy link
Owner

I changed the parent image, it should be ok now.

@nation-wide
Copy link

I'm getting this same error. Using 1.2.0.0 without Docker.

dotnet PgsToSrt.dll --input "The Sopranos - S01E01 - The Sopranos.mkv" --output ./subtitles.srt --track 4

<snipped bunch of "Detected tesseract..." lines>
2020/12/18 14:04:43.929|INFO|Detected tesseract language data for language 'ara'.
2020/12/18 14:06:18.886|INFO|Starting OCR for 836 items...
2020/12/18 14:06:18.999|ERROR|Error: Exception has been thrown by the target of an invocation.   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Tncl.NativeLoader.NativeInstance.CreateInstance(NativeLoader loader, Type interfaceType)
   at PgsToSrt.TesseractApi.Initialize()
   at PgsOcr.DoOcr() Exception has been thrown by the target of an invocation.

@Tentacule
Copy link
Owner

Tentacule commented Dec 18, 2020

You can try with v1.3.0, if it still doesn't work please add the linux distribution name/version used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants