Error while loading video.

172 views
Skip to first unread message

kleii

unread,
Dec 17, 2015, 6:15:20 PM12/17/15
to Marvin Project
Hey !

I am trying to load a video, using Marvin in Eclipse(already tried loading and displaying images and it worked), but I get the following error: 

after these commands:
       videoAdapter = new MarvinJavaCVAdapter(); 
       videoAdapter.loadResource("./ex.mp4");


Exception in thread "main" java.lang.NoClassDefFoundError: com/googlecode/javacv/FrameGrabber
at marvintest.FirstApplication.<init>(FirstApplication.java:46)
at marvintest.FirstApplication.main(FirstApplication.java:82)
Caused by: java.lang.ClassNotFoundException: com.googlecode.javacv.FrameGrabber
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 2 more

I added 2 external libraries: javacv.jar and javacpp.jar but it did not solve the problem.

Any ideas how to solve this ?

Gabriel Archanjo

unread,
Dec 18, 2015, 12:40:00 PM12/18/15
to marvin-...@googlegroups.com

Hi,

I guess you did not install and setup JavaCV properly.

Follow the steps presented in the blog post below. It should work!

"Using JavaCV in Marvin Framework"
http://anshulkatta.blogspot.in/2013/04/using-javacv-in-marvinframework.html

--
You received this message because you are subscribed to the Google Groups "Marvin Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marvin-projec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anshul katta

unread,
Dec 18, 2015, 12:54:21 PM12/18/15
to Marvin Developers

Gabri,

I m thinking to convert this into maven dependency... That would be easy for people so that they will not have to download anything.

Thanks
Anshul

Reply all
Reply to author
Forward
0 new messages