webcam problem

Hello everyone, I purchased this endoscope,

I wanted to develop an application to interface with this device. The problem is that it does not turn on, there is a black screen. With other software the endoscope works fine.

After a few seconds I press ESC and gives me this error:

(java.exe:1244): GStreamer-CRITICAL **: Trying to dispose element Video Capture, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

I use Windows 7 64-bit

how can I solve?

thanks, Gius



  • I am afraid processing is not able to resolve all the cameras in the market. It really depends on the driver for the device. From your link, it is using UVC, USB Video Class. This is as much as I can say wrt video streaming as this is not my realm.

    Just to add to your issue, have you tried running example code using some other type of camera? This is done to ensure Processing is working properly.

    Another suggestion is to run your device with another version of Windows as it might have different drivers available.

    Hopefully some other forum goers have more suggestions for you.


  • edited March 2017

    Thank you for your reply kfrajer. I am using this code for my tests:

    import*; Capture webcam;

    void setup() { size(640,480); webcam = new Capture(this,640,480); String[] devices = Capture.list(); println(devices); webcam.start();


    void draw() { if (webcam.available() == true) {; image(webcam ,0,0); }


    with this code work fine webcam and more, but not the endoscope model that I need.

    I can try another code? with other examples?

    With this endoscope everything works fine:,5mm+2+in+1

    but I need to work with an endoscope with zoom.

    Is there anyone who has worked with endoscopy usb with zoom and is compatible with Processing?

    thanks, Gius

Sign In or Register to comment.