<div dir="ltr"><div><div>Hi<br><br></div>My pipeline have multiple video and audio sources of different types, file sources others from webcams, and from tcp client. the sources from a file are the ones for loop, so I need implement a  seek to a position 0.<br><br>******************                   <br></div>* filesrc bin     * ------------> input-selector1 ---->  pipeline<br><div>*******************<br><br><br>********************<br></div><div>    v4l2srcbin     ----------->input-selector1<br><br>********************<br><br>*******************<br></div><div>     tcpsrc         ----------->input-selector1<br>*******************<br><br>*******************<br></div><div>   etc                  ------<br>*******************<br></div><div><br><br></div><div>a example of filesrc bin is <br><br></div><div>filesrc location=x ! decodebin ! videofilters ! etc.. ! queue ! "ghost pad linked to a input-selector1"<br><br></div><div>all the pipeline works fine until a filesrc bin finish the read a file and send a eos, <br></div><div>and I need the file is playing every time, from begining until the end and from the begining again, every time until the bin will deleted from the aplication thread.<br><br></div><div>I tried add a pad probe with a checking a EOS event, the callback works but the seeking implementation not. (using this example <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-eventsseek.html">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-eventsseek.html</a>)<br></div><div><br></div><div>then, in the documentation part-seeking :<br></div><div><br></div><div>"A seek is performed by sending a seek event to the sink elements of a<br>pipeline. Sending the seek event to a bin will by default forward<br>the event to all sinks in the bin "<br><br></div><div>but the source bin not have a sink element, in the pipeline there is only two sinks using a tee, a autovideosink, and a rtmpsink, but in the seeking  i dont want to affect the another sources.<br><br></div><div>Other problem i see, is in the input-selector1, it sync all input stream if I add first the v4l2src, then the file (the sources are added dinamically in any time), the file begin not from the 0 position because input-selector dropped frames for conserve the time stamp from the pipeline.<br><br></div><div>What is the correct way to implement this??<br><br></div><div><span id="result_box" class="" lang="en"><span class="">Any suggestions will be appreciated</span></span></div><div><br></div></div>