<div dir="ltr"><div><div>Many thanks for the response. <br><br></div>I posted my answers to mailing list. :)<br><br></div>Sure, I have no problems to make some code, but it's necessary to understand what kind of components should i set there. And do I have to run some unix deamon to get reference clock for all my devices. Or it's not strictly necessary. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 28, 2016 at 11:32 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 2016-11-22 at 06:27 -0800, LC wrote:<br>
> Hei, hei! <br>
><br>
> I am testing rtsp stream synchronization abilities. <br>
> My use case is like this : 2 rtsp live streams in 2 filesinks. <br>
><br>
> I am not going to use any mux element to get done synchronization inside<br>
> that element. Otherwise i need to demux to get each frame from each specific<br>
> rtspsrc to specific filesink.  <br>
<br>
</span>What are your RTSP senders? GStreamer based or something else? If<br>
something else, what kind features does that software stack give you,<br>
what kind of configuration related to synchronization and time can you<br>
do?<br>
<span class=""><br>
> I am testing with this pipeline and want to get first frame synchronised but<br>
> i can't find the correct way. Here is that pipeline: gst-launch-1.0 -e<br>
> rtspsrc rfc7273-sync=true ntp-time-source=running-time <br>
> location=some/media.smp ! rtph264depay ! h264parse ! mp4mux ! filesink<br>
> location=file115.mp4 rtspsrc rfc7273-sync=true ntp-time-source=running-time<br>
> location=some/media2.smp ! rtph264depay ! h264parse ! mp4mux ! filesink<br>
> location=file145.mp4<br>
<br>
</span>In what way do you want the two files to be synchronized? They should<br>
start with exactly the same frame, or ...?<br>
<span class=""><br>
> I also noticed comment on rfc7273-sync feature : "(requires clock and offset<br>
> to be provided)". And how can i share it, where to specify it ? <br>
<br>
</span>RFC7273 requires the RTSP senders to a) use a known clock (e.g. a<br>
NTP/PTP, GPS, etc clock) and b) to put the information about this clock<br>
(which one it is) and how the media relates to it (i.e. an offset<br>
between the clock epoch and the RTP timestamp) into the SDP.<br>
<br>
If that is given, then you can make use of the RFC7273 feature on the<br>
receiver side to get accurate synchronization based on that clock and<br>
when the media was captured according to that clock.<br>
<br>
Otherwise you might still have some other options (e.g. if you know<br>
that the senders are synchronized to a specific NTP clock and advertise<br>
this in their RTCP packets), but nothing standardized or simple that<br>
works without configuration. It completely depends on your setup then.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a></font></span><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>