Loop player for GStreamer

Thomas Scheuermann scheuermann at barco.com
Mon May 4 00:43:35 PDT 2015


Am 04.05.2015 um 09:27 schrieb Sebastian Dröge:

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).


At the moment I try on Ubuntu 14.04 with GStreamer 1.2. But I will now try on Debian Jessie with GStreamer 1.4.
I use at the moment an H264 file from youtube for testing (mp4 container).
When do I have to send a)? When the pipeline has gone to ready state or playing state?

Regards,

Thomas






_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150504/3756b678/attachment.html>


More information about the gstreamer-devel mailing list