From owner-freebsd-multimedia@freebsd.org Mon Apr 6 13:52:13 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 1CCC32B0C40 for ; Mon, 6 Apr 2020 13:52:13 +0000 (UTC) (envelope-from marcelbonnet@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 48wsRJ5jw3z45fP for ; Mon, 6 Apr 2020 13:52:12 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id C42D92B0C3F; Mon, 6 Apr 2020 13:52:12 +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 C3E332B0C3E for ; Mon, 6 Apr 2020 13:52:12 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 48wsRH58H7z45f1 for ; Mon, 6 Apr 2020 13:52:11 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: by mail-wm1-x336.google.com with SMTP id y20so4004788wma.4 for ; Mon, 06 Apr 2020 06:52:11 -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=IoeGPcgkry332XVloLtbXCZpH3wpE4rtalQ3NGM0YYY=; b=dTmYq7D+xQbhZvyGNDch3mekt1uqRdQPyQ0y4/yg4RUUmDgsxMgpj3jKIGWdQi4gKh lArH0I5PFmjTTs4auKYQwvu0i87R4nNjttQwAEZ9hFPM6k5d11P/zf2fNxRMZ3C6ZawE SJnouNeqSRkYMtCa6qd50VHwf6cgmldwRfduUhpD7rX4VbX0lGlriArH0/+nB8M8n8Tm G4urYIS56wavX61wLMFhKX3POa5qsP24vJqy3yRmT5frsBjKW5+BnLfWepAVH7W/CbxE SGDQupofXmKHy72jxUWNgPNq7mIMVqgkoM1tEyQcRAjvpOrkZezV1Ru1Ra9hyXXK5uhh Iy8Q== 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=IoeGPcgkry332XVloLtbXCZpH3wpE4rtalQ3NGM0YYY=; b=aL1P6mI/qXfeh8pvWKke7pqWdxwhIGJAl1aNVYfLVJZS3uxj7SUM7MwoAOnO3c6hse tSfNdXEl0WY751MWDBJAtMprBeKiVjzu1rdrGBT+fQIEJbdUdi5ix2AT+Q7Vlbtu7/DJ W7m/lXJSitOQi0rD+ORVxt9DQUD6wMDXrTGCdPesZrYR92vO0bc2Uw9dMBxTQCth6nl0 WGYGLGGRuY5SDWPTv9fmZwsvGh2morFD+0d88muEsCrACtGxt2mnWIvN7ivl1A/gjFCU rE/cnbAOrX6iGEPtrc5vyiW1XarYgPXIpNLp7D2HUkrOxKj8wv3TCeT+nnHrSCXOgpig pOFQ== X-Gm-Message-State: AGi0Pubzwf6EmZsgJpptNoMHuaJRjGlwZ4lZscsNXTlDUuvBUxZT5g1G thqhhWoSgHSHbOM2KY3VFF+FYXfIHpeb+MVGYLk= X-Google-Smtp-Source: APiQypK4RWVHZRuaZ6Lizw0z6XLhD86bCnKExe2VgxSCLaIUXyjOupv8tpx4aePcYcZWptkx0pHcaSfJGw9Lne3OSaU= X-Received: by 2002:a1c:4c15:: with SMTP id z21mr4672403wmf.83.1586181130104; Mon, 06 Apr 2020 06:52:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marcel Bonnet Date: Mon, 6 Apr 2020 10:51:54 -0300 Message-ID: Subject: Re: no audio with simplescreenrecorder To: Kevin Oberman Cc: Hans Petter Selasky , multimedia@freebsd.org X-Rspamd-Queue-Id: 48wsRH58H7z45f1 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=dTmYq7D+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marcelbonnet@gmail.com designates 2a00:1450:4864:20::336 as permitted sender) smtp.mailfrom=marcelbonnet@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.39), ipnet: 2a00:1450::/32(-2.36), 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:2a00:1450::/32, country:US]; 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)[6.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.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 13:52:13 -0000 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. -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > > > On Fri, Apr 3, 2020 at 6:55 PM Kevin Oberman wrote: > > > On Fri, Apr 3, 2020 at 1:15 PM Hans Petter Selasky > > wrote: > > > >> On 2020-04-03 19:29, Kevin Oberman wrote: > >> > I am attempting to capture screen video with > >> > multimedia/simplescreenrecorder and can't seem to record the audio. > >> Video > >> > is fine, but the audio silent. I have tried oth Pulse and ALSA to find > >> only > >> > silence. > >> > > >> > My system is an old ThinkPad T520 with Conexant CX20590 HDA audio. > >> > > >> > I select "Record audio" and, for ALSA, OSS. For Pulse, I select > >> /dev/dsp0. > >> > > >> > Anyone have this working? Any clues appreciated! > >> > >> What is the output from mixer? > >> > >> Did you select the correct recording source? > >> > >> --HPS > > > > > > Bingo! Well, sort of. I had "mic" as my record device and changes it to > > the only other option, "monitor. Now I get sound, but I am getting both > the > > audio from the web site and from the microphone. I set the mic gain to > 0:0, > > but I still hear the sounds in the room. I'm just guessing that my audio > > device setup is wrong. > > > > I have the following mixer setup: > > > mixer > > Mixer vol is currently set to 100:100 > > Mixer pcm is currently set to 100:100 > > Mixer speaker is currently set to 100:100 > > Mixer mic is currently set to 0:0 > > Mixer rec is currently set to 1:1 > > Mixer monitor is currently set to 75:75 > > Recording source: monitor > > > > I've tried tweaking various settings, but I can't avoid picking up room > > sounds. I would also like to record without thee speakers playing, but l > > found no way to turn off the speakers and still get audio. Makes me > wonder > > whether the audio I was recording was picked up by the mic from the > > speakers. > > > > and the following sound card setup: > > # Setup headphones > > # Out : speaker + headphones > > hint.hdac.0.cad0.nid25.config="as=1 seq=15" > > # In : mic + external mic > > hint.hdac.0.cad0.nid35.config="as=2" > > hint.hdac.0.cad0.nid27.config="as=2 seq=15" > > > > I'm going to play with the "mic + external mic" setup though I did this > > years ago and I think I had help. > > -- > > Kevin Oberman, Part time kid herder and retired Network Engineer > > E-mail: rkoberman@gmail.com > > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > > > > > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to " > freebsd-multimedia-unsubscribe@freebsd.org" > -- Marcel Bonnet