We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 3 4 5 
GSVideo - Couldn't load library (Read 26980 times)
Re: GSVideo - Couldn't load library
Reply #45 - Apr 28th, 2010, 6:24pm
 
hi there people i m in urgent desperate for help
i have a deadline in a few weeks and am having trouble getting my concept to work.



I m tryin to view a series of webcams through processing and i keep getting the same error
cannot load library gstreamer-0.10

this is on all eg.s in the gstreamer library??


import hypermedia.video.*;
import codeanticode.gsvideo.*;

GSPipeline pipe;
OpenCV opencv;

void setup() {

 size( 320, 240 );

  pipe = new GSPipeline(this, "gnomevfssrc location=http://admin:1234@168.192.2.3:4321/mjpg/video.mjpg");
 //pipe = new GSPipeline(this, "gnomevfssrc location=http://192.168.2.3:4321/axis_cgi/mjpg/video.cgi?resolution=640x480 ! jpegdec ! ffmpegcolorspace");
 opencv = new OpenCV( this );
 opencv.allocate(160, 120);
}

void draw() {
if (pipe.available()){

 pipe.read();        
 opencv.copy(pipe, 0, 0, 640, 480, 0, 0, 160, 120);    
 image( opencv.image(), 0, 0);              

 opencv.absDiff();                          

 image( opencv.image(OpenCV.MEMORY), 160, 0 );  
 image( opencv.image(), 160, 120 );            
 }
}
void keyPressed() {    
 opencv.remember();  
}







any ideas GRATLY RECIEVED!!!Cheesy:D

AND LAST BUT NOT LEAST

Re: GSVideo - Couldn't load library
Reply #46 - Apr 28th, 2010, 6:26pm
 
one other trouble i m having with http client in processing to login into my ip webcams to see the video stream live through processing below is the code that i have used so far but am habing trouble

any assistance PLEASE!!Cheesy???

// Example by Tom Igoe

// Creates a client that listens for input until it
// gets a linefeed character,and puts the bytes it gets
// into a byte[] buffer

import processing.net.*;
Client myClient;
String inString;
int interesting = 10;

void setup() {
 size (640, 480);
  background(50);
 fill(200);
 // Connect to the local machine at port 10002.
 // This example will not run if you haven't
 // previously started a server on this port
 myClient = new Client(this, "192.168.2.4", 80); // Connect to server on port 80
 
//    myClient.write("POST  User%2BName=admin&Password=1234");

//http://admin:password@IP:web_port/mjpg/video.mjpg// without login

 myClient.write("GET/http:admin:1234@168.192.2.4:4321/mjpg/video.mjpgn/1.1\n"); // Be polite and say who we are
// myClient.write("Host: 192.168.2.3\n\n"); // Be polite and say who we are

 myClient.write("Host: http:admin:1234@168.192.2.4:4321/mjpg/video.mjpgn\n"); // Be polite and say who we are  
}
void draw() {
   myClient.write("Host: http:admin:1234@168.192.2.4:4321/mjpg/video.mjpgn\n"); // Be polite and say who we are
 // myClient.write("GET /camera-cgi/admin/param.cgi?action=list&group=Properties.Image HTTP/1.1\n"); // Use the HTTP "GET" command to ask for a Web page
//  myClient.write("GET /loginfree.jpg HTTP/1.1\n"); // Use the HTTP "GET" command to ask for a Web page

 myClient.write("Host: 192.168.2.4\n\n"); // Be polite and say who we are

if (myClient.available() > 0) {
   inString = myClient.readString();
   //print("hello");
   //println(inString);
}
   //print("not available");
}


REALLY APPRECIATE ANY HELP

THANKS
Re: GSVideo - Couldn't load library
Reply #47 - Apr 29th, 2010, 3:39am
 
What system are you using (windows, linux, mac)? And what version of gsvideo?
Re: GSVideo - Couldn't load library
Reply #48 - May 5th, 2010, 1:19pm
 
Hi really appreciate your reply
my system is windows 64bit and the version of gsvideo is have (the previous one that didnt work was 20090202).
This current one is

gsvideo-0.6-pre2

LOOK FORWARD TO HEARING FROM YOU
Re: GSVideo - Couldn't load library
Reply #49 - May 6th, 2010, 11:07am
 
Hi,

The error descriptions you have posted so far are not detailed enough to isolate the source of the problem.

However, I see a couple of issues:

* gsvideo on windows 7 64 bits: I don't have windows 7 myself at this point, so I cannot really test this. But some people reported that the latest gsvideo works fine on win7, although I'm not sure if they are on 32 or 64 bits. I'd recommend you remove any previous version of gsvideo/gstreamer from your system, install the latest release of gsvideo (0.6-pre3) and test the provided examples (such as Movie/Loop or Pipelines/Test). If they run ok, then the problem is not windows. If the don't run, please post the full error message you get in Processing.

