-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
StackOverflowError loading ffmpeg in Tomcat on Linux #113
Comments
What is the name and version of your Linux distribution? With which version of JavaCV? |
I upgraded last night to Xubuntu 15.04 to see if that helped (it didn't), previously I was running Xubuntu 14.04. JRE is 1.8.0_11-b12, although I'm pretty sure 1.7 yields the same problem - I can confirm this if it helps. Servlet container is vFabric Tomcat Server 2.9.6 which is based on tomcat 7. I've tested unsuccessfully with JavaCV 0.8, 0.9, and 0.10. |
There's one thing we need to be careful when using Tomcat with JNI: |
Have you been able to make any progress with this? |
I've not spent much more time on it to be honest, I just test on windows for anything involving video. |
This is most likely fixed with commit bytedeco/javacpp@7968093 in JavaCPP and JavaCV 1.4. |
I'm having some difficulties loading the ffmpeg javacpp libraries in Tomcat on Linux. It works fine in Tomcat on Windows, and also fine in Linux when running as a standalone.
In my application I'm using javacv, flandmark and ffpeg. Both javacv and flankmark work fine but when I instantiate
FFmpegFrameRecorder
I receive a couple of errors:I've read on a thread somewhere that this error could be fixed by first making a call to
org.bytedeco.javacpp.Loader.load(org.bytedeco.javacpp.avcodec.class);
, however this results in the following error:I've created the simplest maven test project I could to demonstrate these two scenarios - it can be downloaded from http://picosoft.co.uk/ffmpeg-test.zip.
Thanks for your time,
James
The text was updated successfully, but these errors were encountered: