OpenWrt Forum Archive

Topic: OPENWRT ASUS / WL500GP v1 / WEBCAM Microsoft LifeCAM VX-3000

The content of this topic has been archived on 4 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

HOWTO

1. Install openwrt-brcm47xx-squashfs.trx on ASUS WL500gP v1
http://downloads.openwrt.org/backfire/1 … uashfs.trx
More on this link http://wiki.openwrt.org/toh/asus/wl500gp

login 192.168.1.1 / user root and no password
set password
use putty to login ssh

2. Install usb support
opkg update
opkg install kmod-usb-core
opkg install kmod-usb-uhci
opkg install kmod-usb-ohci (to be safe)
opkg install kmod-usb2
opkg install usbutils

to test
reboot router
login and see command lsusb
you should see Microsoft Lifecam VX-3000

3. Install video support
opkg update
opkg install kmod-usb-video
opkg install kmod-video-core
opkg install kmod-i2c-core
opkg install mjpg-streamer

4. Install webcam driver
opkg install kmod-video-gspca-core
opkg install kmod-video-gspca-sonixj

5. reboot to be safe

login
start mjpg-streamer
/etc/init.d/mjpg-streamer start
to start on boot
/etc/init.d/mjpg-streamer enable

to test
in browser
192.168.1.1:8080/?action=stream

(to config mjpg-streamer use /etc/config/mjpg-streamer and /etc/init.d/mjpg-streamer)

I hope I don't misspell something
Please correct me :-)

Good stuff.
Is there anything relevant in the output of dmesg, just in case others need to troubleshoot their setups?

Hi,

The following codes is not working on my TL-MR3020.

start mjpg-streamer
/etc/init.d/mjpg-streamer start
                                     stop
/etc/init.d/mjpg-streamer enable


But the following comand is working.
mjpg_streamer -i "input_uvc.so -r 800x448 -f 20" -o "output_http.so -p 8080 -w /webcam_www"& (to start the stream)

killall mjpg_streamer (to stop the stream)


I'm looking a way to autostart on boot, any suggestion?

(Last edited by wifi487uci on 3 Jun 2013, 17:23)

To run a command on boot, put it in /etc/rc.local.

Thanks

Hi guys,


I'm trying to get my Logitech Quickcam 4000 Pro working with my Asus wl-500gp v1 router with no luck. As far as I can gather the webcam is based on pwc and not gspca, so I followed a tutorial here and on usb.essentials and usb.video to install relevant packages.

Here's the way I approached it:

- USB support

opkg update
opkg install kmod-usb-uhci
opkg install kmod-usb-ohci
opkg install kmod-usb2
opkg install usbutils

- USB video support

opkg update
opkg install kmod-i2c-core
opkg install kmod-video-core
opkg install kmod-usb-core
opkg install kmod-video-pwc

- Application

opkg update
opkg install libpthread
opkg install libjpeg
opkg install mjpg-streamer

- Rebooting the router

- Mjpg-streamer:

/etc/init.d/mjpg-streamer enable   (to start on boot)

- Rebooting the router again (just in case)

- Opening link:

http://192.168.3.1:8080/

I get unable to connect message.

When I go back in and run following command:

mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480" -o "output_http.so -p 8080 -w /www/webcam"&

I receive the following output:

root@OpenWrt:~# MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
Unable to set format: Invalid argument
Init v4L2 failed !! exit fatal
i: init_VideoIn failed

If anybody has any suggestion what to do it would be much appreciated! Thanks.

I have mjpg-streamer working with a Logitech Quickcam 9000 Pro.  It uses a uvc driver.  Are you sure the 4000 uses pwc?

Otherwise, your command line looks good to me, and similar to mine: 

mjpg_streamer -i "input_uvc.so -d /dev/video0 -r  1600x1200" -o "output_http.so -w /www/webcam -p 8080"&

Hi Lizby,


Everywhere I looked they mention 4000 Pro as pwc (https://wiki.archlinux.org/index.php/Webcam_Setup#pwc).

Just to be on the safe side I removed the pwc package and installed uvc, but I get the same result. Any other thoughts?

Btw. I see you're using 1600x1200 res on yours. Can I ask how many frames do you get?


Cheers.

>how many frames do you get?

I don't even know how to find out.  This is on a pan and tilt rivercam (a view from my barn of the Mersey River in Nova Scotia) controllable by anyone with web access, and the effective rate over the web is only a few frames a second (it's much faster locally).

It's here if you want to look:  http://www.lyzby.com/cam.html

post the output of

lsusb -v | grep FORMAT_MJPEG

