Gst-RTSP-Server: Multiple RTP stream sources to the server

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gst-RTSP-Server: Multiple RTP stream sources to the server

Thadeu Antonio Ferreira de Melo
Hello.

I have a Gst-rtsp-server that is based on the example "test-launch.c". 

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

I start the server with 
  • ./test-launch "filesrc location=new.sdp ! sdpdemux ! identity name=pay0 "
And then the server makes the steam available at port 5554.

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?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gst-RTSP-Server: Multiple RTP stream sources to the server

Thadeu Antonio Ferreira de Melo
I think I "solved" part o f the problem. 
I´ve just duplicated the factory with another .SDP file.

 char *argv1 = "filesrc location=new1.sdp ! sdpdemux ! identity ";
  factory = gst_rtsp_media_factory_new ();
  gst_rtsp_media_factory_set_launch (factory, argv1);

  char *argv2 = "filesrc location=new2.sdp ! sdpdemux ! identity ";
  factory2 = gst_rtsp_media_factory_new ();
  gst_rtsp_media_factory_set_launch (factory2, argv2);
  /* attach the test factory to the /test url */
  gst_rtsp_mount_points_add_factory (mounts, "/test", factory);
  gst_rtsp_mount_points_add_factory (mounts, "/test2", factory2);

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)

Is that a bug or do I have to make extra tweaks? 

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.

2017-10-31 12:06 GMT-02:00 Thadeu Antonio Ferreira de Melo <[hidden email]>:
Hello.

I have a Gst-rtsp-server that is based on the example "test-launch.c". 

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

I start the server with 
  • ./test-launch "filesrc location=new.sdp ! sdpdemux ! identity name=pay0 "
And then the server makes the steam available at port 5554.

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?


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel