gst-rtsp-server,multiple pipelines with tee element

horai ivo.hora at seznam.cz
Mon Sep 2 07:23:55 UTC 2019



Hello, I would like to ask if it is possible to connect two different
payloads in gstreamer rtsp server.
I have a pipeline with a tee element and I would like to have them as teo
URIs with name: "/ test1" and "/ test2".

Currently I am constructing the pieline this way:

  factory = gst_rtsp_media_factory_new ();
  gst_rtsp_media_factory_set_launch (factory, "( "
          " rpicamsrc preview=false bitrate=2000000 ! tee name=t "
          " t. ! queue ! video/x-h264, width=1296,height=730,framerate=30/1
! h264parse ! rtph264pay name=pay0 pt=96 "
          " t. ! queue ! video/x-h264, width= 640,height=480,framerate=30/1
! h264parse ! rtph264pay name=pay1 pt=97 "
          ")");
  gst_rtsp_media_factory_set_shared (factory, TRUE);
  gst_rtsp_mount_points_add_factory (mounts, "/test1", factory);
  g_signal_connect (factory, "media-constructed", (GCallback)
media_constructed, NULL);

Could anyone help me,how to proceed and connect the factory with test2 or
give me an advice if there is another more convenient solution?

Thank you
Best regards,
Ivo



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list