From owner-freebsd-questions@freebsd.org Sun Jul 15 15:46:08 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 692C71043E8F for ; Sun, 15 Jul 2018 15:46:08 +0000 (UTC) (envelope-from starikarp@yandex.com) Received: from forward104j.mail.yandex.net (forward104j.mail.yandex.net [IPv6:2a02:6b8:0:801:2::107]) (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 EE2E68C62A for ; Sun, 15 Jul 2018 15:46:07 +0000 (UTC) (envelope-from starikarp@yandex.com) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward104j.mail.yandex.net (Yandex) with ESMTP id 910D641F13 for ; Sun, 15 Jul 2018 18:45:56 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1Wg7U3vPpW-juIW6L5g; Sun, 15 Jul 2018 18:45:56 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1531669556; bh=lQp9jiUvqpEGq4pQhuSwc2YsVho52moK81Bwtc628xg=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References; b=aS4Af8pH7QKqBcWSqO5sHz7pa3hGCF3muBq0EvC8Ntiq/rs/pMZlYaeZ5Or7TDupF yJ7MmiK5IMq9HvenUsGLT35cY3PyIOapC02RrqleqZyFRWj6MlKWpp+vVqvybLru3R 0gEX3bMM5akZy4BzLqCLH9jywpLf+qpZoeE0AjgI= Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id JcMWsKdS0E-jtkKmh3D; Sun, 15 Jul 2018 18:45:55 +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=1531669555; bh=lQp9jiUvqpEGq4pQhuSwc2YsVho52moK81Bwtc628xg=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References; b=UY9kF1NPn2SunvXU8r5EbzD/T6uZBnVZcogRq4+RhANg0mVjTRb2GWCdX611Xsjen sMbQo/S/ZQJpbq6wil3Njtch6byd1xmzFHll1MThKUbpR+kzN6iZBC4m96Alk9vi5D Bdc5GV+RTJqtguoq6eCN1566p2cbxHs3OCbzXlis= Authentication-Results: smtp1j.mail.yandex.net; dkim=pass header.i=@yandex.com Date: Sun, 15 Jul 2018 11:45:52 -0400 From: Ajtim To: FreeBSD Questions Subject: Re: webcamd Message-ID: <20180715114552.113158bc@yandex.com> In-Reply-To: <20180714184029.3231e83e@yandex.com> References: <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: Sun, 15 Jul 2018 15:46:08 -0000 On Sat, 14 Jul 2018 18:40:29 -0400 Ajtim wrote: > 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 I have something more. With ffmpeg I got sound: ffmpeg -f v4l2 -video_size 640x480 -i /dev/video0 -f sndio -i default -c:v libx264 -preset ultrafast -c:a aac webcam.mp But if I use oss than doesn't work. Or I am doing something wrong.