Webcam?
-
@Chris-Ward Once you have MJPEG Streamer up and running on your Omega, you can stream the video directly from your browser by navigating to
http://192.168.4.1:8080/?action=stream
. You might need to change the IP Address of your Omega.
-
Ah. Ok. I haven't looked at GStreamer yet, and didn't realize that it set up it's own server. I need to find a cheap webcam.
-
Microsoft HD3000 works flawlessly with mjpg-streamer
-
Ok, I found a cheap webcam. First time playing with a webcam. I found this page: http://h-wrt.com/en/doc/webcam and found that I did have a UVC cam at /dev/video0. I used this command:
mjpg_streamer -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so"
. This seemed to work. I went to the omega in the browser, and eventually saw an image. It takes 30 seconds to see a snapshot, or a frame of video. Is that what you guys are seeing too? Is that an issue with my cheap webcam? My setup?
-
Hi @Chris-Ward, it is very likely a problem with your camera. Most of the camera we've tested with a pretty fast. It usually is instantaneous.
-
Bummer. Oh well, it was a $6 gamble.
-
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?