<div dir="auto">Awesome, thanks!!!<div dir="auto">You saved me</div><div dir="auto"><br></div><div dir="auto">And.. If you okay, and if you have, can you recommand me some papers or document to understand more deep about gstreamer?</div><div dir="auto">I tried myself with gstreamer official document in website, but in some cases, I got a feeling that stucked at a wall of knowledge...</div><div dir="auto"><br></div><div dir="auto">Anyway whether you recommand it to me or not, </div><div dir="auto">Thank you.</div><div dir="auto"><div dir="auto"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2021년 8월 31일 (화) 오후 10:19, Ben Rush <<a href="mailto:ben@ben-rush.net">ben@ben-rush.net</a>>님이 작성:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 31, 2021 at 1:30 AM 이병헌 via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">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">Hi.<br>
I’m new on gstreamer, and I have some problem with this issue for many days.. <br>
<br>
I need to get absolute timestamp from multiple rtsp camera.<br>
And with some effort, I got to know that I can get absolute timestamp from "RTCP SR(sender report)” in RTSP packets<br>
But I can not find the proper way to get RTCP SR from rtspsrc element or rtpbin in gstreamer document..<br>
And actually I can not understand well about rtpbin’s role<br>
So my questions are<br>
<br>
1. How to get RTCP SR with rtspsrc element or rtpbin element<br></blockquote><div><br></div><div>With your pipeline, get the GstRTPSession: <br><br>rtpSession = gst_bin_get_by_name(GST_BIN(_pipeline->pipeline), "rtpsession0");<br><br>Get the internal RTPSession from it: <br><br><div>GstElement* internalRtpSession; </div><div>g_object_get(rtpSession, "internal-session", &internalRtpSession, NULL);<br><br>Connect to on-receiving-rtcp: <br><br>g_signal_connect(internalRtpSession, "on-receiving-rtcp", G_CALLBACK(on_rtcp_callback), NULL);<br><br>Iterate over the RTCP packets in the buffer: <br><br><div><span style="white-space:pre-wrap">      </span>GstRTCPBuffer rtcpBuffer = GST_RTCP_BUFFER_INIT;</div><div><span style="white-space:pre-wrap"> </span>gst_rtcp_buffer_map(buffer, GST_MAP_READ, &rtcpBuffer);</div><div><span style="white-space:pre-wrap">      </span>GstRTCPPacket rtcpPacket; </div><div><span style="white-space:pre-wrap">      </span>if (gst_rtcp_buffer_get_first_packet(&rtcpBuffer, &rtcpPacket))</div><div><span style="white-space:pre-wrap">  </span>{</div><div><span style="white-space:pre-wrap">                </span>while (gst_rtcp_packet_move_to_next(&rtcpPacket))</div><div><span style="white-space:pre-wrap">            </span>{</div><div><span style="white-space:pre-wrap">                        </span>GstRTCPType type = gst_rtcp_packet_get_type(&rtcpPacket);</div></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
2. If I connect devices into rtpbin element, then does rtpbin sync sources from multiple device automatically?<br>
I mean, suppose If there are two rtsp camera CAM_1 CAM_2, and if I send PLAY request in same time on my client<br>
And if there have network delay, so client get packets of PLAY request of CAM_1 10 seconds more later than CAM_2<br>
Then does rtpbin element sync that 10 seconds automatically?<br></blockquote><div><br></div><div>I'm not sure. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Thanks for reading.</blockquote></div></div></div></div></div></div>
</blockquote></div>