multicast stream live audio from Linux

About encoding, codec settings, muxers and filter usage
jalles
Blank Cone
Blank Cone
Posts: 23
Joined: 28 Feb 2009 15:23

multicast stream live audio from Linux

Postby jalles » 28 Feb 2009 18:22

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: multicast stream live audio from Linux

Postby Rémi Denis-Courmont » 28 Feb 2009 18:56

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jalles
Blank Cone
Blank Cone
Posts: 23
Joined: 28 Feb 2009 15:23

Re: multicast stream live audio from Linux

Postby jalles » 28 Feb 2009 19:26

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: multicast stream live audio from Linux

Postby Rémi Denis-Courmont » 28 Feb 2009 20:57

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
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jalles
Blank Cone
Blank Cone
Posts: 23
Joined: 28 Feb 2009 15:23

Re: multicast stream live audio from Linux

Postby jalles » 02 Mar 2009 04:23

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: multicast stream live audio from Linux

Postby Rémi Denis-Courmont » 02 Mar 2009 19:13

JACK or ALSA inputs.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

jalles
Blank Cone
Blank Cone
Posts: 23
Joined: 28 Feb 2009 15:23

Re: multicast stream live audio from Linux

Postby jalles » 02 Mar 2009 23:22

Sorry, I now see that this is the wrong Forum for this thread. Sorry for the confusion - I have moved it.

.ja.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 23 guests