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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

rex-2

Hi,lists:


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。










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