From owner-freebsd-multimedia@FreeBSD.ORG Wed Jun 1 09:51:37 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18757106566B for ; Wed, 1 Jun 2011 09:51:37 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6458FC0A for ; Wed, 1 Jun 2011 09:51:36 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=EsGlCpMeIw85Gy1IHWHJoTo3ieATU4tNmYze/bSqBec= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=kOF5xjNvmo0A:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=40v8T4QmYal1XzwwhB0A:9 a=r79zS4To2w1ML6J3UA0A:7 a=wPNLvfGTeEIA:10 a=Xv5cUFrF10ebKQYy:21 a=8jmnGtO21HbL9AGI:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 134410862; Wed, 01 Jun 2011 11:51:34 +0200 From: Hans Petter Selasky To: Boris Samorodov Date: Wed, 1 Jun 2011 11:50:13 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201105240020.49377.hselasky@c2i.net> <201105311932.38205.hselasky@c2i.net> <45215846@bb.ipt.ru> In-Reply-To: <45215846@bb.ipt.ru> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq,NwSZ4V" =?iso-8859-1?q?=7CLR=2E+tj=7Dg5=0A=09=25V?=,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( =?iso-8859-1?q?=0A=09=3AAuzV9=3A=2EhESm-x4h240C=609=3Dw?= MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106011150.13316.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: Pre-release of webcamd [v0.2.4] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2011 09:51:37 -0000 On Wednesday 01 June 2011 11:41:13 Boris Samorodov wrote: > Running: > ----- > % pwcview > Webcam set to: 320x240 (sif) at 5 fps # OK (shaky, but it's 5 fps) > % pwcview -f 30 > Webcam set to: 320x240 (sif) at 30 fps # shaky video, (5 fps?) > % pwcview -s vga > Webcam set to: 640x480 (vga) at 5 fps # seems to use 30 fps > % pwcview -s vga -f 5 > Webcam set to: 640x480 (vga) at 5 fps # seems to use 30 fps > ----- > > Thanks! Hi, The shakyness I think can be fixed by increasing the buffer size used by UVC video driver, it is currently very small, only 2*7ms: Index: patches/uvcvideo.h.diff =================================================================== --- patches/uvcvideo.h.diff (revision 1788) +++ patches/uvcvideo.h.diff (working copy) @@ -8,7 +8,7 @@ +#define UVC_URBS 2 /* Maximum number of packets per URB. */ -#define UVC_MAX_PACKETS 32 -+#define UVC_MAX_PACKETS 56 ++#define UVC_MAX_PACKETS (8*16) /* ms/8 for HighSpeed */ /* Maximum number of video buffers. */ #define UVC_MAX_VIDEO_BUFFERS 32 /* Maximum status buffer size in bytes of interrupt URB. */ This value should be dynamic depending on various factors like device speed and endpoint configuration. I have found any time yet to make the change. --HPS