<div dir="ltr"><div>Hi all,</div><div><br></div><div>I am trying to setup RTSP server with master pipeline using appsrc and appsink.</div><div><br></div><div>I) In media_configure callback I setup the generator pipeline:</div><div><br></div><div>string pipeline = "v4l2src device=/dev/video1 ! video/x-raw, width=1920, height=1080, framerate=15/1 ! queue ! vpuenc_h264 ! appsink name=h264vid max-buffers=100 drop=true";</div><div><br></div><div>2) The RTSP pipeline is as follows:<br></div><div><div>pipeline_config = "appsrc name=h264videosrc ! queue ! rtph264pay name=pay0 pt=96";</div><div><br></div><div>3) I have set the caps and need_data callback:</div><div>  ctx->vid_appsrc = appsrc =<br>      gst_bin_get_by_name_recurse_up (GST_BIN (element), "h264videosrc");<br>  ctx->vid_appsink = appsink =<br>      gst_bin_get_by_name (GST_BIN (ctx->generator_pipe), "h264vid");<br>  g_object_set (G_OBJECT (appsrc), "caps", caps, NULL);<br>  g_object_set (G_OBJECT (appsink), "caps", caps, NULL);</div><div> g_signal_connect (appsrc, "need-data", (GCallback) need_data, ctx);</div><div><br></div><div>4) In need_data callback I copy the data like so:</div><div>GstSample *sample;<br></div><div>sample = gst_app_sink_pull_sample (GST_APP_SINK (ctx->vid_appsink));</div></div><div>GstBuffer *buffer = gst_sample_get_buffer (sample);<br>GstSegment *seg = gst_sample_get_segment (sample);<br>g_signal_emit_by_name (appsrc, "push-buffer", buffer, &ret);</div><div><br></div><div><br></div><div>Based on the information I have, there is data in the need_data sample, however VlcClient after authentication throws error.</div><div><br></div><div>Any help would be appreciated !<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Sincerely,</span><div><br></div><div>Dwight Kulkarni     <br></div></div></div></div></div></div></div></div></div>