Closed GoogleCodeExporter closed 9 years ago
Привет!
Попробуйте:
# ipkg install
http://dl.dropbox.com/u/44733876/test/mjpg-streamer_r63-1_mipsel.ipk
/opt/etc/init.d/K99webcam start
в браузере http://my.router:9999/?action=stream
Я тестил на Logitech PRO 9000 - работает...
Original comment by d...@soulblader.com
on 26 Feb 2012 at 5:39
Anyone can confirm if this works?.. ))
..or doesn't work...
Original comment by d...@soulblader.com
on 1 Mar 2012 at 5:07
The file was deleted from the server
/opt/home/admin # ipkg install
http://dl.dropbox.com/u/44733876/test/mjpg-streamer_r63-1_mipsel.ipk
Downloading http://dl.dropbox.com/u/44733876/test/mjpg-streamer_r63-1_mipsel.ipk
wget: server returned error: HTTP/1.1 404 NOT FOUND
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget -q -P
/opt/ipkg-8Rr5G3
http://dl.dropbox.com/u/44733876/test/mjpg-streamer_r63-1_mipsel.ipk'
Cannot find package
http://dl.dropbox.com/u/44733876/test/mjpg-streamer_r63-1_mipsel.ipk.
Check the spelling or perhaps run 'ipkg update'
Original comment by Livi...@gmail.com
on 1 Mar 2012 at 6:32
ooops, sorry. forgot to turn it back. fixed. Please, note it will work only if
your webcam supports uvcvideo and mjpeg format.
Original comment by d...@soulblader.com
on 1 Mar 2012 at 9:19
It works perfectly with my Logitech C910 webcam, even with 1920 x 1080 and 30
fps/sec resolution but laggy, I oppened the 9999 port and I can watch it from
wan. :)
Original comment by Livi...@gmail.com
on 1 Mar 2012 at 7:03
That's amazing first time, really ))
It is not a good idea actually, because the process is started by admin and it
insecure. Anyone who want to view it will do. It is better to use Poptop VPN
server, built in firmware. You still be able to view it from wan, but the
traffic is encrypted.
Original comment by d...@soulblader.com
on 1 Mar 2012 at 11:52
Original comment by d...@soulblader.com
on 6 Mar 2012 at 5:39
Hi, I am trying to install mjpg-streamer on Asus RT-N66U but I get: Video
modules are missing!
ASUSWRT RT-N66U_3.0.0.4 Sat Dec 1 19:41:47 UTC 2012
admin@(none):/tmp/home/root# /opt/etc/init.d/S99webcam start
Starting mjpg_streamer .
Trying to install kernel video modules from repository... Error: package
kmods_video_2.6.22.19 is not found!
Trying to install kernel video modules from
repository.../opt/etc/webcam/videomod.sh: Error: video modulea for 2.6.22.19
were not found!
/opt/etc/init.d/S99webcam: Can't start. Video modules are missing!
There is any chance to install video drivers?
THX
Original comment by Livi...@gmail.com
on 6 Dec 2012 at 4:03
Please see in
https://code.google.com/p/rt-n56u/downloads/detail?name=mjpg-streamer_r63-2_mips
el.ipk - I compilled modules for 3 kernel versions. So currently mjpg-streamer
can be started if you use one of those three firmware versions...
Sorry, but I don't have much free time to make packages with video modules for
firmware versions older than 3.0.2.6-018 ) You can build them yourself if you
like )
Original comment by d...@soulblader.com
on 6 Dec 2012 at 7:38
Thank you for responding but unfortunately I don't know how to build packages,
maybe when you have some free time can make a short tutorial about how to...
I want to help other users and I made some tutorials but my linux knowledge is
basic, take a look here pls
http://forums.smallnetbuilder.com/showthread.php?t=8696
http://forums.smallnetbuilder.com/showthread.php?t=8323
and no luck when trying with mjpg-streamer: video modules are missing!
http://forums.smallnetbuilder.com/showthread.php?p=53659#post53659
THX
Original comment by Livi...@gmail.com
on 6 Dec 2012 at 8:30
I don't think such tutorial can be short )))
I haven't noticed you're doing it on N66U... sorry.
So, it won't work with modules from other kernel anyway.
Let me think a little if I can help you here ;)
Original comment by d...@soulblader.com
on 6 Dec 2012 at 9:13
Ok, I'm not sure this will work, but you can try:
# wget -q http://dl.dropbox.com/u/44733876/test/videodev_rt-n66u.sh -O- | cat >
/opt/etc/webcam/videomod.sh
# wget -P /opt/tmp
http://dl.dropbox.com/u/44733876/test/kmods_video_rt-n66u_2.6.22.19.tar.gz
# cd /
# tar -zxf /opt/tmp/kmods_video_rt-n66u_2.6.22.19.tar.gz
Than try to do:
# /opt/etc/webcam/videomod.sh load
# lsmod
You should see uvcvideo in list of modules.
See:
# dmesg
to see if your webcam is identified as "UVC Video Device"
So, if you can see this, then try to start app:
# /opt/sbin/mjpg-streamer -i "/opt/etc/webcam/input_uvc.so -d /dev/video0" -o
"/opt/etc/webcam/output_http.so -p 9999 -w /opt/etc/webcam/www"
This should start mjpg-streamer in foreground. If it works, then
/opt/etc/init.d/S99webcam start should also start I suppose...
Original comment by d...@soulblader.com
on 7 Dec 2012 at 10:11
You are amazing, it's working perfectly...
Thank you!!!
Original comment by Livi...@gmail.com
on 7 Dec 2012 at 1:44
Really?! )) I haven't expected... )) I'm glad, but notice if you upgrade your
firmware, which is built with another kernel version, these modules need to be
replaced.
Original comment by d...@soulblader.com
on 7 Dec 2012 at 3:13
Maybe I will learn with your help how to update modules until new kernel will
be released :)
I found another issue, after I type "/opt/etc/init.d/S99webcam start" the
camera led is always on, it's not entering standby if not streaming in web
browser.
Original comment by Livi...@gmail.com
on 7 Dec 2012 at 3:31
[deleted comment]
Yes, it is. The application is written this way. You can turn off camera led.
Edit /opt/etc/ihit.d/S99webcam and uncommect #led=off option. You can also set
username and password to access web server there...
BTW, I think in your case it is better to include moduled in firmware built.
And maybe include mjpg-streamer. I guess flash size on N66U allows it
Original comment by d...@soulblader.com
on 7 Dec 2012 at 3:48
The led is still on after I uncomment #led=off but it's not such a big deal.
Tried playing with mjpg-stream control settings page but all responses are -1,
look at the screenshot http://i49.tinypic.com/24x4b2h.png
The RT-N66U has 32mb flash size and should be enough but including
mjpg-streamer in firmware is beyond me, far far away :)
THX
Original comment by Livi...@gmail.com
on 7 Dec 2012 at 4:18
About the led and controls, I guess is something driver related
admin@(none):/tmp/mnt/sda1/asusware/sbin# /opt/sbin/mjpg_streamer -i
"/opt/etc/webcam/input_uvc.so -d /dev/video
0" -o "/opt/etc/webcam/output_http.so -p 9999 -w /opt/etc/webcam/www"
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 device or address
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
Original comment by Livi...@gmail.com
on 8 Dec 2012 at 6:49
I think this option can be used only for Logitech webcams...
Original comment by d...@soulblader.com
on 9 Dec 2012 at 5:18
It is a Logitech C270 webcam
Original comment by Livi...@gmail.com
on 9 Dec 2012 at 5:28
I guess you had forgot to load video modules before executing that command.
Try:
# /opt/etc/webcam/videomod.sh load
# /opt/sbin/mjpg_streamer -i "/opt/etc/webcam/input_uvc.so -d /dev/video
0 -l off" -o "/opt/etc/webcam/output_http.so -p 9999 -w /opt/etc/webcam/www"
and let me see the output then.
Original comment by d...@soulblader.com
on 9 Dec 2012 at 6:35
Yes, you was right, I didn't loaded videomod.sh
admin@(none):/tmp/home/root# /opt/sbin/mjpg_streamer -i "/opt/etc/webcam/input_u
vc.so -d /dev/video0 -l off" -o "/opt/etc/webcam/output_http.so -p 9999 -w /opt/
etc/webcam/www"
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
o: www-folder-path...: /opt/etc/webcam/www/
o: HTTP TCP port.....: 9999
o: username:password.: disabled
o: commands..........: enabled
But the led still don't turning off
Original comment by Livi...@gmail.com
on 11 Dec 2012 at 12:05
Hello!
I would very appriciate if someone would tell me if there is support (linux
driver)for canyon cnr-wcam713g webcam? I'm trying to connect it over my asus
router (rt-n16) but without any success - mjpg_streamer is not starting.
Original comment by mjetulj...@gmail.com
on 3 Jun 2013 at 7:57
Hi, witch are the steps to compile modules?
Thanks
Original comment by Livi...@gmail.com
on 17 Sep 2014 at 2:00
Which kernel release?
Original comment by d...@soulblader.com
on 17 Sep 2014 at 4:26
2.6.22.19
Original comment by Livi...@gmail.com
on 17 Sep 2014 at 4:44
I'll try to explain the common method you can do it.
1. Download fw source code and extract it.
2. Read instructions (files read.me, README and so on)
3. Build a toolchain
4. find folder which contains Linux kernel and cd to it
5. run: make menuconfig
6. choose modules you need (as modules - "M", probably uvcvideo will be
enough). Save end exit from ncurses interface.
7. Now you need to find the main Makefile and read it. In common files with
kernel config are already exist and copied from some path when you run 'make'.
You need to find such file for your device and edit/replace it with .config
from Linux kernel folder.
8. view for make options such as make kernel or something like that (or just
run make). Wait...
Look for modules in romfs/lib/modules/2.6.22.19/kernel/...
Original comment by d...@soulblader.com
on 18 Sep 2014 at 9:17
Witch fw source code, RT-N56U?
I asked because all was ok with your modules on RT-AC66U and RT-N66U but after
some changes after firmware 374.43 regarding kernel witch is the same
2.6.22.19, router will crash when starting mjpg-streamer.
Thanx
Original comment by Livi...@gmail.com
on 10 Oct 2014 at 7:29
Hello,
I'd like to use an USB webcam with my stock RT-N65U router. After I read
through the wiki, I'm still confused, how to do so.
What would be the steps to make it work?
Thanks in advance,
Denes
Original comment by muc.den...@gmail.com
on 12 Nov 2014 at 9:23
Capture images from WEB-camera connected to the router`s USB-port
1. Setting up Entware
2. Verify that WEB-camera is on the list of supported devices (otherwise the
camera may don`t work with your router).
3. Connect your camera to router.
4. Connect to the router through Telnet/SSH
5. Run in console:
# modprobe uvcvideo
Before you continue, make sure that there was a video device / dev/video0. To
check, you can run:
# ls /dev/video*
If the result will be "No such file or directory", it means that the camera is
not supported by the driver uvcvideo.
6. Install the package motion.
# opkg update
# opkg install motion
7. Edit the file /opt/etc/motion.conf. It contains a lot of parameters, the
most important are:
stream_localhost (on/off) - must be set to *off* to be able to get access to
the video stream from the local network
stream_port (integer) - port of stream, the default is 8081
output_pictures (on/off) - is need to save snapshots
target_dir (путь) - directory to store all snapshots; you must specify an
existing folder on disk. For example, if you specify /media/AiDisk_a1, files
will be stored in the root of the first drive connected to the USB.
8. Edit the file /etc/storage/started_script.sh, append the following line
modprobe uvcvideo
Run in console:
# mtd_storage.sh save
Now the camera will be initialized when you start / restart the router
9. Reboot the router or run in console:
# /opt/etc/init.d/S99motion start
10. Go to camera`s page
WARNING! When you change the settings in the file /opt/etc/motion.conf you must restart the service of camera`s stream management (or restart the router) to apply the new values:
# /opt/etc/init.d/S99motion restart
Original comment by Livi...@gmail.com
on 12 Nov 2014 at 9:57
To set up Entware do I need a custom firmware or will it work with the stock?
Original comment by muc.den...@gmail.com
on 12 Nov 2014 at 12:06
Only on custom
Original comment by Livi...@gmail.com
on 12 Nov 2014 at 12:08
Thanks for the quick answer.
Original comment by muc.den...@gmail.com
on 12 Nov 2014 at 12:50
to muc.den.87:
Check the following link - http://www.ideasonboard.org/uvc/ and ensure your
webcam supports uvcvideo. (I'm not sure it is updated)
Anyway, please do step #5 described by Liviu24, and let me know if the device
/dev/video* exists. If there is no such device please show the output of:
# dmesg | tail
Original comment by d...@soulblader.com
on 12 Nov 2014 at 6:11
Well to be honest, the router is not mine, but my flatmate's. So I don't plan
to mess with his router, I was just wondering, whether using Entware an USB
webcam would work with the stock firmware or not. According to your answers
this solution is a dead end for me.
Original comment by muc.den...@gmail.com
on 13 Nov 2014 at 11:00
=)
Original comment by serge...@gmail.com
on 13 Nov 2014 at 9:16
I managed to compile modules for arm router rt-ac56u but after loading modules
I get errors in dmesg
videodev: Unknown symbol v4l_compat_translate_ioctl (err 0)
v4l2_common: Unknown symbol v4l2_ctrl_get_menu (err 0)
v4l2_common: Unknown symbol v4l2_ctrl_fill (err 0)
uvcvideo: Unknown symbol v4l_compat_translate_ioctl (err 0)
uvcvideo: Unknown symbol video_devdata (err 0)
uvcvideo: Unknown symbol v4l_printk_ioctl (err 0)
uvcvideo: Unknown symbol video_unregister_device (err 0)
uvcvideo: Unknown symbol video_device_alloc (err 0)
uvcvideo: Unknown symbol video_register_device (err 0)
uvcvideo: Unknown symbol video_usercopy (err 0)
uvcvideo: Unknown symbol video_device_release (err 0)
with lsmod I get only
input_core 21561 0
v4l2_int_device 2055 0
Compiled kernel is the same as in router
:(((((
Original comment by Livi...@gmail.com
on 6 Jan 2015 at 4:57
> Unknown symbol
This means you need to insert dependent module before this one. You should
probably insert videodev before uvcvideo (and so on...)
Original comment by d...@soulblader.com
on 9 Jan 2015 at 8:30
Try this order, but first ensure that file exists:
cd modules_path/`uname -r`/kernel/drivers
insmod media/video/videodev.ko
insmod media/video/v4l2-common.ko
insmod media/video/videobuf-core.ko
insmod media/video/videobuf-vmalloc.ko
insmod input/input-core.ko
insmod media/video/uvc/uvcvideo.ko
Original comment by d...@soulblader.com
on 9 Jan 2015 at 9:08
Thank you very much, I found the correct order:
input/input-core.ko
media/video/v4l1-compat.ko
media/video/videodev.ko
media/video/v4l2-int-device.ko
media/video/v4l2-common.ko
media/video/uvc/uvcvideo.ko
:)
Original comment by Livi...@gmail.com
on 9 Jan 2015 at 9:11
Original issue reported on code.google.com by
sasho...@gmail.com
on 31 Jan 2012 at 2:23