<div dir="ltr">Hello Dwight.<div><br></div><div>1. I do not see a rtspsink in your  #2 pipeline.</div><div>2. Try to add rtpjitterbuffer into your #2 pipeline</div><div>3. Did you check locally? Do you see your stream from appsrc? Try to dump to file (if the display is not present).</div><div>4. Post an error you've got on the receiver end.</div><div><br></div><div>Best regards,</div><div>Anton.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 9, 2021 at 10:47 PM Dwight Kulkarni via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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"><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>
</blockquote></div>