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

ffmpeg 2.3 avcodec dll depends on swresample dll #13

Closed
EdTorbett opened this issue Aug 8, 2014 · 4 comments
Closed

ffmpeg 2.3 avcodec dll depends on swresample dll #13

EdTorbett opened this issue Aug 8, 2014 · 4 comments
Labels

Comments

@EdTorbett
Copy link

Due to a dll dependency, swresample must be loaded prior to any reference to avcodec, otherwise an UnsatisfiedLinkError is thrown.

To resolve this, the avcodec.java preset should inherit swresample as well as avutil.

This affects ffmpeg 2.3 but not 2.2.1.

@saudet saudet added the bug label Aug 9, 2014
@saudet
Copy link
Member

saudet commented Aug 9, 2014

Got it, thanks for reporting!

FYI, to work around the problem without having to rebuild, we can simply call Loader.load(swresample.class) before accessing avcodec.

@prismsoul
Copy link

+1
This is a nasty one... spent quite some time fiddling with libraries, just to realize that I simply needed to add the following at the beginning of my program:
Class.forName("org.bytedeco.javacpp.swresample");

@saudet
Copy link
Member

saudet commented Oct 25, 2014

BTW, I've upgraded the presets for FFmpeg 2.4:
8e66bb0
And would like to make sure that I got it right this time, so please let me know if you see anything wrong there, thanks!

@saudet
Copy link
Member

saudet commented Dec 27, 2014

Fix included in version 0.10. Thanks for reporting!

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

No branches or pull requests

3 participants