From owner-freebsd-questions@freebsd.org Sat Jul 14 22:40:37 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A6681040F7E for ; Sat, 14 Jul 2018 22:40:37 +0000 (UTC) (envelope-from starikarp@yandex.com) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A106A8C21A for ; Sat, 14 Jul 2018 22:40:36 +0000 (UTC) (envelope-from starikarp@yandex.com) Received: from mxback11g.mail.yandex.net (mxback11g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:90]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 59437430524F for ; Sun, 15 Jul 2018 01:40:33 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback11g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id kreHr5lFQm-eXt0kXS7; Sun, 15 Jul 2018 01:40:33 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1531608033; bh=WF1w2HGOTMMpjFU8jFhx7+gWnfl1O4oba0vDd4qXX3I=; h=Date:From:To:Subject:Message-ID; b=lsdlXdM48tlO6b/6B62JUQQGzLG+psVT5pHTFS/OHu8hvYU8WWNlEWjEXsc70k6rU NzHsA+EYyH41yKj5pOvvqPqJEKlVusZ5Hg52vzOSiTEOpolPIj7e7mTjEAG3w7dikh rIDAnaxktl7eGoxx+zzvY080R1LPPOxMvrrMYKGs= Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id HN6WOcQTaA-eW6ux15t; Sun, 15 Jul 2018 01:40:32 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1531608032; bh=WF1w2HGOTMMpjFU8jFhx7+gWnfl1O4oba0vDd4qXX3I=; h=Date:From:To:Subject:Message-ID; b=gSua7xM7koaMu5G3ksyPcJ9fc0bP7EVcTaWgGPaEnrXLMn3k95iL+l2d9+P68bcqh A1uz0QpqbmZtCQXV5doXRPprSdidRABRnmA6Hgy6Y0uadME80c2u59Be1Eavay11Re c/1cppmPyDK9gk9RYM+6dZlxPygyGtQMS9iBQ7c4= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.com Date: Sat, 14 Jul 2018 18:40:29 -0400 From: Ajtim To: FreeBSD Questions Subject: webcamd Message-ID: <20180714184029.3231e83e@yandex.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd11.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jul 2018 22:40:37 -0000 Hi! My system is FreeBSD 11.2-RELEASE (amd64) and it is installed on iMac 11,1 which has a built-in iSight video camera. It worked and it works after todays update too. After update I have video0 and video1 and both work the same. But my problem is sound in mpv player. I start with mpv tv://v42: device=/dev/video0 [tv] Selected driver: v4l2 [tv] name: Video 4 Linux 2 input [tv] your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead. [tv] Selected device: Built-in iSight: Built-in iSigh [tv] Capabilities: video capture read/write streaming [tv] supported norms: [tv] inputs: 0 = Camera 1; [tv] Current input: 0 [tv] Current format: YUYV [tv] tv.c: norm_from_string(pal): Bogus norm parameter, setting default. [tv] ioctl enum norm failed: Invalid argument [tv] Error: Cannot set norm! [tv] Selected input hasn't got a tuner! [tv] ioctl set mute failed: Invalid argument (+) Video --vid=1 (rawvideo 640x480 30.000fps) VO: [gpu] 640x480 yuv420p I had the same problem with sound on VLC player. But if I use: mencoder tv:// -tvdriver=v4l2:width=420:height=340:device=/dev/video0:forceaudio:adevice=/dev/dsp1 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avimencoder tv:// -tv driver=v4l2:width=420:height=340:device=/dev/video0:forceaudio:adevice=/dev/dsp1 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam2.avidevice=/dev/video0:forceaudio:adevice=/dev/dsp1 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi It save webcam.avi with sound. Any idea how to get sound on mpv player, please? Thank you. SK