I have searched for solutions to this issue and even though I thought I correctly followed the solutions, I still get the error. So here is what I have and what I have tried:
Windows 7 64 bit. MyEclipse IDE (10.5 which is running Eclipse 3.7.2). The JRE is 6.0.20 (pretty sure its a 32bit JRE)
I grabbed the ffmpeg-20140401-git-5b03caf-win32-shared file from the Zeranoe website and unzipped to a folder which I added (with bin) to the PATH environment. I added the following jars to my project in Eclipse:
javacv.jar
javacpp.jar
javacv-windows-x86.jar
opencv-2.4.8-windows-x86.jar
ffmpeg-2.1.1-windows-x86.jar
The following dll's are in the bin folder on the PATH (as mentioned above):
avcodec-55.dll
avdevice-55.dll
avfilter-4.dll
avformat-55.dll
avutil-52.dll
postproc-52.dll
swresample-0.dll
swscale-2.dll
ffmpeg produces this output at the command line:
ffmpeg version N-62004-g5b03caf Copyright (c) 2000-2014 the FFmpeg developers
built on Mar 31 2014 22:05:19 with gcc 4.8.2 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth
--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --e
nable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-lib
opencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-
libxavs --enable-libxvid --enable-zlib
libavutil 52. 70.100 / 52. 70.100
libavcodec 55. 55.107 / 55. 55.107
libavformat 55. 36.100 / 55. 36.100
libavdevice 55. 11.100 / 55. 11.100
libavfilter 4. 3.100 / 4. 3.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
I used an example posted in this group that concatenates two files together and basically I get the error in the stack trace as soon as I do this:
FrameGrabber intro = new FFmpegFrameGrabber("intro.mp3");
I tried all 64bit dll's and jar's as well with the same result. So I am missing something. The dll's are on the PATH. Do I have to add the jar's to the classpath explicitly? I am creating and deploying this as a servlet app and I see all the correct jars the WEB-INF\lib folder in Tomcat after I deploy but somehow the dll's aren't being picked up even though they are on the PATH (or so it seems)
What have I missed here? It seems like it should work.....
Thanks!