Hi there, I'm new to the board but I already read a lot in there for various subjects.
Here is my current problem as I'm building a (simple) camera application. I'm running ubuntu 9.10, I make an extensive use of the gsvideo library (latest version I think gsvideo-0.6-pre0), and I have two main troubles.
First, processing 1.0.9 seems unable to load the classes from the gsvideo library.
The library show up in the "import library" menu, the import command is correct. But it refuses to create GSCapture objects, or GSPipeline, it yells "Cannot find a class or type named "GSCapture".
I'm unable to spot the problem, maybe some syntax changes that I'm unaware of, or library location (seems odd).
Next is more problematic and occurs in processing 1.0.3 (yes I missed a couple of updates).
I am unable to read() a GSPipeline. I used the "Fast_webcam" example. The Pipeline creation shows no error but the app stops immediately on camera.read() and says :
Quote:"BufferUnderflowException"
console says :
Quote:Exception in thread "Animation Thread" java.nio.BufferUnderflowException
at java.nio.HeapIntBuffer.get(HeapIntBuffer.java:127)
at java.nio.IntBuffer.get(IntBuffer.java:675)
at codeanticode.gsvideo.GSPipeline.read(GSPipeline.java:146)
at FastWebcam.draw(FastWebcam.java:41)
at processing.core.PApplet.handleDraw(PApplet.java:1423)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:619)
If I change the code to use GSCapture method it works fine. This is frustrating because I need these pipe to work with some DV stream for my project, I saw on another post that it should run allright. But for now the DV stream is not the issue since I can't even create a pipeline using my webcam (same problem I'm able to get the pipeline running with gst-launch, but once in the processing GSPipeline command, it can't read it).
It might be some package missing on my system regarding gstreamer, but at this point I have almost all the gstreamer related ubuntu packages installed :/.
I thought using processing 1.0.9 would help, but... check problem 1.
Thanks for any hints regarding these two issues, if you need additional infos I can get to solve this, I keep investigating.
dF