Webcam?
-
Thanks all, it worked on the $5 NZD camera Igot from Alliexpress, awesome!
-
Ps2 Eye toy didnt work though.
-
@Andrew-Nixon please let me know which command you have used that your camera is now working.
-
Used the command
mjpg_streamer -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so"
As already posted on here, then viewed the stream directly from the browser (as posted here also) through
http://192.168.3.1:8080/?action=stream
. Mines very slow though.
-
@Andrew-Nixon Yeah, the reason why it's slow could be due to the camera. I'm curious why you weren't able to get PS2 eye working though. The very first camera we had working on the Omega was a PS2 eye, and the streaming speed is pretty much instantaneous.
-
@Boken-Lin Using PS2 eyetoy (and checked on both of them as I bought two) with the command:
mjpg_streamer -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so"
MJPG Streamer Version: svn rev: Unversioned directory
and get:i: Using V4L2 device.: /dev/video0 i: Desired Resolution: 640 x 480 i: Frames Per Second.: 15 i: Format............: YUYV i: JPEG Quality......: 80 i: TV-Norm...........: DEFAULT ERROR opening V4L interface: No such file or directory Init v4L2 failed !! exit fatal i: init_VideoIn failed
What's going on?
-
@Theodore-Borromeo Is there a reason that you uare using YUYV format instead of mjpeg? I think PS2 eye should support mjpeg by default. Can you try sending input in mjpeg format?
-
@Boken-Lin Didn't put anything in there that would have made it choose one over the other, though I ran it again like so:
mjpg_streamer -i "input_uvc.so -r 640x480" -o "output_http.so -p 8080"
and got:
MJPG Streamer Version: svn rev: Unversioned directory i: Using V4L2 device.: /dev/video0 i: Desired Resolution: 640 x 480 i: Frames Per Second.: not limited i: Format............: JPEG i: TV-Norm...........: DEFAULT ERROR opening V4L interface: No such file or directory Init v4L2 failed !! exit fatal i: init_VideoIn failed
And I'm using the latest firmware version (220 I think, just oupgraded)
-
@Theodore-Borromeo can you do a
ls
in the/dev
directory to see if the camera is correctly detected?
-
@Boken-Lin I see no video0 in /dev, correct. How would I remedy this? Can I, perhaps, reinstall mjpg_streamer from opkg? Perhaps in baking it into the firmware, something didn't run correctly to properly set this up?
-
@Boken-Lin Do you all have a step by step setup for this yet? I am curious as to why libv4l isn't installed (as everywhere seems to list it as a dependency along with some others). It'd be easier to debug at an earlier step, as I have no way to see where it is I'm failing. I'm using the pre-installed mjpg-streamer package you all provided on firmware v220. I don't see the camera being recognized as a camera, nor creating a /dev/video0 node. . .
Thus far, the ps2eye cam is not working 'out of the box'
Is it because I am using a mini dock (and that doesn't provide enough power to fully run the cam?)
-
@Theodore-Borromeo I think libv4l is installed. But for some reason the driver for the webcam doesn't seem to recognize the webcam. I'm looking into it right now to figure out what the issue is.
-
@Boken-Lin I did:
opkg list
and I didn't see it. I also ran:
opkg install libv4l
and that went through to install v1.6.2-1. I am just pointing this out to clear up that your shipped firmware doesn't have it installed by default. Might there be some other dependencies missing for us non onion inc. users?
-
@Theodore-Borromeo Hmm, i thought v4l was installed by default when you try to install the mjpeg_streamer package. After installing libv4l, though, is the Omega able to detect your ps2eye?
-
@Boken-Lin No. it seems that mjpg-streamer, though in the current firmware, doesn't do anything to check or ensure that libv4l is installed (I think that this may be a runtime check). And no, the ps2eye toy camera (either of them) are still not recognized. No /dev/video* is being created either, lsusb shows only a connection to a usb device and dmesg shows the same. . .
-
@Andrew-Nixon try:
mjpg_streamer -i "input_uvc.so -d /dev/video0" -o "output_http.so"
As, according to: https://github.com/foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian
they "-y" flag you were using is forcing YUV mode, which requires massive compute cycles for a camera (ps2eyetoy) that should just support jpeg encoding out of the box.let me know how that goes, and then pass on to me the setup you have so that I may duplicate.
-
@Boken-Lin I think that latest firmware doesn't have, at least:
libv4l
kmod-video-gspca-ov519 <-- had to use the opkg "--force-depends" due to kernel mismatchinstalled, which means that the ps2eyetoy shouldn't work out of the box, right?
info from:
https://wiki.openwrt.org/doc/howto/usb.video
-
@Theodore-Borromeo Logitech HD Webcam C310 tested and enumerates and produces a /dev/video0 node.
The ps2eyetoy doesn't seem to even be recognized past being plugged in. The omega just states a full speed device was detected. Could there be a difference between models you are using and the ones I am using? I know that Logitech made some models, while Namtai made others. Perhaps I have the Namtai, and you have the logitech?
-
@Theodore-Borromeo I'm not sure if this is the source of the problem. But I just realized that the webcam we have is a PS3 eye (not a ps2 eye). And it was able to be detected by the Omega with the firmware. I have just ordered a ps2 eye so we can play around with it and figure out the problem.
-
@Theodore-Borromeo I didn't look up that "-y" flag. Maybe my web cam would have worked without that. Oh well, I returned it earlier today. I have ordered a PS3 cam from ebay so I will check that when it comes. It is called a "Sony PS3 Playstation USB Move Motion Eye Gaming Camera Microphone Zoom Lens" Not sure if that is the same one that @Boken-Lin mentioned that they used.