Open remcopoelstra opened 9 months ago
It just looks like the JAR file containing those files is missing from your class path
Thanks for the suggestion, I will look into this. For the rest everything is working ok, my app is decoding and displaying video frames, Eclipse is also showing javacpp-1.5.10-windows-x86_64.jar under maven dependencies. As a quick test I created a new maven project with javacv-platform 1.5.10 as the only dependency, when I create a FFmpegFrameGrabber in main with debug messages turned on I see the same output.
M2Eclipse is pretty buggy, don't use that
That being said, I am able to reproduce this issue with Maven... Why is it doing that 🤔
Nope, this still occurs with Maven 3.6.3, but only in some cases.
Can you try to call Loader.load(Loader.class)
before anything else in your application and see what that gives?
Yes, if I call Loader.load(Loader.class)
first it's working again.
I added some debugging to the findResources(Class cls, String name, int maxLength)
to see for which Class it is trying to find the resource int the call: URL url = cls.getResource(name);
When it's working this prints class org.bytedeco.javacpp.Loader
, when it's not working this prints class org.bytedeco.ffmpeg.global.avutil
.
I will try to see if I can find out why it's passing this class.
First off thanks for all your great work. I just updated to 1.5.10 and noticed loading of libraries went from 500ms to 5 seconds in my project, I did a little bit of debugging and I get the impression it has to do with caching, with 1.5.9 I see the following debug messages when I start my app for the first time after deleting the cache (I am creating a FFmpegFrameGrabber here):
And with 1.5.10 I see this when running after deleting the cache:
So it looks like libraries are no longer extracted to the cache. I will try to make some time to look into this deeper but if you have any suggestions that would be greatly appreciated, could it perhaps be that I have to configure caching myself with the new version?