Stream multiple radio stations via RTP on multicast address

About encoding, codec settings, muxers and filter usage
bbahes
New Cone
New Cone
Posts: 1
Joined: 04 May 2019 13:37

Stream multiple radio stations via RTP on multicast address

Postby bbahes » 04 May 2019 13:53

Hi all!

I have configured stream for clients in network to use http protocol. Now I want to change that to RTP and on to multicast address 239.0.0.1.

Here is my old config:

new Radio1 broadcast enabled
setup Radio1 input "http://live.Radio1.hr:8059"
setup Radio1 output #transcode{vcodec=FLV1,vb=4096,fps=25,scale=1,acodec=mp3,ab=512,samplerate=44100,channels=2}:std{access=http,mux=ffmpeg{{mux=flv}},dst=0.0.0.0:8000/Radio1.flv}
new Radio2 broadcast enabled
setup Radio2 input "http://141.138.12.130:8000/RadioRadio2.mp3"
setup Radio2 output #transcode{vcodec=FLV1,vb=4096,fps=25,scale=1,acodec=mp3,ab=512,samplerate=44100,channels=2}:std{access=http,mux=ffmpeg{{mux=flv}},dst=0.0.0.0:8000/Radio2.flv}
control Radio1 play
control Radio2 play

I save this config in radio.vlm and launch it with command: vlc --vlm-conf=radio.vlm -I dummy --http-host=192.168.10.2

Now I tried with this config:

new Radio1 broadcast enabled
setup Radio1 input "http://live.narodni.hr:8059"
setup Radio1 output :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{dst=239.0.0.1,port=8000,mux=ts,sap,name=radio1} :no-sout-all :sout-keep
new Radio2 broadcast enabled
setup Radio2 input "http://141.138.12.130:8000/RadioVinkovci.mp3"
setup Radio2 output :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{dst=239.0.0.1,port=8000,mux=ts,sap,name=radio2} :no-sout-all :sout-keep
control Radio1 play
control Radio2 play

However, when I play rtp://239.0.0.1:8000/radio1 or rtp://239.0.0.1:8000/radio2 I get same stream.

What part of config is wrong? Or should I use different multicast address for different station?

Thanks in advance!

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

Re: Stream multiple radio stations via RTP on multicast address

Postby Rémi Denis-Courmont » 04 May 2019 20:56

You need to select the correct source address and port on the client. As a general rule, using the same multicast group for multiple streams is a bad idea.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 22 guests