<div dir="ltr">Hi all,<div><br></div><div>I have a pipeline whereby an input source is going through a tee to an appsink and a splitmuxsink.</div><div><br></div><div>                     appsink > new-sample call back > jpegimages</div><div>                  /</div><div>video >tee></div><div>                   \</div><div>                     splitmuxsink > format-location call back > video_file</div><div><br></div><div>The appsink is producing a jpeg image on the new-sample callback and the splitmuxsink is saving a video file of a certain time length.</div><div><br></div><div>I need to correlate the time in the jpeg image to the time in the video file.</div><div><br></div><div>For example, suppose the video file is 30 seconds long. I need to know that the current jpeg image is captured at 11.2 seconds </div><div><br></div><div>Is this possible using the gstreamer_clock. For example, I have the format-location call back occuring on the splitmuxsink. Presumably when a new file is started there will be a call to format-location, at this point I save the current clock time (as the starting time).</div><div><br></div><div>When new-sample callback occurs on the other tee I compare that starting time to the current clock time and the difference is how far along we have advanced in the current video clip.</div><div><br></div><div>Is this the correct way to synch the two forks on the tee to a common time ?</div><div><br clear="all"><div><br></div>-- <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                </div><div><br></div></div></div></div></div></div></div></div></div>