<div dir="ltr">I've had success setting the offset on the sink pad, not the src pad. Splice the new pads into the appropriate sink pads, but at each of those SINK pads, set the offset. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 17, 2019 at 9:19 PM Pascal Jacquemart <<a href="mailto:pascal@fluffyspider.com">pascal@fluffyspider.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"><br>
Ok but it does not make sense to set 0 as pad offset<br>
You should set the offset as the running time of the pipeline instead<br>
<br>
Otherwise, if it does not work, you might be able to use the<br>
input-selector element. This element has some capabilities to<br>
synchronise various inputs to the same running time.<br>
<br>
On Tue, 17 Sep 2019 04:22:05 -0500 (CDT)<br>
"lorenzo.m" <<a href="mailto:lorenzo@muscariello.com" target="_blank">lorenzo@muscariello.com</a>> wrote:<br>
<br>
> Hi Pascal,<br>
> thank you for your reply.<br>
> I've tried two different paths to achieve this (limiting the example<br>
> to the video part / audio is completely discarded) starting from a<br>
> common approach:<br>
> <br>
> the common approach consists on dynamic linking the new created<br>
> uridecodebin element to the rest of the pipeline capturing the<br>
> pad-added singals on this element; as soon as the element adds a pad<br>
> of type video/x-raw this is linked to the sink pad of the<br>
> videoconvert element and if the link is successful:<br>
> <br>
> 1 - Pipeline seeking: <br>
> seeking to 0 doing<br>
> gst_element_seek(pipeline,1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,<br>
>                          GST_SEEK_TYPE_SET, 0,<br>
>                          GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)<br>
> <br>
> this works as expected, but is pushing the pipeline back to 0.<br>
> <br>
> 2 - Setting the offset on the pad just added:<br>
> <br>
>       gst_pad_set_offset(new_pad,0);<br>
> <br>
> this is not working at all. <br>
> <br>
> What I'm missing?<br>
> Thanks in advance,<br>
> <br>
> Kind Regards<br>
> Lorenzo<br>
> <br>
> <br>
> <br>
> <br>
> --<br>
> Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
> _______________________________________________<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>
_______________________________________________<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></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Daniel J. Sperka, Ph. D. <br>UC Davis Center for Neuroscience<br></div>