<div dir="ltr">Hi all,<div><br></div><div>I am reposting this as my previous post didn't get any responses. Your help is greatly appreciated.</div><div><br></div><div>I have a pipeline as follows:</div><div>videosrc  > Tee  > Tee 1:  Splitmuxsink  >  Tee 2: jpegenc > app sink<br clear="all"><div><br></div><div>1) A splitmuxsink is saving the video files and I am maintaining a counter of the current sequence used to name the file.</div><div>2) When I get a callback for format-location-full, I increment the sequence counter</div><div>3) When I get a "new-sample", I associate the Jpeg frame with the current counter to infer which video this frame is coming from.</div><div><br></div><div>The problem is that in some cases, the format-location-full call back occurs a few seconds after the next video has started. So I get a new-sample and it is associated with the previous video. But it actually is present in the current video.</div><div><br></div><div>Are there any suggestions of how best to stay in synch with the current video in splitmuxsink ? </div><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><span style="font-size:x-small">B.ASC, M.ASC, PMP</span></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div>