<div dir="ltr"><br><div><br></div><div>Hey Tim, </div><div><br></div><div>thanks for the fast response. </div><div>Seamless looping is working fine and I do it as you described, even for parts of a video.  </div><div><br></div><div>But what I want to achieve is changing the looping segment dynamically while playing. And when the current position is within a new segment it shouldn't seek to the beginning of the segment to get seamless playback. </div><div><br></div><div>Another things would be to reset a smaller segment to the full video length without doing a seek, to get seamless playback. </div><div><br></div><div>Hope this explains my question. </div><div>Cheers, </div><div>Patrick</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-26 15:20 GMT+02:00 Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2016-10-26 at 13:27 +0200, Patrick Fü wrote:<br>
<br>
Hi Patrick,<br>
<span class=""><br>
> I'm trying to change the segment while in playing state<br>
> with gst_event_new_seek.<br>
><br>
> When the current time lies within the new segment it currently does a<br>
> seek to the beginning of the new segment.<br>
> What's the best to set a segment without doing a seek ? Is it even<br>
> possible with gst_event_new_seek ? <br>
<br>
</span>Let's take back a step. Cold you explain in some more detail what you<br>
are trying to implement or achieve exactly? Then we can give advice how<br>
to best do that.<br>
<br>
For things like gapless/seamless playback or looping you can use the<br>
GST_SEEK_FLAG_SEGMENT, then your app will get a SEGMENT_DONE message on<br>
the bus as soon as the source/parser/demuxer is done processing data,<br>
and then you can do another (non-flushing) seek to output more data. If<br>
that's what you want I don't know though :)<br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">-Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-size:12.8px"><img height="45" width="236" src="cid:03F1761F-6EBB-4C09-92C4-16EB0EA20BF3"></span><div style="color:rgb(0,0,0);font-size:12px;font-family:-apple-system,Helvetica,Arial,sans-serif"><span style="border-collapse:separate;border-spacing:0px"><span style="font-size:11px"><span style="font-size:13px"><b><br><br><br></b></span></span></span></div><div style="color:rgb(0,0,0);font-size:12px;font-family:-apple-system,Helvetica,Arial,sans-serif"><span style="border-collapse:separate;border-spacing:0px"><span style="font-size:11px"><span style="font-size:13px"><b>Patrick Fürst</b></span></span><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><div><div style="margin:0px;display:inline!important"><font color="#424242" style="font-size:13px"><b>PROJEKTIL MEDIALABEL AG </b> </font></div></div><div><b style="color:rgb(66,66,66);text-align:-webkit-auto;font-size:11px">EYE</b><font face="Helvetica-Light" style="color:rgb(66,66,66);text-align:-webkit-auto"><span style="font-size:11px">HEAR</span></font><b style="color:rgb(66,66,66);text-align:-webkit-auto;font-size:11px">CANDY</b></div><div><b style="color:rgb(66,66,66);text-align:-webkit-auto;font-size:11px"><br></b></div></span></span></span></div><div style="word-wrap:break-word"></div></span><div><b><div style="margin:0px;font-weight:normal;font-size:11px;display:inline!important">Helvetiaplatz, </div></b><b style="color:rgb(66,66,66);font-size:11px;text-align:-webkit-auto"><div style="margin:0px;font-weight:normal;display:inline!important">8004 Zürich</div></b></div><span style="color:rgb(66,66,66);font-size:11px"><b><div style="margin:0px;font-weight:normal;display:inline!important">Mobile <a href="tel:+41+76+406+1988" value="+41786765500" style="color:rgb(17,85,204)" target="_blank">+41 76 406 1988</a></div></b></span><div><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><div style="word-wrap:break-word"><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><span style="border-collapse:separate;text-align:-webkit-auto;border-spacing:0px"><span style="color:rgb(66,66,66);font-size:11px"><b><div style="margin:0px;font-weight:normal;display:inline!important"><a href="http://www.projektil.ch/" style="color:rgb(0,128,255)" target="_blank">www.projektil.ch</a></div></b></span></span></span></span></div></span></div></span></span></div></div></div>
</div>