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

UnsatisfiedLinkError Can not find jnivideoInputLib.dll #864

Closed
zchacker opened this issue Dec 26, 2017 · 6 comments
Closed

UnsatisfiedLinkError Can not find jnivideoInputLib.dll #864

zchacker opened this issue Dec 26, 2017 · 6 comments
Labels

Comments

@zchacker
Copy link

Hello, i have use FFmpeg in java to capture webcam and preview it, i use Dshow format.
when try to get webcams in FFmpeg, i did not find way to do that, but i use VideoInput library to get webcams name to pass it in this method.

int webcams = videoInput.listDevices();
String webcam_name[] =  new String[webcams];

int max = 0;	        
for (int i = 0; i < webcams ; i++) {
    	webcam_name[i] = videoInput.getDeviceName(i).getString();	        	
}
FFmpegFrameGrabber.createDefault("video="+webcam_name[0]);

the above code work very well in windows 8, but when i run it in windows 7 it show the he can not load "jnivideoInputLib.dll" file in this path

C:\Users\Compunet.javacpp\cache\room5.jar\org\bytedeco\javacpp\windows-x86_64\jnivideoInputLib.dll

and when i go the path i find the jnivideoInputLib.dll file
what is the problem and why javacv put dll files in this path instead of same jar resources

thanks

@saudet
Copy link
Member

saudet commented Dec 26, 2017 via email

@zchacker
Copy link
Author

it says the msvcp120.dll missing, and solve it, but is there a way to load webcams names using FFmpeg in javacv ?

saudet added a commit to bytedeco/javacpp-presets that referenced this issue Dec 28, 2017
@saudet saudet added the bug label Dec 28, 2017
@saudet
Copy link
Member

saudet commented Dec 28, 2017

Ah, yes, sorry about that. Fixed in the commit above.

It is possible to list devices with FFmpeg, yes, see issue #664 (comment), but we still need someone to integrate that functionality fo FFmpegFrameGrabber. If you would be interested in making a contribution, please let me know if you encounter any issues I can help with. Thank you for your interest!

@saudet
Copy link
Member

saudet commented Jan 18, 2018

Fix included in newly released version 1.4. Thanks for reporting!

@saudet saudet closed this as completed Jan 18, 2018
@zchacker
Copy link
Author

you are welcome , is there a new build ?

@saudet
Copy link
Member

saudet commented Jan 18, 2018

Yes, it's all here: http://bytedeco.org/download/

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

2 participants