We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm trying to use a pseye as webcam on my raspberry 2.
I have installed a lot of stuff (gstreamer-plugin-good, ...) and all stuff I found on the net as the gohai glvideo. Now I don't have any errors but only a black screen.
I'm blocked, please help -.
Answers
The GL Video library comes with its own version of GStreamer. No use in installing extra packages.
What's your output of
ls -al /dev/video*
?Next step would be to try the capture examples with the regular Video library (using the host system's GStreamer 0.10), as well as the GL Video library.
I'have got /dev/video0 and all example video even only reading give me a black screen
@matthieu That's with both Video libraries, right?
I could imagine that the Pi's USB bandwidth might not be sufficient for the camera - the Pi isn't exactly known for being a great USB host, unfortunately. You could try forcing a low resolution, and see if this changes things - in the GL Video's SimpleCapture example you'd e.g. change the constructor to read
What you could also try is to install some other program that make use of attached webcams, and check if it works there (e.g.
apt-get install cheese
).pseye run good with cheese, Now with this resolution I've got this error
GLVideo: v4l2src0: Internal data stream error. Debugging information: gtsbasesrc.c(2950): gst_base_src_loop (): /GstPipeline:pipeline0/Gstv4l2Src:v4l2src0
How about with the regular Video library and this resolution?
@matthieu Also, in GLVideo, could you add the line GLVideo.enableDebug() right after
size
, and upload the output that will appear in the console?@matthieu That's odd, I would have expected enableDebug() to be a little bit more verbose...
Can you make sure the GLVideo.enableDebug() is done before you create the capture device with
GLCapture(this, ...)
? Can you you also try with GLVideo.enableDebug(4)? This should print even more.Thanks.
Ok enableDebug is before the initialization and I've got this very verbose error.
There is also a second part but I don't manage to send a simple .txt file
Can you upload the file to pastebin or similar, and send a link?
Does it work when you do
Same bug, here is the link pastebin.com/HxGr8QSU
@matthieu Is this the complete output? Asking because I am not seeing the "Internal data stream error" in it, and everything looks plausible / fine up until the end of what is in the file.
Note: you can also capture the output by running the example from within a terminal and redirecting the output to a file like this:
After some 30 seconds or so, you can terminate the execution with Ctrl+c.
Sorry for the late, I was over busy. I have installed ubuntu mate on the pi, new processing and the pseye library. Now i've got this error :
libUsbException: USB error 6: error LibUsb.claimInterface: Ressources busy
When I tried upload to pi from another computer I've got this error :
libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/004: Permission denied libusb: error [_get_usbfs_fd] libusb requires write access to USB device nodes. org.usb4java.LibUsbException: USB error 3: Unable to open USB device: Access denied (insufficient permissions)
@matthieu I haven't used Ubuntu Mate, and this is no environment we can support. Sorry. Perhaps the community behind this distribution can help?