wow... I'm able to see video via VLC player, BUT, image is blinking with "artefacts" (part of image is colored red\grin\black\blue) and refresh is slow... _________________ TP-Link TL-WR1043ND: DD-WRT v24-sp2 (08/07/10) std - build 14896
Asus RT-N16: DD-WRT build 19545 (kingmod)
AlexHighTower
Try this mix of modules. uvcvideo newest one which I could compile, others from here
modules from this url for 2.6.24 core, but 2.6.111 is needed...
anyway, all modeules was sucessfully loadede except
uvcvideo.ko, it failed with errors:
Quote:
uvcvideo: Unknown symbol input_allocate_device
uvcvideo: Unknown symbol input_unregister_device
uvcvideo: Unknown symbol input_free_device
uvcvideo: Unknown symbol input_register_device
uvcvideo: Unknown symbol input_event
you are right! I forgot to call insmod input-core.ko, my fault
now it works fine!
camera detection output is changed a little bit
Quote:
Linux video capture interface: v2.00
uvcvideo: Found UVC 1.00 device VF0410 Live! Cam Video IM Pro (041e:4063)
input: VF0410 Live! Cam Video IM Pro as /class/input/input0
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
and old version of mjpg_streamer also changed, now there are no errors...
problem with color artefacts is solved by increasing frames per second value...
I call it like this:
MJPG Streamer Version: svn rev: exported
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 30
i: Format............: YUV
i: JPEG Quality......: 50
Adding control for Pan (relative)
Adding control for Tilt (relative)
Adding control for Pan Reset
Adding control for Tilt Reset
Adding control for Pan/tilt Reset
Adding control for Focus (absolute)
mapping control for Pan (relative)
mapping control for Tilt (relative)
mapping control for Pan Reset
mapping control for Tilt Reset
mapping control for Pan/tilt Reset
mapping control for Focus (absolute)
mapping control for LED1 Mode
mapping control for LED1 Frequency
mapping control for Disable video processing
mapping control for Raw bits per pixel
o: www-folder-path...: disabled
o: HTTP TCP port.....: 8090
o: username:password.: disabled
o: commands..........: enabled
but led is on all the time... this is not a big problem...
I'm glad to help you. Can you test another versions of mjpeg-streamer for speed?
for me all this versions works similar... the same time delay and image quality...
can you recommend software like motion to start recording if smth changed in front of camera and stops if nothings happens? _________________ TP-Link TL-WR1043ND: DD-WRT v24-sp2 (08/07/10) std - build 14896
Asus RT-N16: DD-WRT build 19545 (kingmod)
Linux video capture interface: v2.00
uvcvideo: found UVC 1.00 device A4 Tech Usb2.0 PC Camera J (0ac8:c40a)
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v.0.1.0)
ioctl(VIDIOCGMBUF) - Error device does not support memory map
V4L capturing using read is deprecated!
Motion only supports mmap.
Could not fetch initial image from camera
Tell me, please, this is a program bug or i have an incompatible usbcam? Thanks
P.S. Update. I find motion 3.2.11.1 and have no errors with my motion.conf
Posted: Wed Aug 01, 2012 7:43 Post subject: Webcam
Hi!
I've managed to get it working on RT-N16 (king kong mod 18050M) with Logitech webcam C120, uClibc from Optware the right way and uvcvideo modules from the posts above.
Here is the list of video streaming programs that work for me (thx 2 buggles for the links):
mjpg-streamer from here
palantir from here
motion from here
Unfortunately OpenWrt motion package compiled with --without-ffmpeg flag, so you can't record video, only bunch of jpeg images, which IMHO is not really convenient. I will try to recompile motion with possibility to record video to see if it works.
BTW, is there anyone succeeded with setting up motion+ffmpeg?
Another thing I noticed, my camera is capable of streaming in MJPEG mode directly (jpeg encoding is done by camera processor), but when I switched to that mode in mjpg-streamer (remove --yuv and --quality options) I get lot of artifacts in the picture.
I would prefer running MJPEG mode since YUV on 640x480 is giving high load on router CPU (~ 80-90%). Anyone get similar behavior?
Posted: Sun Dec 09, 2012 4:47 Post subject: webcam
Hi all, I need some help to get my motion/webcam to work. TIA.
So I downloaded the drivers buggles compiled: v4l2-common.ko, v4l1-compat.ko, compat_ioctl32.ko, videodev.ko, input-core.ko, uvcvideo.ko, and insmod them in that order.
lsmod shows:
Module Size Used by Not tainted
uvcvideo 49152 0 - Live 0x80a10000
input_core 20480 2 uvcvideo, Live 0x82cc8000
videodev 24576 1 uvcvideo, Live 0x82f60000
compat_ioctl32 480 1 uvcvideo, Live 0x825fa000
v4l1_compat 12288 2 uvcvideo,videodev, Live 0x82e14000
v4l2_common 16384 2 uvcvideo,videodev, Live 0x81828000
dmesg shows:
Linux video capture interface: v2.00
uvcvideo: Found UVC 1.00 device <unnamed> (046d:0804)
input: UVC Camera (046d:0804) as /class/input/input0
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
And in /dev/v4l, there is a file video0.
Next I installed motion (version 3.2.12) and started it by typing motion -n, and it complains about not support memory map and keeps retrying repeatedly:
[0] Processing thread 0 - config file /opt/etc/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3356160 LIBAVFORMAT_BUILD 3411200
[0] Thread 1 is from /opt/etc/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map
[1] V4L capturing using read is deprecated!
[1] Motion only supports mmap.
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[1] Retrying until successful connection with camera
[1] ioctl(VIDIOCGMBUF) - Error device does not support memory map
....
So I followed buggles' instruction and dowloaded/installed v4l2convert.so (It actually installed in /jffs/usr/lib...). Now when I typed LD_PRELOAD=/jffs/usr/lib/libv4l/v4l2convert.so motion -n, it shows the following and hung:
[0] Processing thread 0 - config file /tmp/root/motion.conf
Apparently it was looking for the conf file in the directory you typed the command. So I cd to the directory where motion.conf resides and type the command again, and here is what I got:
[0] Processing thread 0 - config file /opt/etc/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3356160 LIBAVFORMAT_BUILD 3411200
[0] Thread 1 is from /opt/etc/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Using VIDEO_PALETTE_YUV420P palette
[1] Using V4L1
[1] Resizing pre_capture buffer to 1 items
Segmentation fault
I got stuck here. Don't know what to do next. I would really appreciate it if somebody can point me a direction. Thanks again!
By the way, the camera is a logitech camera, and my dd-wrt firmware version is v24-sp2 (08/07/10) mega - build 14896.