Loop player for GStreamer

Sebastian Dröge sebastian at centricular.com
Mon May 4 00:27:06 PDT 2015


On Mo, 2015-05-04 at 09:15 +0200, Thomas Scheuermann wrote:
> Hi all,
> 
> I need to write a player that loops over a file and plays it
> continuously. I found in some mails that I should use gst_element_seek
> with GST_SEEK_FLAG_SEGMENT. But it doesn't work. Here is the event loop
> I use:
> [...]

What kind of file are you using, which container format? And which
GStreamer version? Until recently there were some bugs related to this.

The procedure in general is to a) first to a FLUSHING|SEGMENT seek to
your start position, then b) whenever you receive the segment-done
message you would do a SEGMENT (non-flushing!) see to the loop start and
c) in the very end for the last loop you do a non-segment, non-flushing
seek for the last loop (so that you get EOS in the end instead of
segment-done).

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150504/620bdd64/attachment.sig>


More information about the gstreamer-devel mailing list