From owner-freebsd-multimedia@freebsd.org Tue Oct 3 08:03:30 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69752E345A6 for ; Tue, 3 Oct 2017 08:03:30 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 105A7699CC for ; Tue, 3 Oct 2017 08:03:29 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CE608260342; Tue, 3 Oct 2017 10:03:17 +0200 (CEST) Subject: Re: video using webcamd on Raspberry Pi 3 To: Curtis Villamizar , freebsd-multimedia@freebsd.org References: <20170930021251.CA4232606DD@mail.turbocat.net> <70f306cd-cc6b-7eaf-7146-bbc6cf0f8567@orleans.occnc.com> <07d55c94-e4f3-61c0-1582-85dc74724c2e@selasky.org> From: Hans Petter Selasky Message-ID: <23bc6bc5-d255-4e9b-ab46-aa712cfe6673@selasky.org> Date: Tue, 3 Oct 2017 10:00:37 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2017 08:03:30 -0000 On 09/30/17 22:49, Curtis Villamizar wrote: > On 09/30/17 14:11, Hans Petter Selasky wrote: >> lsusb -v > > The output is 740 lines long.  Here are the bDescriptorSubtype lines: > >         bDescriptorSubtype      1 (HEADER) >         bDescriptorSubtype      3 (OUTPUT_TERMINAL) >         bDescriptorSubtype      6 (EXTENSION_UNIT) >         bDescriptorSubtype      2 (INPUT_TERMINAL) >         bDescriptorSubtype      5 (PROCESSING_UNIT) >         bDescriptorSubtype                  1 (INPUT_HEADER) >         bDescriptorSubtype                  6 (FORMAT_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bDescriptorSubtype                  3 (STILL_IMAGE_FRAME) >         bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bDescriptorSubtype                  3 (STILL_IMAGE_FRAME) >         bDescriptorSubtype                 13 (COLORFORMAT) >         bDescriptorSubtype      1 (HEADER) >         bDescriptorSubtype      2 (INPUT_TERMINAL) >         bDescriptorSubtype      6 (FEATURE_UNIT) >         bDescriptorSubtype      3 (OUTPUT_TERMINAL) >         bDescriptorSubtype      1 (AS_GENERAL) >         bDescriptorSubtype      2 (FORMAT_TYPE) >           bDescriptorSubtype      1 (EP_GENERAL) > > The format is MJPEG or raw. > > For the resolution of 320x240 we have: > >       VideoStreaming Interface Descriptor: >         bLength                            30 >         bDescriptorType                    36 >         bDescriptorSubtype                  7 (FRAME_MJPEG) >         bFrameIndex                         4 >         bmCapabilities                   0x00 >           Still image unsupported >         wWidth                            320 >         wHeight                           240 >         dwMinBitRate                 37005360 >         dwMaxBitRate                 37005360 >         dwMaxVideoFrameBufferSize      154189 >         dwDefaultFrameInterval         333333 >         bFrameIntervalType                  1 >         dwFrameInterval( 0)            333333 > >       VideoStreaming Interface Descriptor: >         bLength                            30 >         bDescriptorType                    36 >         bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED) >         bFrameIndex                         4 >         bmCapabilities                   0x00 >           Still image unsupported >         wWidth                            320 >         wHeight                           240 >         dwMinBitRate                 36864000 >         dwMaxBitRate                 36864000 >         dwMaxVideoFrameBufferSize      153600 >         dwDefaultFrameInterval         333333 >         bFrameIntervalType                  1 >         dwFrameInterval( 0)            333333 > > This still doesn't work with 160x120 and 5 fps so probably not a CPU > issue, but I could be wrong.  OTOH I just got a kernel panic while > running 160x120.  It doesn't seem related based on where it was. I'm > running that again and no panic so far but also nothing on the screen > even after quite a few minutes. > Hi, Can you check dmesg if there are any errors? Can you further check "top" for CPU usage. --HPS