corrad82 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

video format #370

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Create a class that capture frame from a video
2. When capture a frame it's saved as a picture 
3.When the video is .avi, application works ok. When format is .avi

What is the expected output? What do you see instead?

Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.googlecode.javacv.FFmpegFrameGrabber.<init>(FFmpegFrameGrabber.java:106)
    at Video.main(Video.java:75)
Caused by: java.lang.IllegalStateException: Can't overwrite cause with 
java.lang.UnsatisfiedLinkError: no avcodec in java.library.path
    at java.lang.Throwable.initCause(Throwable.java:457)
    at com.googlecode.javacpp.Loader.load(Loader.java:581)
    at com.googlecode.javacpp.Loader.load(Loader.java:532)
    at com.googlecode.javacv.cpp.avcodec.<clinit>(avcodec.java:39)
    ... 2 more
Caused by: java.lang.UnsatisfiedLinkError: no jniavcodec in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1837)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1116)
    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:701)
    at com.googlecode.javacpp.Loader.load(Loader.java:578)
    ... 4 more
Caused by: java.lang.UnsatisfiedLinkError: 
C:\Users\Ioanna\AppData\Local\Temp\javacpp157243410741726\jniavcodec.dll: Can't 
find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1909)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1794)
    at java.lang.Runtime.load0(Runtime.java:809)
    at java.lang.System.load(System.java:1080)
    at com.googlecode.javacpp.Loader.loadLibrary(Loader.java:690)
    ... 5 more

What version of the product are you using? On what operating system?
Windows 8,OpenCV 2-4-6
Please provide any additional information below.

Original issue reported on code.google.com by ichar...@gmail.com on 9 Oct 2013 at 10:14

GoogleCodeExporter commented 8 years ago
Did you put ffmpeg-20130915-git-7ac6c63-windows-x86.jar and 
ffmpeg-20130915-git-7ac6c63-windows-x86_64.jar in your CLASSPATH?

Original comment by samuel.a...@gmail.com on 13 Oct 2013 at 1:43

GoogleCodeExporter commented 8 years ago
I used ffmpeg-20130915-git-7ac6c63-windows-x86.jar and 
ffmpeg-20130915-git-7ac6c63-windows-x86_64.jar in my CLASSPATH, but not works

Original comment by silvio.d...@gmail.com on 13 Oct 2013 at 3:24

GoogleCodeExporter commented 8 years ago
Ok, so can you explain in more details what you did exactly? Which files did 
you add to your CLASSPATH and how?

Original comment by samuel.a...@gmail.com on 13 Oct 2013 at 3:30

GoogleCodeExporter commented 8 years ago
I solved that problem when I downloaded ffmpeg from here : 
http://ffmpeg.zeranoe.com/builds/win64/shared/ and set my system path: 
C:\ffmpeg-64\bin;

Original comment by ichar...@gmail.com on 13 Oct 2013 at 12:07

GoogleCodeExporter commented 8 years ago
Are the files inside ffmpeg-20130915-git-7ac6c63-windows-x86_64.jar different? 
Or are they the same?

Original comment by samuel.a...@gmail.com on 13 Oct 2013 at 2:45

GoogleCodeExporter commented 8 years ago
In any case, JavaCV 0.7 now comes with FFmpeg 2.1.1, so it should fix this 
issue. Please let me know if you are still having problems with that, thanks!

Original comment by samuel.a...@gmail.com on 7 Jan 2014 at 1:08