From owner-freebsd-chromium@freebsd.org Fri Aug 9 04:26:46 2019 Return-Path: Delivered-To: freebsd-chromium@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5D9CCBC798 for ; Fri, 9 Aug 2019 04:26:46 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 464XJ563j9z42cd for ; Fri, 9 Aug 2019 04:26:45 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id CE2B0BC797; Fri, 9 Aug 2019 04:26:45 +0000 (UTC) Delivered-To: chromium@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CDEEBBC796 for ; Fri, 9 Aug 2019 04:26:45 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 464XJ557Y9z42cc; Fri, 9 Aug 2019 04:26:45 +0000 (UTC) (envelope-from chardon.frederic@gmail.com) Received: by mail-qt1-x843.google.com with SMTP id d23so94657466qto.2; Thu, 08 Aug 2019 21:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=S+lk3xY3Lzv3QcZeGJNvODgn8F6PvhBla46l5N/My5Y=; b=tbBboeeV5AfRANSIMveBnv9y/X+FKDaWPqaZfd/OECo0E2YmVCYO7SFggNVPWv7Wx3 6i2J3dwa90ipeav0WoV+g04V4TOZ2tDi0TT1BrM3wb5UzwW01NUKSeqbObpG/Vbbp5rg JnVSnRPX9/j5XZoeBiOXop7xmtIe0+w1hfwmL+GPLjvysv/7ffrxorcEX4n3596jUZF4 Y/AV58e5s8Z/aORoW/1wb4jEGnEQNOu4gkDjjrBZQBLNEDSkLTQ+dgPcbYyruPe8BixT D+K3RHI+PVgCmiWePNsGY/ABny37bRbf2dlwC8fLwFe9tjpHwKEGKW3PEf9vH/hZ+u/l Hsxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=S+lk3xY3Lzv3QcZeGJNvODgn8F6PvhBla46l5N/My5Y=; b=py+v3V+gOigCBPejdWnR1NQDtoA7JN72j4OLtCKbWxPPalxkSdle53lz0EXKyIaxhK I9Lkuc3McnVDPH7sXN61LC3aManiG2tGlxRzdW1VAK0YokdRvSMuCyfkgMEfqewiGiKQ suCpfNyhXH5k8redQSLB/S7V0GYQ6GbMzZhVH9iGkdl7L44fmkTppkGhCNIXewvzfU9Z ceG8FRbGZBQjigxuZKc5i78Tdz1QS/e0XoK49XPQSH9OSmeOCyffD2NPezoakTlKtvke sPoF7dOgIeQ7/Ucm48c2yS6VtzA68AdYA2BhXF1wPmBOFMRpvZac0Mv5mh4ZnGw9JmM6 SL/g== X-Gm-Message-State: APjAAAXjDZPmX8wL1iXhyzkP+xe74bAZf//GQje7jSggProWDlYQdEU9 Exy7J0POC0MOrnvbIVOiJEqF/133XX3SJxH2omGVUyzliTM= X-Google-Smtp-Source: APXvYqwMDSyq/c2FFKHF5VXcmOhwKtXSYGrsO1HJk3odNoPwzaDO7Y8QYCLws4oKMFT50uFcxEW1qUWqqc45ySPeGcM= X-Received: by 2002:ac8:355d:: with SMTP id z29mr16427241qtb.366.1565324804556; Thu, 08 Aug 2019 21:26:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Frederic Chardon Date: Fri, 9 Aug 2019 06:26:32 +0200 Message-ID: Subject: Re: No webcam in chrome (works in firefox) To: Jan Beich Cc: chromium@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 464XJ557Y9z42cc X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.989,0]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Aug 2019 04:26:46 -0000 Le jeu. 8 ao=C3=BBt 2019 =C3=A0 20:36, Jan Beich a =C3= =A9crit : > > (redirecting to a better list) > > Frederic Chardon writes: > > > Hi > > > > I can't make chrome to recognize my webcam. webcamd is running, pwcview= , > > firefox or mpv all works > > Ports are at revision 507476 and base at 350255 (amd64). > > > > There is no camera listed in chrome://media-internals and typing > > "navigator.mediaDevices.getUserMedia({video:true});" in the javascript > > console throw a NotFoundError. > > > > ktrace shows that open() succeed > > 83513 chrome CALL openat(AT_FDCWD,0x81812d101,0) > > 83513 chrome NAMI "/dev/video0" > > 83513 chrome RET openat 159/0x9f > > 83513 chrome CALL ioctl(0x9f,0x40685600,0x7fffde9f2aa8) > > 0x40685600 is probably VIDIOC_QUERYCAP, used by Chromium in a number of p= laces. > https://cs.chromium.org/search/?q=3DVIDIOC_QUERYCAP > > Firefox also uses VIDIOC_QUERYCAP but doesn't seem to check capabilities. > https://searchfox.org/mozilla-central/search?q=3DVIDIOC_QUERYCAP > > > 83513 chrome RET ioctl 0 > > 83513 chrome CALL close(0x9f) > > 83513 chrome RET close 0 > > > > So this is rather not a permission issue (and anyway, the other program= s > > all work) > > Can you show output from the following? I don't have a camera, so no > clue which capabilities Chromium wants. > > $ cat a.c > #include > #include > #include > > int main(void) > { > int fd; > if ((fd =3D open("/dev/video0", O_RDWR)) =3D=3D -1) > err(1, "failed to open /dev/video0"); > > struct v4l2_capability cap =3D {}; > if (ioctl(fd, VIDIOC_QUERYCAP, &cap) =3D=3D -1) > err(1, "VIDIOC_QUERYCAP failed"); > > warnx("/dev/video0 capabilities: %#x", cap.capabilities); > if (!(cap.capabilities & V4L2_CAP_VIDEO_CAPTURE)) > warnx("V4L2_CAP_VIDEO_CAPTURE is missing"); > if (cap.capabilities & V4L2_CAP_VIDEO_OUTPUT) > warnx("V4L2_CAP_VIDEO_OUTPUT is present, not allowed for delegati= on"); > if (!(cap.capabilities & V4L2_CAP_STREAMING)) > warnx("V4L2_CAP_STREAMING is missing"); > if (!(cap.capabilities & V4L2_CAP_VIDEO_M2M_MPLANE)) > warnx("V4L2_CAP_VIDEO_M2M_MPLANE is missing, required for streami= ng"); > > return 0; > } > > $ pkg install v4l_compat > $ cc a.c -isystem/usr/local/include > $ ./a.out > a.out: /dev/video0 capabilities: 0x84a00001 a.out: V4L2_CAP_VIDEO_M2M_MPLANE is missing, required for streaming > > > Is it a known issue? Or am I missing something? > > Thanks > > Did previous www/chromium major versions work fine? No idea, I only recently (~2 weeks) started needing a webcam. Thanks!