Multicasting using RTMP Streaming

Multicasting using RTMP Streaming

Support ForumCategory: Integration and CustomizationMulticasting using RTMP Streaming
avaneesh asked 8 years ago
Hello ,  I am pushing RTMP stream to EvoStream Server.On the Player side i fetch this RTMP stream in Flash Player. Now i wanted to enable a Multi casting Feature . What changes i can do in your config.lua to enable multi casting feature for this RTMP Stream.  I am using the flash Player to play the stream.   Regards Avaneesh Srivastava      



2 Answers
Don answered 8 years ago

Hi Avaneesh,

Please try this procedure:
1) Uncomment or add the following settings for inboundUdpTs in config.lua:
> — Inbound UDP TS
> {
> ip=”0.0.0.0″,
> port=9999,
> protocol=”inboundUdpTs”,
> },
2) Restart EMS.
3) Pull your source stream into EMS, e.g.
> pullstream uri= localstreamname=demo
4) Push the stream from EMS to a multicast address, e.g.
> pushstream uri=mpegtsudp://239.255.0.1:9999 localstreamname=demo
5) Check that the multicast stream is playable (*), e.g.
> ffplay udp://239.255.0.1:9999
6) Pull the multicast stream into EMS, e.g.
> pullstream uri=dmpegtsudp://239.255.0.1:9999 localstreamname=demortmp
7) Play an RTMP stream from EMS, e.g.
> ffplay rtmp://localhost/live/demortmp

(*) Note:
In case the multicast stream is not playable in step 5, make sure that the multicast feature is enabled on your router.

Cheers,
Don

avaneesh answered 8 years ago
Hello ,  I am following your instruction through which i am able to play multi casting in VLC at this address. udp://239.255.0.1:9999. after that i am following these commands to play my rtmp stream in flash player 6) Pull the multicast stream into EMS, e.g.
> pullstream uri=dmpegtsudp://239.255.0.1:9999 localstreamname=demortmp
7) Play an RTMP stream from EMS, e.g.
> ffplay rtmp://localhost/live/demortmp With these i am able to play stream in flash player but at the sender side it still shows increase in the bandwidth when next client connects .So i dont think that multi casting is working so please tell me what to do more for playing my rtmp stream in flash player so that there will be no increase in bandwidth when many rtmp  clients are connected. Each client is fetching RTMP stream at this URL rtmp://localhost/live/demortmp as you have suggested above. Also when next time i execute this command it shows Stream Name already taken  so for that i am shutting Downstream but if some cases if stream not shut down i have to use again a new name and that new name i have to pass to web to access this stream  I wanted to make stream name always constant as i cant change web config again and again. Please help me how to sort these issues.   Regard Avaneesh Srivastava

Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.