Page 1 of 1

multicast stream live audio from Linux

Posted: 28 Feb 2009 18:22
by jalles
Ubuntu 8.10, VLC 0.9.8a, Pulseaudio/JACK/studio all just installed.

What is the best way to multicast to Windows Media Player on LAN? I prefer VLC (it works great on WInXP/Directshow). But I have not found how to pickup live audio feed from soundcard input and get it into VLC on a smaller Linux box. (CDs/files work).

any suggestions?

thanks,

.ja.

Re: multicast stream live audio from Linux

Posted: 28 Feb 2009 18:56
by Rémi Denis-Courmont
On a local LAN, you should have far enough bandwidth to stream plain PCM as RTP/audio/L16. Both PulseAudio and VLC can send/receive those streams.

Re: multicast stream live audio from Linux

Posted: 28 Feb 2009 19:26
by jalles
yeah, that is what I am doing w/ pulseaudio now (notwithstanding the bugs).

I would rather be using VLC, is there a method to get live audio into it on a linux box?

I thought I want users to access the stream with Windows media player, but VLMa might just take care of that.

Jim

Re: multicast stream live audio from Linux

Posted: 28 Feb 2009 20:57
by Rémi Denis-Courmont
PulseAudio might work better if you need to resample. Otherwise, with VLC, that would be:

vlc ... --sout '#transcode{acodec=s16b}:rtp{dst=239.255.1.1,port-audio=5004,sap,name="My stream"}' --no-sout-video

On the receiver:

vlc rtp://@239.255.1.1:5004

Re: multicast stream live audio from Linux

Posted: 02 Mar 2009 04:23
by jalles
Ok, I'll try my hand at parsing that...

Streamout with a transcode to audio codec s16b (PCM) to an RTP multicast group 239.255.1.1, on port 5004 with an SAP announcement, so that 'My Stream' can be chosen from the playlist, while suppressing the video stream (it is now on by default).

My original question is:

How can I use live audio in VLC - a microphone (or something) plugged into my sound card, on a Linux box with Ubuntu 8.10 and PulseAudio.

On a windows box, I just select DirectShow, no problem.

not so simple in Linux?

Jim

Re: multicast stream live audio from Linux

Posted: 02 Mar 2009 19:13
by Rémi Denis-Courmont
JACK or ALSA inputs.

Re: multicast stream live audio from Linux

Posted: 02 Mar 2009 23:22
by jalles
Sorry, I now see that this is the wrong Forum for this thread. Sorry for the confusion - I have moved it.

.ja.