Hi AllI am new to java and javacv and I am trying to stream video in my java application and I get the following error./tmp/javacpp8423165394140/libjniavutil.so: libavutil.so.52: cannot open shared object file: No such file or directoryI built the the latest ffmpeg from their git server and when i run ffmpeg I get,ffmpeg version N-51892-gf1e606c Copyright (c) 2000-2013 the FFmpeg developersbuilt on Apr 11 2013 13:53:06 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)configuration: --disable-yasmlibavutil 52. 26.100 / 52. 26.100libavcodec 55. 2.100 / 55. 2.100libavformat 55. 2.100 / 55. 2.100libavdevice 55. 0.100 / 55. 0.100libavfilter 3. 52.101 / 3. 52.101libswscale 2. 2.100 / 2. 2.100libswresample 0. 17.102 / 0. 17.102Hyper fast Audio and Video encoderusage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
I cant seem to find the libavutil.so.52 that java is looking for. If anyone can point me in the right direction I will be very happy . I am running Ubuntu 12.04 with Eclipse and Java 1.7.0_15
Here is what my code looks likeimport com.googlecode.javacv.CanvasFrame;import com.googlecode.javacv.FFmpegFrameGrabber;import com.googlecode.javacv.FrameGrabber;import com.googlecode.javacv.cpp.opencv_core.IplImage;public class Main {public static void main(String[] args) throws Exception {FrameGrabber grabber = new FFmpegFrameGrabber("http://10.1.1.189/video2.mjpg");grabber.setFormat("mjpeg");grabber.start();IplImage frame = grabber.grab();CanvasFrame canvasFrame = new CanvasFrame("Camera");canvasFrame.setCanvasSize(frame.width(), frame.height());while (canvasFrame.isVisible() && (frame = grabber.grab()) != null) {canvasFrame.showImage(frame);}grabber.stop();canvasFrame.dispose();System.exit(0);}}Many Thanks for the help