Multicasting using RTMP Streaming
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
> 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