From owner-freebsd-multimedia@freebsd.org Mon Apr 6 16:47:33 2020 Return-Path: Delivered-To: freebsd-multimedia@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 0A55C2B52FA for ; Mon, 6 Apr 2020 16:47:33 +0000 (UTC) (envelope-from kob6558@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 48wxKc5LyJz4HpR for ; Mon, 6 Apr 2020 16:47:32 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id B5B9A2B52F9; Mon, 6 Apr 2020 16:47:32 +0000 (UTC) Delivered-To: multimedia@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 B57DC2B52F8 for ; Mon, 6 Apr 2020 16:47:32 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 48wxKb4cnjz4HpQ for ; Mon, 6 Apr 2020 16:47:31 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-oi1-x22a.google.com with SMTP id d3so13710077oic.1 for ; Mon, 06 Apr 2020 09:47:31 -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; bh=qwzGNRzmLq2YIf1W4B+iuU1yP0MlTecp3SjjrkkUE+E=; b=sxw0JQmgNYT2Y8VHr11MJ6J981B279o3GAEpoEvnNMVYTcweXQkeheBArDeVPLgpdN UuCfqrHXcDDr1yYPR8mO4j9Uo4JEkQs/J9bBljaDkDZvr9V6pHRCwSXE6k41ra/hxPRt 24CG8Ii46fTN0+vk0Ps27YtSpEBodrT8oGDJfJQ+GXJz/uyX5ECbowTirMCafdEgWITT G3AauajgiSvYuCItz73fWuqPYkiTNu6cRH6FvBZThkb+TH6DKSmZjFgGIfyGYzFUDvRW recSwRRNHr+j7yE7yogX+HtZC/D3XNKP7xB1MhV5m1k3v1a4XWWg8lvN8mJXHuvNyczI RKhQ== 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; bh=qwzGNRzmLq2YIf1W4B+iuU1yP0MlTecp3SjjrkkUE+E=; b=q/3XYs3WP3OZ9oN/XYlKTxx3uXlmBB0peew4mJCMj4i22PnMP8XdABlMwwyysSKtDd Klb8k1y15/0QwdlqzybTGHNyI8SbPX++IkJtrj11JtEaPKaikpkOe1njVJj9vFZD9h5Q IyxGXF2W9QRih6jnvHJZ2B9GmQ1VHy7Wio2fXJo9vArQtaZuPcC/AKE88lXmQjwc7nWM OkSgxZCo/I4UZwoZ3wcETXRcIJg5uScDh8O/eW4F5q0Pcdsnsrn5mW4QJlqFTLUSMx78 s4bEjcTmrUC+0QBKa+lDRLN+D5DTsBxz3of6xMo1IDDDtjBVMXmlxY2itRPfATE4bMVN 0r+Q== X-Gm-Message-State: AGi0PuYlhUmgCWOFINjJoKMjZv0fIjFFPRLlnzSGmkNQks0LqVwfKebl nqgGifdu1oUAx8OOkPzN818uyGomVUhAnboBTl8= X-Google-Smtp-Source: APiQypJrHP5O35q4MQFIbaxUUww70OkW82m7l/My+PEJXgikiky5cl3eSCyjPhNRnd+uoAJYPJHdeOs5aZe1O1R47Vg= X-Received: by 2002:aca:dd55:: with SMTP id u82mr41804oig.27.1586191650202; Mon, 06 Apr 2020 09:47:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kevin Oberman Date: Mon, 6 Apr 2020 09:47:13 -0700 Message-ID: Subject: Re: no audio with simplescreenrecorder To: Marcel Bonnet Cc: Hans Petter Selasky , multimedia@freebsd.org X-Rspamd-Queue-Id: 48wxKb4cnjz4HpQ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sxw0JQmg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::22a as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; FREEMAIL_TO(0.00)[gmail.com]; IP_SCORE(0.00)[ip: (-7.41), ipnet: 2607:f8b0::/32(-0.33), asn: 15169(-0.43), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[multimedia@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Apr 2020 16:47:33 -0000 On Mon, Apr 6, 2020 at 6:52 AM Marcel Bonnet wrote: > > > On Sat, 4 Apr 2020 at 21:35, Kevin Oberman wrote: > >> I have confirmed that neither "mic" nor "monitor" seem to record except by >> picking up sound via the microphone. That mic gain is set to 0:0 makes no >> difference really bothers me. Not sure exactly what "monitor" is, but it >> seems to not work. I guess I need to read a bunch of documentation on >> snd_hda and sound. Oh, I did remove the mic items from boot/loader.conf >> and >> rebooted, but it made no difference.Also tried ALSA without luck,either. >> >> Tobias, I'm averse to trying ffmpeg, but I really want to only record the >> video window and not the entire screen and I don't know of a way to do >> this >> with ffmpeg. >> > > You can try something like this: > Set the recording source, mine is monitor: > $ mixer recsrc=monitor > Recording source: monitor > > Take a look at /dev/sndstat and sysct hw.snd.default_unit , to set the > right ones for capture and playback. > > $ ffmpeg -loglevel error -f oss -i /dev/dsp0.0 -video_size 800x600 > -framerate 25 -f x11grab -i :0.0+60,120 /tmp/test.mpg > > 0.0 is display.screen number of your X11 server, same as the DISPLAY > environment variable. 60 is the x-offset and 120 the y-offset for > the > grabbing. > > Not too simple, but you are able to grab only the window area you need. > Thanks. As to getting simplescreenrecorder working, as the output of mixer(1) two messages up shows, my recording device was monitor. I had looked as sndstat and hw.snd.default_unit. I suspect that my lack of familiarity with PulseAudio may be at the heart of my problem. As usual, OSS and ffmpeg work fine, just not so easy to select the exact portion of the screen to record. (Tobias suggested a very similar ffmpeg command shortly after I posted my initial query.) So I've given up on simplescreenrecorder for now, at least until I can figure out PulseAudio. Until then, I guess ffmpeg will have to do the job. Thanks again to all for trying to help. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683