From owner-freebsd-multimedia@FreeBSD.ORG Fri Sep 16 04:50:30 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0AA0106564A for ; Fri, 16 Sep 2011 04:50:30 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from relay2.tomsk.ru (relay2.tomsk.ru [212.73.124.8]) by mx1.freebsd.org (Postfix) with ESMTP id 189D28FC14 for ; Fri, 16 Sep 2011 04:50:29 +0000 (UTC) X-Virus-Scanned: by clamd daemon 0.93.1 for FreeBSD at relay2.tomsk.ru Received: from admin.sibptus.tomsk.ru (account sudakov@sibptus.tomsk.ru [212.73.125.240] verified) by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.13) with ESMTPSA id 20427670 for freebsd-multimedia@freebsd.org; Fri, 16 Sep 2011 11:50:28 +0700 Received: from admin.sibptus.tomsk.ru (sudakov@localhost [127.0.0.1]) by admin.sibptus.tomsk.ru (8.14.3/8.14.3) with ESMTP id p8G4oSs0095198 for ; Fri, 16 Sep 2011 11:50:28 +0700 (OMSST) (envelope-from vas@mpeks.tomsk.su) Received: (from sudakov@localhost) by admin.sibptus.tomsk.ru (8.14.3/8.14.3/Submit) id p8G4oSPJ095197 for freebsd-multimedia@freebsd.org; Fri, 16 Sep 2011 11:50:28 +0700 (OMSST) (envelope-from vas@mpeks.tomsk.su) X-Authentication-Warning: admin.sibptus.tomsk.ru: sudakov set sender to vas@mpeks.tomsk.su using -f Date: Fri, 16 Sep 2011 11:50:27 +0700 From: Victor Sudakov To: freebsd-multimedia@freebsd.org Message-ID: <20110916045027.GA95062@admin.sibptus.tomsk.ru> References: <20110912074323.GA81311@admin.sibptus.tomsk.ru> <20110913193919.GQ3098@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110913193919.GQ3098@funkthat.com> User-Agent: Mutt/1.4.2.3i Organization: AO "Svyaztransneft", SibPTUS X-PGP-Key: http://www.livejournal.com/pubkey.bml?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 Subject: Re: /dev/dsp to RTP X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2011 04:50:30 -0000 John-Mark Gurney wrote: > > Excuse me for asking in this developers' list, but I have tried > > freebsd-questions and Google without much success. > > > > What software can I use to obtain sound from /dev/dsp and multicast it > > into the network? I need no sophisticated codecs, HTTP interfaces etc. > > A plain 8-bit PCM sound that I could listen to with some multicast RTP > > client like VLC would do. > > > > Thanks in advance for any input. > > You could look at rat: > http://mediatools.cs.ucl.ac.uk/nets/mmedia/wiki/RatWiki#RobustAudioToolRAT > > It does contain a GUI though. It's be quite a few years since I used > it though... I remember once using mbone/vic, and there were also mbone/vat and mbone/rat, but the whole mbone directory is now gone from the ports tree. I cannot find rat in the ports tree any more. > > Other possibilities are ffmpeg or vlcserver. Multicasting with ffmpeg works fine. The command line ffmpeg -i file.mp3 -acodec copy -f rtp rtp://239.8.8.8:5000 -re does send a multicast stream which can be listened to with VLC (but not mplayer for some reason) on multiple hosts. Now I need to figure out how to stream live sound from /dev/dsp. All my attemps to record sound from a USB audio interface, as simple as ffmpeg -f oss -i /dev/dsp1 out.wav have resulted so far in a severely distorted growl instead of normal voice. Do you know how to figure out the sampling rate and other parameters of the sound card? "cat /dev/sndstat" does not output anything really useful. The audio interface is not to blame because I use it all the time with linphone for SIP calls. -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru