<div dir="ltr">I think I "solved" part o f the problem. <br>I´ve just duplicated the factory with another .SDP file.<div><br></div><div> char *argv1 = "filesrc location=new1.sdp ! sdpdemux ! identity ";<br></div><div><div>  factory = gst_rtsp_media_factory_new ();</div><div>  gst_rtsp_media_factory_set_launch (factory, argv1);</div><div><br></div><div>  char *argv2 = "filesrc location=new2.sdp ! sdpdemux ! identity ";</div><div>  factory2 = gst_rtsp_media_factory_new ();<br></div><div>  gst_rtsp_media_factory_set_launch (factory2, argv2);</div><div>  /* attach the test factory to the /test url */</div><div>  gst_rtsp_mount_points_add_factory (mounts, "/test", factory);</div><div>  gst_rtsp_mount_points_add_factory (mounts, "/test2", factory2);<br></div></div><div><br></div><div>However it seems that if I start the stream new2.sdp before a start the first stream the player (ffplay) will only be able to play both together in a particular order of starting. (If I start sending in order the players will work fine)</div><div><br></div><div>Is that a bug or do I have to make extra tweaks? </div><div><br></div><div>This is only a test, I would like to be able to plug in and out multiple streams at the same time (at least 5), and I won´t know the other of each one.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-31 12:06 GMT-02:00 Thadeu Antonio Ferreira de Melo <span dir="ltr"><<a href="mailto:thadeu.afm@gmail.com" target="_blank">thadeu.afm@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello.<div><br></div><div>I have a Gst-rtsp-server that is based on the example "test-launch.c". </div><div><br></div><div>Right now, I have the source to the server opening a .SPD file that was generated when running ffmpeg -i <file> -f rtp rtp://<IP>:8090</div><div><br></div><div>I start the server with </div><div><ul><li>./test-launch "filesrc location=new.sdp ! sdpdemux ! identity name=pay0 "</li></ul><div>And then the server makes the steam available at port 5554.</div></div><div><br></div><div>My question how to scale up this server. Is it possible to receive multiple streams at the same port? How can I differentiate a source from another while creating the server, factory and mount them?</div></div>
</blockquote></div><br></div>