* GStreamer pipeline to implement RTSP client: I never tested this functionality myself, so my experience is very limited. All I can say in this regard is that the element you are trying to use, gnomevfssrc, is only for Linux. I think the Windows equivalent is rtspsrc. Sample pipelines I found online for rtspsrc are like this:

Code:

rtspsrc location=rtsp://elphel:554 ! queue ! rtpjpegdepay ! queue ! jpegdec ! queue ! videorate ! capsfilter caps="video/x-raw-yuv, format=(fourcc)I420, width=(int)1024, height=(int)768, framerate=(fraction)25/1


however I don't know enough about video streaming to be able to provide much help here. The elements you have to put in such pipeline (rtpjpegdepay, etc) probably depend on what encoding you are using to stream out the video.

Re: GSVideo - Couldn't load library
Reply #50 - May 6th, 2010, 12:14pm
 
windows vista 64bit sorry didnt write in full
Re: GSVideo - Couldn't load library
Reply #51 - May 6th, 2010, 12:54pm
 
I have repleaced gsvideo with the latest version as advised now i have the error

ii have the same error

unsatisfiedLinkError Could not load library g streamer-0.10 library
is there a missing plugin or extension of some sort to the

import codeanticode.gsvideo.*;
import hypermedia.video.*;
GSPipeline pipe;
OpenCV opencv;
void setup() {
//  pipe = new GSPipeline(this, "gnomevfssrc location=http://192.168.1.118/axis-cgi/mjpg/video.cgi?resolution=640x480 ! jpegdec ! ffmpegcolorspace");
//  http://192.168.2.3/jpg/image.jpg
//  pipe = new GSPipeline(this, "gnomevfssrc location=http://192.168.2.4/mjpg/video.mjpg");
 pipe = new GSPipeline(this, "gnomevfssrc location=rtsp://192.168.2.4/mjpg/video.mjpg");
 opencv = new OpenCV( this );
 opencv.allocate(width,height);
}
void draw() {
 if (pipe.available() == true) {
    pipe.read();
    opencv.copy(pipe, 0, 0, 640, 480, 0, 0, width, height);
    print ("   hello    ");
 }
 print ("   not found   ");
}

// all cameras to stream creating 2X2 Grid Positioning co ordinates will be needed

Many thanks
Re: GSVideo - Couldn't load library
Reply #52 - May 6th, 2010, 4:10pm
 
Quote:
unsatisfiedLinkError Could not load library g streamer-0.10 library
is there a missing plugin or extension of some sort to the


Do you get this error when your try to run the examples that come with the library (Movie/Loop, Pipelines/Test, etc), or when you try to run your sketch

According to a user's report, latest gsvideo works fine on win7 32bits:

https://sourceforge.net/projects/gsvideo/forums/forum/813596/topic/3683393

Re: GSVideo - Couldn't load library
Reply #53 - May 7th, 2010, 2:20am
 
I m using windows vista 64 bit.

unsatisfiedLinkError Could not load library g streamer-0.10 library
the library has been expanded as it was i havent moved anything.

When i run the examples the sketch e.g pixelate has the same error as above?


Re: GSVideo - Couldn't load library
Reply #54 - May 7th, 2010, 2:29am
 
Strange.

Can you paste the entire error message you get in the Processing's console?
Re: GSVideo - Couldn't load library
Reply #55 - May 7th, 2010, 2:42am
 
/**
* Pixelate  
* by Hernando Barragan.  
* Built-in video library replaced with gsvideo by Andres Colubri
*
* Load a QuickTime file and display the video signal
* using rectangles as pixels by reading the values stored
* in the current video frame pixels array.
*/

import codeanticode.gsvideo.*;

int numPixels;
int blockSize = 10;
GSMovie myMovie;
color myMovieColors[];

void setup() {
 size(640, 480, P3D);
 noStroke();
 background(0);
 myMovie = new GSMovie(this, "station.mov");
 myMovie.loop();
 numPixels = width / blockSize;
 myMovieColors = new color[numPixels * numPixels];
}


// Read new values from movie
void movieEvent(GSMovie m) {
 m.read();
 m.loadPixels();
 
 for (int j = 0; j < numPixels; j++) {
   for (int i = 0; i < numPixels; i++) {
     myMovieColors[j*numPixels + i] = m.get(i, j);
   }
 }
}


// Display values from movie
void draw()  {
 for (int j = 0; j < numPixels; j++) {
   for (int i = 0; i < numPixels; i++) {
     fill(myMovieColors[j*numPixels + i]);
     rect(i*blockSize, j*blockSize, blockSize-1, blockSize-1);
   }
 }
}

example code displaying the same error as posted in the message above.


// 4 Cameras recording real time each camera is part of a grid made up of 4 video streams

