Re: Need an audio multicasting solution

2011-09-19 Thread Victor Sudakov
RW wrote:
 
   You can use videolan / vlc. It allows you to multicast video too.
   In September 2011 BSD Magazine you have some examples about that.
  
  I like vlc on Linux/Windows machines. But installing it to a streaming
  server is a pain. Even if you disable all options in make config, it
  still tries to build scores of dependencies including some components
  of the X Window system. Not nice.
 
 did you try setting  WITH_SERVER_ONLY?

Actually, setting WITH_SERVER_ONLY only sets 4 options

WITHOUT_LUA=yes
WITHOUT_QT4=yes
WITH_RUNROOT=yes
WITHOUT_XCB=yes

which I have set anyway. The number of dependencies is still
appalling.

In fact, I have found a solution with ffmpeg, the example command
lines are:

ffmpeg -i file.mp3 -acodec copy -f rtp rtp://239.8.8.8:5000 -re
ffmpeg -f oss -i /dev/dsp -acodec mp2 -f rtp rtp://239.8.8.8:5000 -re

ffmpeg should be compiled WITH_LAME. Multicast stream playback has
been tested with vlc (Windows XP, Fedora Linux) and mplayer (FreeBSD 8).

In more detail in Russian:
http://victor-sudakov.dreamwidth.org/68437.html
http://victor-sudakov.dreamwidth.org/68975.html
http://victor-sudakov.dreamwidth.org/69243.html


-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-16 Thread RW
On Fri, 16 Sep 2011 10:57:04 +0700
Victor Sudakov wrote:

  You can use videolan / vlc. It allows you to multicast video too.
  In September 2011 BSD Magazine you have some examples about that.
 
 I like vlc on Linux/Windows machines. But installing it to a streaming
 server is a pain. Even if you disable all options in make config, it
 still tries to build scores of dependencies including some components
 of the X Window system. Not nice.

did you try setting  WITH_SERVER_ONLY?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-15 Thread Victor Sudakov
Alejandro Imass wrote:
 
 
  A quick look at Icecast showed that it does not support multicast either.
  It this true? If so, Icecast is completely useless for my scenario.
 
 
 AFAIK very few media streamers (or none) actually support real IPv4
 (Class D) Multicast. They support what is known as application
 multicast akin to a multi-process/multi-threaded Web server.
 
 I don't know much about real IPv4 Multicast but I've heard it's not
 that easy to do in the real world and would probably require
 coordination with your ISP unless you're multicasting in a private
 networks.

I use multicasting in a corporate network.

 Again, IMHO because I've never even attempted multicasting.

It's fun and very pleasing aesthetically :) At least on Cisco.

As to the original question. I have had some success with
multimedia/ffmpeg, at least this:

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 have resulted so
far in a severely distorted growl instead of normal voice. Does
anybody know how to figure out the sampling rate and other parameters
of the sound card? cat /dev/sndstat  does not output anything really
useful.

 
 Why do you need multicasting anyway?

To save bandwidth mostly, and it's fun to setup :). Taking into
account that I have PIM working across all our WAN links (an in-house
monitoring/alarm system relies thereupon), it would be nice to use
this infrastructure for sound too.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-15 Thread Victor Sudakov
Eduardo Morras wrote:
 
 I need a solution to read sound from a soundcard (/dev/dsp) and
 multicast it into the network, for the multicast audio stream to be
 played on FreeBSD, Linux and Windows workstations. No sophisticated
 codecs needed, plain PCM would do.
 
 Can you advise something? I know that in theory there are many ways to
 implement this, but I am especially interested in personal first-hand
 experience, success stories or good white papers. Please no
 lmgtfu-type replies. Thanks very much in advance.
 
 You can use videolan / vlc. It allows you to multicast video too. In 
 September 2011 BSD Magazine you have some examples about that.

I like vlc on Linux/Windows machines. But installing it to a streaming
server is a pain. Even if you disable all options in make config, it
still tries to build scores of dependencies including some components
of the X Window system. Not nice.

Now I am experimenting with ffmpeg (with ffserver and without) with
moderate success.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-13 Thread Eduardo Morras

At 08:21 09/09/2011, Victor Sudakov wrote:

Colleagues,

I need a solution to read sound from a soundcard (/dev/dsp) and
multicast it into the network, for the multicast audio stream to be
played on FreeBSD, Linux and Windows workstations. No sophisticated
codecs needed, plain PCM would do.

Can you advise something? I know that in theory there are many ways to
implement this, but I am especially interested in personal first-hand
experience, success stories or good white papers. Please no
lmgtfu-type replies. Thanks very much in advance.


You can use videolan / vlc. It allows you to multicast video too. In 
September 2011 BSD Magazine you have some examples about that.



HTH 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-13 Thread Alejandro Imass
On Sun, Sep 11, 2011 at 1:14 PM, Victor Sudakov v...@mpeks.tomsk.su wrote:
 Alejandro Imass wrote:
 
  I need a solution to read sound from a soundcard (/dev/dsp) and

[...]

 Alejandro, correct me if I am wrong but AFAIK Icecast works with mp3

Yep, actually ogg Vorbis and Theora basically and also MP3 ano other
over shoutcast, AFAIK,

 files. Can it really read audio from /dev/dsp? I don't need mp3, I

Icecast needs a source client to feed the stream. I use Internet DJ
on a separate machine to feed to the Icecast server and distribute
from there to almost any player.

[...]

-- 
Alejandro
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-13 Thread Alejandro Imass
On Mon, Sep 12, 2011 at 1:57 AM, Victor Sudakov v...@mpeks.tomsk.su wrote:

