<div><includetail><!--<![endif]--></includetail></div><div><br></div><div>Hi,lists:</div><div><br></div><div><br></div><div>Client A --live-->|appsink | server   | appsrc | --live--> Client B</div><div><br></div><div><br></div><div><div style="background-color: rgb(33, 33, 33); line-height: 18px;"><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);">factory_record <span style="color: #c792ea;">=</span> <span style="color: #82aaff;">gst_rtsp_media_factory_new</span> <span style="color: #89ddff;">();</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);"><span style="color: #82aaff;">gst_rtsp_media_factory_set_transport_mode</span> <span style="color: #89ddff;">(</span>factory_record<span style="color: #89ddff;">,</span>GST_RTSP_TRANSPORT_MODE_RECORD<span style="color: #89ddff;">);</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);"><span style="color: #89ddff;"><br></span></div><div style=""><span style="color: rgb(137, 221, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">//c</span><font color="#89ddff" face="Menlo, Monaco, Courier New, monospace"><span style="font-size: 12px; white-space: pre;">an I produce appsink like this?</span></font></div><div style=""><div style="line-height: 18px;"><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255); line-height: 18px;"><span style="color: #82aaff;">gst_rtsp_media_factory_set_launch</span> <span style="color: #89ddff;">(</span>factory1<span style="color: #89ddff;">,</span>  <span style="color: #89ddff;">"</span><span style="color: #c3e88d;">( decodebin name=depay0 is-live=true ! x264enc speed-preset=superfast tune=zerolatency ! h264parse ! appsink name=vid max-buffers=1 drop=true   )</span><span style="color: #89ddff;">"</span> <span style="color: #89ddff;">);</span></div><div style="line-height: 18px;"><div style="line-height: 18px;"><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);"><div style="line-height: 18px;"><span style="color: #82aaff;">g_signal_connect</span> <span style="color: #89ddff;">(</span>factory_record<span style="color: #89ddff;">,</span> <span style="color: #89ddff;">"</span><span style="color: #c3e88d;">media-configure</span><span style="color: #89ddff;">"</span><span style="color: #89ddff;">,</span> <span style="color: #89ddff;">(</span>GCallback<span style="color: #89ddff;">)</span> media_configure<span style="color: #89ddff;">,</span><span style="color: #f78c6c;">NULL</span><span style="color: #89ddff;">);</span></div></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);"><span style="color: #82aaff;">media_configure</span> <span style="color: #89ddff;">(</span>GstRTSPMediaFactory <span style="color: #c792ea;">*</span> <span style="color: #ff5370;">factory</span><span style="color: #89ddff;">,</span> GstRTSPMedia <span style="color: #c792ea;">*</span> <span style="color: #ff5370;">media</span><span style="color: #89ddff;">,</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);">    gpointer <span style="color: #ff5370;">user_data</span><span style="color: #89ddff;">)</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);"><span style="color: #89ddff;">{</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255);"><div style="line-height: 18px;">   GstElement <span style="color: #c792ea;">*</span> appsink<span style="color: #89ddff;">;</span></div><div style="line-height: 18px;"><div style="line-height: 18px;">   GstElement <span style="color: #c792ea;">*</span>element;</div></div><div style="line-height: 18px;"><div style="line-height: 18px;">   element <span style="color: #c792ea;">=</span> <span style="color: #82aaff;">gst_rtsp_media_get_element</span> <span style="color: #89ddff;">(</span><span style="color: #ff5370;">media</span><span style="color: #89ddff;">);</span></div></div></div><div style=""><div style="line-height: 18px;"><font color="#eeffff" face="Menlo, Monaco, Courier New, monospace"><span style="font-size: 12px; white-space: pre;">   appsink </span></font><span style="color: rgb(199, 146, 234); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">=</span><span style="color: rgb(130, 170, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">gst_bin_get_by_name</span> <span style="color: rgb(137, 221, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">(</span><span style="color: rgb(130, 170, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">GST_BIN</span> <span style="color: rgb(137, 221, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">(</span><font color="#eeffff" face="Menlo, Monaco, Courier New, monospace"><span style="font-size: 12px; white-space: pre;">element</span></font><span style="color: rgb(137, 221, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">),</span> <span style="color: rgb(137, 221, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">"</span><span style="color: rgb(195, 232, 141); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">vid</span><span style="color: rgb(137, 221, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">"</span><span style="color: rgb(137, 221, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;">); //</span><font color="#89ddff" face="Menlo, Monaco, Courier New, monospace"><span style="font-size: 12px; white-space: pre;">Can I get appsink?</span></font></div></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre;"><font color="#89ddff">}</font></div></div></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; white-space: pre; color: rgb(238, 255, 255); line-height: 18px;"><span style="color: #89ddff;"><br></span></div></div></div></div></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><div style="color: rgb(238, 255, 255); background-color: rgb(33, 33, 33); font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;"><div>factory_play <span style="color: #c792ea;">=</span> <span style="color: #82aaff;">gst_rtsp_media_factory_new</span> <span style="color: #89ddff;">();</span></div><div>  <span style="color: #82aaff;">gst_rtsp_media_factory_set_transport_mode</span><span style="color: #89ddff;">(</span>factory_play<span style="color: #89ddff;">,</span> GST_RTSP_TRANSPORT_MODE_PLAY<span style="color: #89ddff;">);</span></div><div>  <span style="color: #82aaff;">gst_rtsp_media_factory_set_launch</span> <span style="color: #89ddff;">(</span>factory<span style="color: #89ddff;">,</span><span style="color: #89ddff;">"</span><span style="color: #c3e88d;">( </span><span style="color: rgb(195, 232, 141);">appsrc name=videosrc ! h264parse ! rtph264pay name=pay0 pt=96</span><span style="color: rgb(195, 232, 141);"> )</span><span style="color: rgb(137, 221, 255);">"</span><span style="color: rgb(137, 221, 255);">);</span></div></div></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div>my question is, I want to get appsink, connect to appsrc。</div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><span style="background-color: rgb(248, 249, 250); color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 28px; white-space: pre-wrap;"><br></span></div><div><br></div>