<div dir="ltr">Thank you. Could you tell if something like that is doable in gstreamer itself?  If yes, could you explain here how to achieve it? I just need to play two sources together but both starting with different offset. Thank you in advance.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 25, 2022 at 4:55 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</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>Le lundi 24 janvier 2022 à 02:18 +0100, Tomasz Mikolajczyk via gstreamer-devel a écrit :</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">Hi,<div><span style="color:rgb(0,0,0);white-space:pre-wrap">
I would like to use gstreamer to play multiple sources (for instance two video files) simultaneously using a single pipeline but each video starting from a different position, for instance first video from the beginning and the second from the middle. Could someone guide me on how to achieve it? </span><br></div><div><pre style="color:rgb(0,0,0);width:650px;white-space:pre-wrap"><font face="arial, sans-serif">Simplifying, my pipeline is an equivalent of:</font></pre></div></div></blockquote><div><br></div><div>This use case is better handled by GES, which offers ges-launch-1.0 command line to test.</div><div><br></div><div><a href="https://gstreamer.freedesktop.org/documentation/gst-editing-services/?gi-language=c" target="_blank">https://gstreamer.freedesktop.org/documentation/gst-editing-services/?gi-language=c</a></div><div><br></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"><div><pre style="color:rgb(0,0,0);width:650px;white-space:pre-wrap">gst-launch-1.0 \
uridecodebin uri=file:///Users/tmikolaj/Downloads/videoalpha_video_dancer1.webm ! videoconvert ! autovideosink \
uridecodebin uri=file:///Users/tmikolaj/Downloads/videoalpha_video_dancer1.webm ! videoconvert ! autovideosink

<font face="arial, sans-serif">, but created programmatically.
Obviously, a simple pipeline's seeking seeks two files at once.
I was trying to register a probe of the GST_PAD_PROBE_TYPE_EVENT_UPSTREAM type from inside the "pad-added" signal callback of the "uridecodebin" element. Inside the probe I wanted to catch the "GST_EVENT_SEEK" event and drop it for the first video. However, it seems that dropping the SEEK message leaves the pipeline in a "PAUSED" state and even an explicit state change to "PLAYING" does nothing.
Does anybody have some hints on how to solve that problem?</font></pre><pre style="color:rgb(0,0,0);width:650px;white-space:pre-wrap"><font face="arial, sans-serif">Regards,
Tomasz</font></pre></div></div></blockquote><div><br></div><div><span></span></div></div>
</blockquote></div>