<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Am 04.05.2015 um 09:27 schrieb Sebastian Dröge:<br>
</div>
<blockquote cite="mid:1430724426.2224.19.camel@centricular.com" type="cite">
<pre wrap="">On Mo, 2015-05-04 at 09:15 +0200, Thomas Scheuermann wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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:
[...]
</pre>
</blockquote>
<pre wrap="">
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).
</pre>
</blockquote>
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.<br>
I use at the moment an H264 file from youtube for testing (mp4 container).<br>
When do I have to send a)? When the pipeline has gone to ready state or playing state?<br>
<br>
Regards,<br>
<br>
Thomas<br>
<blockquote cite="mid:1430724426.2224.19.camel@centricular.com" type="cite">
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
This message is subject to the following terms and conditions: <a href="http://www.barco.com/en/maildisclaimer">
MAIL DISCLAIMER</a>
</body>
</html>