[gst-rtsp-server] in gst-rtsp-server/examples/test_record

rex rex at trytogo.com
Mon Nov 9 14:52:05 UTC 2020


Client A --live-->|appsink | server   | appsrc | --live--> Client B

factory_record = gst_rtsp_media_factory_new ();
gst_rtsp_media_factory_set_transport_mode (factory_record,GST_RTSP_TRANSPORT_MODE_RECORD);

//can I produce appsink like this?
gst_rtsp_media_factory_set_launch (factory1,  "( decodebin name=depay0 is-live=true ! x264enc speed-preset=superfast tune=zerolatency ! h264parse ! appsink name=vid max-buffers=1 drop=true   )" );
g_signal_connect (factory_record, "media-configure", (GCallback) media_configure,NULL);

media_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media,
    gpointer user_data)
   GstElement * appsink;
   GstElement *element;

   element = gst_rtsp_media_get_element (media);

   appsink =gst_bin_get_by_name (GST_BIN (element), "vid"); //Can I get appsink?


factory_play = gst_rtsp_media_factory_new ();
  gst_rtsp_media_factory_set_transport_mode(factory_play, GST_RTSP_TRANSPORT_MODE_PLAY);
  gst_rtsp_media_factory_set_launch (factory,"( appsrc name=videosrc ! h264parse ! rtph264pay name=pay0 pt=96 )");

my question is, I want to get appsink, connect to appsrc。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201109/b416ab10/attachment.htm>

More information about the gstreamer-devel mailing list