<div dir="ltr"><div><br></div><div>I would change to</div><div><br></div><div>filesrc !  inputselect ! decodebin ! autovideosink</div><div><br></div><div>Hook up the 2nd filesrc to inputselect, change the active-pad and remove the old filesrc.</div><div><br></div><div>Alternatively,</div><div><br></div><div>you can use</div><div><br></div><div>uridecodebin ! inputselect ! autovideosink</div><div><br></div><div>And create a new uridecodebin for each new file src, it will enable to mix codecs if you want to.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 10 Aug 2021 at 13:30, marc lievens via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</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 lang="EN-US"><div class="gmail-m_9034926117176643605WordSection1"><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I seems to overlook something when I change the element filesrc location at runtime.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I tried already to change the location already in different ways and dis read the documentation concerning dynamic pipelines<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">At this moment I simplified the pipeline to :  filesrc | decodebin| autovideosink, but still I seems to do something wrong.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">What I already tried is :<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="gmail-m_9034926117176643605MsoListParagraph"><u></u><span>-<span style="font:7pt "Times New Roman"">          </span></span><u></u>In blocking probe on file source  I changed location with/without filesrc state changes(GST_STATE_NULL and sync with parent )  and pipeline changes ( GST_STATE_READY and GST_STATE_PLAY)<u></u><u></u></p><p class="gmail-m_9034926117176643605MsoListParagraph"><u></u><span>-<span style="font:7pt "Times New Roman"">          </span></span><u></u>With 2 probes and send eos as explained  in dynamic pipeline documentation , and this with creating new filesrc and/or decodebin.<u></u><u></u></p><p class="gmail-m_9034926117176643605MsoListParagraph"><u></u><span>-<span style="font:7pt "Times New Roman"">          </span></span><u></u>With posting a message and  change file location when message received to avoid deadlocks<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I  really have no idea what I’m doing wrong or if it is even possible.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I would appreciate if anyone can point me in the right direction or explains me the sequence of actions to take <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Cheers ,<u></u><u></u></p><p class="MsoNormal">marc<u></u><u></u></p></div></div></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">g. Marc</div>