<div dir="ltr">Perfect! Thank you. <div><br></div><div>I had tried setting the offset on other pads, but I guess I was too far upstream. Thanks again.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 2, 2021 at 1:41 PM Olivier Crête <<a href="mailto:olivier.crete@collabora.com">olivier.crete@collabora.com</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><div>Hi,</div><div><br></div><div>To add a time difference, you just need to set the "offset" property on the first pad where there is a timestamp, so after the demuxer. You don't even need to have a timer, the sink will wait until the right time is reached.</div><div><br></div><div>Olivier</div><div><br></div><div>On Tue, 2021-02-02 at 13:20 -0600, Trey Hutcheson wrote:</div><blockquote type="cite" style="margin:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);padding-left:1ex"><div dir="ltr">I have two video files that were created by a single pipeline; they were started approximately 5 seconds apart. Each video has a time overlay.<div><br></div><div>I would like to play these two videos back in the same pipeline (for now, each to a different video sink/window), but respect their different start times.</div><div><br></div><div>I've built a pipeline that watches the clock, and when the clock advances past a certain threshold (roughly 5 seconds), it wires in the second video and starts playing it from a filesrc. However, when the second video starts, the video itself starts 5 seconds *into* the video, if that makes sense. The time overlay displayed in the video is roughly 5 seconds later than if I play the file in an independent viewer.</div><div><br></div><div>So what's the proper way to control the relative position of this second video stream? Seek on the filesrc? Seek on the demuxer. Set a negative start time or offset on an element somewhere?</div></div><div>_______________________________________________<br></div><div>gstreamer-devel mailing list<br></div><div><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br></div><div><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br></div></blockquote><div><br></div><div><span><pre>-- <br></pre><div>Olivier Crête</div><div><a href="mailto:olivier.crete@collabora.com" target="_blank">olivier.crete@collabora.com</a></div><div><br></div></span></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>