From owner-freebsd-questions@freebsd.org Mon Jul 20 10:08:18 2020 Return-Path: Delivered-To: freebsd-questions@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 DE9D035800C for ; Mon, 20 Jul 2020 10:08:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B9HVT4RQKz3Vdq for ; Mon, 20 Jul 2020 10:08:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.222.26.105]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPA (Nemesis) id 1Mlvr3-1kfq5m3h8V-00iyWw; Mon, 20 Jul 2020 12:08:14 +0200 Date: Mon, 20 Jul 2020 12:08:13 +0200 From: Polytropon To: "Russell L. Carter" Cc: freebsd-questions@freebsd.org Subject: Re: forwarding audio from a (bhyve) vm Message-Id: <20200720120813.4b020a5b.freebsd@edvax.de> In-Reply-To: <295d43ec-b5dc-2899-5d22-fb0b5d8ff5cb@pinyon.org> References: <295d43ec-b5dc-2899-5d22-fb0b5d8ff5cb@pinyon.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:W/AGUcOgoDjrO8pBiZPVU0Xk9i6/ZxodiVLf5xbZqHe35zuqKSN GuVRZLnBpxv7Au7S/1HI8kyprK3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ShSIrh4Dx/rQ2fPylT WoLa5WxlJcWEZBjOLTHNm2eiNWur3jlYkrYsgfyMRhWpXK6IeZDs3tQOoP59np X-Rspamd-Queue-Id: 4B9HVT4RQKz3Vdq X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.24) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [3.24 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_SHORT(-0.27)[-0.267]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[94.222.26.105:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.52)[0.525]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.59)[0.587]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[212.227.17.24:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.17.24:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2020 10:08:18 -0000 On Sun, 19 Jul 2020 19:10:09 -0700, Russell L. Carter wrote: > I have unifi-video up and running in a debian 9 bhyve vm. What's the > current best practice for forwarding the audio from the bhyve vm? I'd > like to be able to listen to the camera audio anywhere in my very > heterogeneous OS network. My main desktop is FreeBSD, so that's what > I mainly need. Is that possible? Do the *vnc's do sound? >=20 > What's the most efficient method? Maybe you can achieve this using virtual networking? There are solutions that use UDP for audio streaming (called "Seren"), or tunneling pulseaudio (if you're using it), or use XRDP with its pulseaudio plugin. Regarding the VNC solutions: The last time I tried, audio didn't get transmitted, it could only be heared locally. However, you cah check if this has changed. A suggestion from the thread "Allowing remote java app to access local sound system" from July 2020 with further annotations: On Wed, 1 Jul 2020 08:43:45 -0400, Aryeh Friedman wrote: > I have a (java) app that works fine on a remote host and displays it's GUI > by setting the DISPLAY environment variable. The app also requires a > working microphone (and other audio output devices). Is there any way to > make it use the microphone/audio output on my local machine? Note I > suspect I would need to do this transparently to Java. I am pretty sure > Java has no idea how to do this on its own. In the past, I had a similar question, titled "Audio for SSH and VNC" in October 2019. Maybe the following answers provide some inspiration? On Thu, 17 Oct 2019 00:10:00 -0400, Derek Schrock wrote: > On Wed, Oct 16, 2019 at 10:44:50PM EDT, Polytropon wrote: > > In order to extend the classic "remote desktop" concept > > in FreeBSD - here: SSH in combination with tigervnc-server > > and ssvnc-gui -, what is a good way to also transmit audio? > > For example, if you start a video player or a web browser > > with video and audio content, you can _see_ it on your remote > > system, while the audio is playing on the distant server. > > Is there an easy way to also get the audio to the remote > > system where it can be _heared_? > >=20 > >=20 > I've done this before via tunneling puslseaudio over ssh. > However, it would be easier to just use xrdp via net/xrdp > and audio/pulseaudio-module-xrdp. On Thu, 17 Oct 2019 13:18:00 +0100, Dave B via freebsd-questions wrote: > Look up a program called Seren. >=20 > The sources build just fine on modern Linux's, and possibly FreeBSD, > though I've not tried the latter. >=20 > =A0=A0=A0 http://holdenc.altervista.org/seren/=A0=A0 It's a non GUI tool,= running > in a command line terminal, so very low CPU usage.=A0 >=20 > (Pulse is good, but not exactly low impact.) >=20 > Seren was I think intended for gamers, many to many etc, but works point > to point just fine, and with very good quality audio. >=20 > It streams via UDP, as such wont travel over SSH, but OpenVPN works > well, if you only want one connection, else Seren can handle its own > encryption for the audio traffic.=A0 Though how "secure" that is, I don't > know.=A0 I move off default ports and hide "somewhere else" up in the > high-port space. >=20 > There is a simple text messaging facility too. >=20 > No affiliation, just a very happy user for remote ham radio needs. --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...