[...]


 A quick look at Icecast showed that it does not support multicast either.
 It this true? If so, Icecast is completely useless for my scenario.


AFAIK very few media streamers (or none) actually support real IPv4
(Class D) Multicast. They support what is known as application
multicast akin to a multi-process/multi-threaded Web server.

I don't know much about real IPv4 Multicast but I've heard it's not
that easy to do in the real world and would probably require
coordination with your ISP unless you're multicasting in a private
networks.
Again, IMHO because I've never even attempted multicasting.

Why do you need multicasting anyway?

-- 
Alejandro Imass
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-12 Thread Michael Cardell Widerkrantz
Victor Sudakov v...@mpeks.tomsk.su, 2011-09-09 08:21 (+0200):

 I need a solution to read sound from a soundcard (/dev/dsp) and
 multicast it into the network, for the multicast audio stream to be
 played on FreeBSD, Linux and Windows workstations. 

Does the old LBL vat tool still work on modern system?

  http://ee.lbl.gov/vat/

I haven't used it for 15 years or so but it worked back then.

Also, the Robust Audio Tool (rat) might still work. Seems to need work
to get it running on FreeBSD according to their website but it used to
work on FreeBSD. Again, it was over ten years ago I used this. It seems
to live here nowadays:

  http://mediatools.cs.ucl.ac.uk/nets/mmedia/wiki/RatWiki#RobustAudioToolRAT

Quotes:

  RAT require no special features for point-to-point communication, just
  a network connection and a soundcard. For multiparty conferencing RAT
  uses IP multicast and therefore all participants must reside on a
  multicast capable network.

  ...

  RAT is a cross platform tool which is now available for Linux and
  WinXP. In the past it was also maintained for use a variety of
  operating systems including: FreeBSD, HP-UX, IRIX, NetBSD, Solaris,
  SunOS, and Windows 95/NT. Users are welcome to test and contribute
  code for any of these other OSes. Please let us know or contribute to
  the wiki.

-- 
http://hack.org/mc/
Use plain text e-mail, please. HTML messages silently dropped.
OpenPGP welcome, 0xE4C92FA5.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-11 Thread Victor Sudakov
Alejandro Imass wrote:
 
  I need a solution to read sound from a soundcard (/dev/dsp) and
  multicast it into the network, for the multicast audio stream to be
  played on FreeBSD, Linux and Windows workstations. No sophisticated
  codecs needed, plain PCM would do.
 
  Can you advise something? I know that in theory there are many ways to
  implement this, but I am especially interested in personal first-hand
  experience, success stories or good white papers. Please no
  lmgtfu-type replies. Thanks very much in advance.
 
 
 I doubt people in this list are the lmgtfu type!
 
 I use Icecast on FBSD and it works great.

Alejandro, correct me if I am wrong but AFAIK Icecast works with mp3
files. Can it really read audio from /dev/dsp? I don't need mp3, I
would prefer to multicast simple PCM data. Even 8 bit PCM (64 Kbit/s)
would do.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-11 Thread Victor Sudakov
Alejandro Imass wrote:
 
  I need a solution to read sound from a soundcard (/dev/dsp) and
  multicast it into the network, for the multicast audio stream to be
  played on FreeBSD, Linux and Windows workstations. No sophisticated
  codecs needed, plain PCM would do.
 
  Can you advise something? I know that in theory there are many ways to
  implement this, but I am especially interested in personal first-hand
  experience, success stories or good white papers. Please no
  lmgtfu-type replies. Thanks very much in advance.
 
 
 I doubt people in this list are the lmgtfu type!
 
 I use Icecast on FBSD and it works great.

A quick look at Icecast showed that it does not support multicast either. 
It this true? If so, Icecast is completely useless for my scenario.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Need an audio multicasting solution

2011-09-09 Thread Victor Sudakov
Colleagues,

I need a solution to read sound from a soundcard (/dev/dsp) and
multicast it into the network, for the multicast audio stream to be
played on FreeBSD, Linux and Windows workstations. No sophisticated
codecs needed, plain PCM would do.

Can you advise something? I know that in theory there are many ways to
implement this, but I am especially interested in personal first-hand
experience, success stories or good white papers. Please no
lmgtfu-type replies. Thanks very much in advance.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Need an audio multicasting solution

2011-09-09 Thread Alejandro Imass
On Fri, Sep 9, 2011 at 2:21 AM, Victor Sudakov v...@mpeks.tomsk.su wrote:
 Colleagues,

 I need a solution to read sound from a soundcard (/dev/dsp) and
 multicast it into the network, for the multicast audio stream to be
 played on FreeBSD, Linux and Windows workstations. No sophisticated
 codecs needed, plain PCM would do.

 Can you advise something? I know that in theory there are many ways to
 implement this, but I am especially interested in personal first-hand
 experience, success stories or good white papers. Please no
 lmgtfu-type replies. Thanks very much in advance.


I doubt people in this list are the lmgtfu type!

I use Icecast on FBSD and it works great.

For the client though we use Ubuntu with idjc and Jack.

Probably Jack works well on FBSD
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/audio/jack_mixer/) and
you could run everything on a single node, but from my experience with
Jack on Linux, it probably ain't gonna be easy.

Nevertheless, the _usual_ way is having your *cast daemon on a server
with ample bandwidth and the client(s) is separate node.

For us, the Icecast FBSD server + idjc/Jack on Linux is a great
combination but YMMV.

Regards,

-- 
Alejandro Imass


 --
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
 sip:suda...@sibptus.tomsk.ru
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org