import codeanticode.gsvideo.*;
import hypermedia.video.*;
GSPipeline pipe;
OpenCV opencv;
void setup() {
//  pipe = new GSPipeline(this, "gnomevfssrc location=http://192.168.1.118/axis-cgi/mjpg/video.cgi?resolution=640x480 ! jpegdec ! ffmpegcolorspace");
//  http://192.168.2.3/jpg/image.jpg
//  pipe = new GSPipeline(this, "gnomevfssrc location=http://192.168.2.4/mjpg/video.mjpg");
 pipe = new GSPipeline(this, "gnomertspsrc location=rtsp://192.168.2.4/mjpg/video.mjpg");
 opencv = new OpenCV( this );
 opencv.allocate(width,height);
}
void draw() {
 if (pipe.available() == true) {
    pipe.read();
    opencv.copy(pipe, 0, 0, 640, 480, 0, 0, width, height);
    print ("   hello    ");
 }
 print ("   not found   ");
}

// all cameras to stream creating 2X2 Grid Positioning co ordinates will be needed

above is the code i m using to attempt to capture the streams live from cameras?



Error from the console>>>






PIXELATE EXAMPLE



processing.app.debug.RunnerException: UnsatisfiedLinkError: Could not load library gstreamer-0.10
     at processing.app.Sketch.placeException(Unknown Source)
     at processing.app.debug.Runner.findException(Unknown Source)
     at processing.app.debug.Runner.reportException(Unknown Source)
     at processing.app.debug.Runner.exception(Unknown Source)
     at processing.app.debug.EventThread.exceptionEvent(Unknown Source)
     at processing.app.debug.EventThread.handleEvent(Unknown Source)
     at processing.app.debug.EventThread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: Could not load library gstreamer-0.10
     at org.gstreamer.lowlevel.GNative.loadWin32Library(GNative.java:83)
     at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:43)
     at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
     at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
     at org.gstreamer.Gst.<clinit>(Gst.java:59)
     at codeanticode.gsvideo.GSVideo.init(GSVideo.java:85)
     at codeanticode.gsvideo.GSMovie.<init>(GSMovie.java:75)
     at codeanticode.gsvideo.GSMovie.<init>(GSMovie.java:52)
     at Pixelate.setup(Pixelate.java:43)
     at processing.core.PApplet.handleDraw(Unknown Source)
     at processing.core.PApplet.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:619)


CODE FROM CAPTURE IP CAM CODE

processing.app.debug.RunnerException: UnsatisfiedLinkError: Could not load library gstreamer-0.10
     at processing.app.Sketch.placeException(Unknown Source)
     at processing.app.debug.Runner.findException(Unknown Source)
     at processing.app.debug.Runner.reportException(Unknown Source)
     at processing.app.debug.Runner.exception(Unknown Source)
     at processing.app.debug.EventThread.exceptionEvent(Unknown Source)
     at processing.app.debug.EventThread.handleEvent(Unknown Source)
     at processing.app.debug.EventThread.run(Unknown Source)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: Could not load library gstreamer-0.10
     at org.gstreamer.lowlevel.GNative.loadWin32Library(GNative.java:83)
     at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:43)
     at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
     at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
     at org.gstreamer.Gst.<clinit>(Gst.java:59)
     at codeanticode.gsvideo.GSVideo.init(GSVideo.java:85)
     at codeanticode.gsvideo.GSPipeline.<init>(GSPipeline.java:58)
     at ipcapture.setup(ipcapture.java:33)
     at processing.core.PApplet.handleDraw(Unknown Source)
     at processing.core.PApplet.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:619)
Re: GSVideo - Couldn't load library
Reply #56 - May 10th, 2010, 5:11pm
 
About the gstreamer loading problem, I'm not sure what the reason could be. I haven't seen this error before.

I imagine one possible cause (gsvideo thinks that you still have a stand-alone version of gstreamer installed on your system, but you don't). You could try the following:

* install the latest gstreamer-winbuilds:
http://ossbuild.googlecode.com/files/GStreamer-WinBuilds-GPL-x86.msi

* if you still have an old version of gsvideo, replace with the latest one (0.6-pre4):
http://sourceforge.net/projects/gsvideo/files/gsvideo/0.6/gsvideo-0.6-pre4.zip/d...

Hopefully, after this gsvideo will work ok, at least with the provided examples.

Regarding the video streaming, as I said before I don't really have experience with it. I found this thread on the gstreamer-devel forum which could be useful:

http://sourceforge.net/mailarchive/forum.php?thread_name=1273408971.15897.0.came...

I hope this helps.
Re: GSVideo - Couldn't load library
Reply #57 - May 11th, 2010, 11:52am
 
I was having the same problem "UnsatisfiedLinkError: could not load library gstreamer-0.10", also using Windows 7 64bit and gsvideo-0.6-pre4.  I was using processing 1.09.  After upgrading to processing 1.1, everything works great.

Thanks so much for your library!
Re: GSVideo - Couldn't load library
Reply #58 - May 12th, 2010, 4:05am
 
Thanks for the above,
I have done all the above but am not seeing any change.

error that now reads is

GstException: no element "gnomertspsrc"


Thanks
Re: GSVideo - Couldn't load library
Reply #59 - May 12th, 2010, 6:09am
 
The gnomertspsrc element is available only on linux
Pages: 1 2 3 4 5