Modify

Opened 7 years ago

Last modified 6 years ago

#9715 new defect

usb camera problem

Reported by: luvar@… Owned by: developers
Priority: normal Milestone: Bugs Paradise
Component: kernel Version: Trunk
Keywords: Cc: luvar@…

Description

I have installed latest (bleeding edge, r27340) firmware ti TP-MR3220 and I have tried to "opkg install mjpg-streamer". No luck. In /etc/opkg.conf is just snapshot repository where are just some packages. I have added this line to it src/gz packages http://downloads.openwrt.org/backfire/10.03/ar71xx/packages/ and installation has worked fine. There was no dependency to kmod-video-core which I have installed too.

Problem is that after setting all things up (I am using C270 logitech camera which is supported by v4l2), no video, nor snahpshot from camera can be retrieved. I have tried these urls: http://192.168.1.1:8080/?action=snapshot and http://192.168.1.1:8080/?action=stream. Snapshot url give me 0 bytes. Stream url give me 22 bytes ("--boundarydonotcross") and that is all.

I have also tried to install http://downloads.openwrt.org/kamikaze/8.09.2/ar71xx/packages/mjpg-streamer_r68-2_mips.ipk . Same result. Problem will be probably elsewhere. Same mjpg-streamer setting when used on my desktop is working fine.

PS: I have tried also to get some image from camera to prove that camera is working but with no luck (see #9713).

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by luvar@…

dmesg output:

root@OpenWrt:~# dmesg | tail -n 3
usb 1-1: new high speed USB device number 3 using ar71xx-ehci
uvcvideo: Found UVC 1.00 device <unnamed> (046d:0825)
input: UVC Camera (046d:0825) as /devices/platform/ar71xx-ehci/usb1/1-1/1-1:1.0/input/input2

installing and running mjpg-streamer from cmdline:

root@OpenWrt:~# opkg install mjpg-streamer
Installing mjpg-streamer (r84-2) to root...
Downloading http://downloads.openwrt.org/backfire/10.03/ar71xx/packages//mjpg-streamer_r84-2_ar71xx.ipk.
Configuring mjpg-streamer.
root@OpenWrt:~# mjpg_streamer 
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...: disabled
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled

comment:2 Changed 7 years ago by luvar@…

After a litle bit of flashing fw up and down I have again r27340 installed and running mjpg streamer now gives me some other output:

root@OpenWrt:~# mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 2" -o "output_http.so"
MJPG Streamer Version: svn rev: exported
 i: Using V4L2 device.: /dev/video0
 i: Desired Resolution: 640 x 480
 i: Frames Per Second.: 2
 i: Format............: MJPEG
Adding control for Pan (relative)
Control exists: File exists
Adding control for Tilt (relative)
Control exists: File exists
Adding control for Pan Reset
Control exists: File exists
Adding control for Tilt Reset
Control exists: File exists
Adding control for Pan/tilt Reset
Control exists: File exists
Adding control for Focus (absolute)
Control exists: File exists
mapping control for Pan (relative)
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for Tilt (relative)
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for Pan Reset
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for Tilt Reset
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for Pan/tilt Reset
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for Focus (absolute)
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for LED1 Mode
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for LED1 Frequency
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for Disable video processing
UVCIOC_CTRL_MAP - Error: No such file or directory
mapping control for Raw bits per pixel
UVCIOC_CTRL_MAP - Error: No such file or directory
 o: www-folder-path...: disabled
 o: HTTP TCP port.....: 8080
 o: username:password.: disabled
 o: commands..........: enabled

This output is comparable with output of mjpg streamer from my desktop PC. Still I am not able to get picture through http.

PS: Flashing new fw through ssh is easy. Try to find mtd with some nice head head -c 30 /dev/mtd* and than write new fw to it by running: mtd -r write openwrt-ar71xx-generic-tl-mr3220-v1-squashfs-factory.bin /dev/mtd4. Sometimes it is mtd4, sometimes mtd3. Head should be similar to head of new firmware (some text and version of fw).

comment:3 Changed 6 years ago by anonymous

You are likely to be suffering from the removal of V4L1 as documented in #9896.
The work around documented there will likely help you.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.