UVC webcam not working... (yuv video or ehci driver problem)

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
$p00ky
Posts: 5
Joined: Thu Jan 14, 2010 8:05 am

UVC webcam not working... (yuv video or ehci driver problem)

Post by $p00ky »

Dear community,

I just bought a UVC-compatible webcam as I thought it will work without any problem on OpenWrt with uvc_streamer...
But... but... it doesn't work...

The problem is as follows:

Code: Select all

root@OpenWrt:/tmp# uvc_streamer 
Using V4L2 device: /dev/video0
Resolution.......: 640 x 480
frames per second: 5
TCP port.........: 8080
Unable to set format: 22.
 Init v4L2 failed !! exit fatal 
init_VideoIn failed
Not really good...
I also tried mjpg_streamer, same problem:

Code: Select all

root@OpenWrt:/tmp# 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
Unable to set format: Invalid argument
 Init v4L2 failed !! exit fatal 
 i: init_VideoIn failed
I finally tried to take a picture with spcacat, and it doesn't work neither:

Code: Select all

root@OpenWrt:/tmp# spcacat 
 Spcaview version: 1.1.8 date: 25:12:2007 (C) mxhaard@magic.fr 
video /dev/video0 
Camera found: CMS-V28SET 
VIDIOCGPICT brightnes=32125 hue=32768 color=63897 contrast=13107 whiteness=43690depth=16 palette=8
Hmm did not support Video_channel
StreamId: 8  Camera
try palette 21 depth 8
Couldnt set palette first try 21 
Damned second try fail 
try palette 15 depth 12
Couldnt set palette first try 15 
Damned second try fail 
try palette 4 depth 24
Couldnt set palette first try 4 
Damned second try fail 
try palette 3 depth 16
Couldnt set palette first try 3 
Damned second try fail 
try palette 5 depth 32
Couldnt set palette first try 5 
Damned second try fail 
probe size in 
Available Resolutions width 640  heigth 480 
Available Resolutions width 384  heigth 288 
Available Resolutions width 352  heigth 288 
Available Resolutions width 320  heigth 240 
Available Resolutions width 192  heigth 144 
Available Resolutions width 176  heigth 144 
Available Resolutions width 160  heigth 120 
Invalid palette in check palette fatal !! 
 Format asked 15 check -1
Couldnt set videopict params with VIDIOCSPICT
I made some researches online, and found 2 hints:
1. a problem of YUV video
But cannot specify the YUV format in uvc_streamer...
I wish I could install uvccapture in OpenWrt (coz we can call 'uvccapture -f yuv'), but I didn't find this package for Kamikaze.
Any idea about YUV webcams?

2. a problem with the ehci driver (kmod-usb2)
Found in this OpenWrt ticket: https://lists.openwrt.org/pipermail/ope ... 11051.html
It seems to be working if we comment the one and only line "ehci-usb" of the file "/etc/modules.d/50-usb2" provided by the package "kmod-usb2".
The problem is that, contrary to the example on this ticket, if I comment this line, nothing happen when I plug/unplug the webcam.
It doesn't mount it anymore on /dev/video0 so I cannot test it.

Any idea for my webcam problem?

$p00ky
Posts: 5
Joined: Thu Jan 14, 2010 8:05 am

Re: UVC webcam not working... (yuv video or ehci driver problem)

Post by $p00ky »

UVC webcams should be working, right? What am I doing wrong?

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: UVC webcam not working... (yuv video or ehci driver problem)

Post by DoesItMatter »

Please don't think we're ignoring you.

I don't think I've ever seen anyone mention this type of usage
on Gargoyle... ever.

You may have MUCH better luck on the OpenWRT forums.

Remember, Gargoyle is primarily a front end for the OpenWRT base.

Eric has made his own fixes and changes, but its primarily got
an OpenWRT base, so when you're adding your own stuff,
OpenWRT is probably the best to get this type of help.

Also, you have MUCH more chance of someone there trying
something similar, or at least knowing what you're talking about ;)
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

$p00ky
Posts: 5
Joined: Thu Jan 14, 2010 8:05 am

Re: UVC webcam not working... (yuv video or ehci driver problem)

Post by $p00ky »

I see, that's right.
Thanks anyway.

Post Reply