Changing Segment without seek

Patrick Fü pat.fuerst at gmail.com
Wed Oct 26 13:42:57 UTC 2016


Hey Tim,

thanks for the fast response.
Seamless looping is working fine and I do it as you described, even for
parts of a video.

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.

Another things would be to reset a smaller segment to the full video length
without doing a seek, to get seamless playback.

Hope this explains my question.
Cheers,
Patrick



2016-10-26 15:20 GMT+02:00 Tim Müller <tim at centricular.com>:

> On Wed, 2016-10-26 at 13:27 +0200, Patrick Fü wrote:
>
> Hi Patrick,
>
> > I'm trying to change the segment while in playing state
> > with gst_event_new_seek.
> >
> > When the current time lies within the new segment it currently does a
> > seek to the beginning of the new segment.
> > What's the best to set a segment without doing a seek ? Is it even
> > possible with gst_event_new_seek ?
>
> Let's take back a step. Cold you explain in some more detail what you
> are trying to implement or achieve exactly? Then we can give advice how
> to best do that.
>
> For things like gapless/seamless playback or looping you can use the
> GST_SEEK_FLAG_SEGMENT, then your app will get a SEGMENT_DONE message on
> the bus as soon as the source/parser/demuxer is done processing data,
> and then you can do another (non-flushing) seek to output more data. If
> that's what you want I don't know though :)
>
> Cheers
> -Tim
>
> --
> Tim Müller, Centricular Ltd - http://www.centricular.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 



*Patrick Fürst*
*PROJEKTIL MEDIALABEL AG *
*EYE*HEAR*CANDY*

*Helvetiaplatz, *
*8004 Zürich*
*Mobile +41 76 406 1988 <+41+76+406+1988>*
*www.projektil.ch <http://www.projektil.ch/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161026/326d3d50/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature-image-3.png
Type: image/png
Size: 1614 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161026/326d3d50/attachment.png>


More information about the gstreamer-devel mailing list