BTW: It really seems to be a pwc cam, as it is not listed in the uvc compliance list -> http://www.ideasonboard.org/uvc/

(Last edited by tmo26 on 6 Jul 2013, 23:03)

@Lizby: very nice. Is this your 9000 Pro? I get my info on frame rate when I launch the following command:

mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480" -o "output_http.so -p 8080 -w /www/webcam"&  (see also my original post and on the output of this command it says Frames per second)


@Tmo26: I put your command in and nothing happens, it just goes back to root command line:

root@OpenWrt:~# lsusb -v | grep FORMAT_MJPEG
root@OpenWrt:~#

I presume this is not what it should happen?

Thanks, bur, for the advice on getting the frame rate.  This is my 9000 Pro webcam. 

Apparently I'm not getting the 1600x1200 that I was asking for--the command said it was switching to 960x720--at 5 frames per second.  I'm not sure if this is the top resolution I am able to get from the webcam.

If

 lsusb -v | grep FORMAT_MJPEG 

doesn't produce an output at all while you have your webcam connected, then your webcam doesn't support MJPEG and thus, mjpeg_streamer can't produce any output.

@Lizby: No worries...you're welcome. It still looks good though...I really thought 5s would be much more choppy...

@Tmo26: Noooooo....just my luck...I'll try source another newer logitech and see if that works. Btw. is there a way of knowing, or perhaps better, a list of webcams that do/don't support MJPEG? Thanks.

I think almost any up to date webcam can output mjpeg.

I've got Logitech C270, C910, Orbit Sphere AF; Microsoft HD-5000; Genius F100;

All of them can output mjpeg.

OK...so I got a friends Logitech C300...removed PWC drivers and installed UVC and still no luck. hmm

the output for lsusb -v | grep FORMAT_MJPEG :

bDescriptorSubtype                  6 (FORMAT_MJPEG)


and the output for mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480" -o "out
put_http.so -p 8080 -w /www/webcam"& :

root@OpenWrt:~# MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
ERROR opening V4L interface: No such file or directory
Init v4L2 failed !! exit fatal
i: init_VideoIn failed

Have I missed something?! hmm

check the output of

opkg list-installed libv4l

If this produces no output -> install libv4l

Nope I dind't have that installed. So I followed your suggestion and installed it. But I still get the same output as on my last post. hmm

I was wondering something though...when I run the following command (after /etc/init.d/mjpg-streamer start):

root@OpenWrt:~# /etc/init.d/mjpg-streamer reload
no process in pidfile '/var/run/mjpg_streamer.pid' found; none killed

is it normal to get that kind of output? That sounds to me like the mjpeg-streamer doesn't turn on at all?

Also I found this open ticket few days ago: https://dev.openwrt.org/ticket/13595

and I posted my question there as well, but I only got reply to install i2c...which I had all along. Is it possible then that there's an issue with the latest openwrt update?

bur wrote:

I was wondering something though...when I run the following command (after /etc/init.d/mjpg-streamer start):

root@OpenWrt:~# /etc/init.d/mjpg-streamer reload
no process in pidfile '/var/run/mjpg_streamer.pid' found; none killed

is it normal to get that kind of output? That sounds to me like the mjpeg-streamer doesn't turn on at all?

Well, if you get errors while starting mjpeg_streamer, it's no wonder that you get the above output.

bur wrote:

Also I found this open ticket few days ago: https://dev.openwrt.org/ticket/13595

and I posted my question there as well, but I only got reply to install i2c...which I had all along. Is it possible then that there's an issue with the latest openwrt update?

check the output of dmesg and compare with the errors shown in the above URL.
If you see the same errors in your dmesg, then most likely you are affected by this ticket.

Hi guys,


A reply with a bit of delay due to other circumstances.

@tmo26: I compared my dmesg with the one in the ticket and they don't match. Quite opposite, I don't get any mention of "v4l". If it helps I can copy and paste my dmesg.

I have in the mean time updated my firmware to AA12.09. I somehow only noticed couple of days ago that I had version 10 installed before, not quite sure how that happened. But interesting thing is that under the aforementioned ticket, there was another post suggesting to install "v4l-utils", which I tried to do, but received the following error:

root@OpenWrt:~# opkg install v4l-utils
Unknown package 'v4l-utils'.
Collected errors:
* opkg_install_cmd: Cannot install package v4l-utils.

Any thoughts where the problem might lie? Cheers.

A small update. I went and did a fresh install of AA12.09, as previous upgrade didn't go well. So I managed to install the "v4l-utils", but still no luck with streaming. hmm

The discussion might have continued from here.