Loop a file using playbin without artefacts

Nikos Chantziaras realnc at gmail.com
Thu May 21 09:13:49 PDT 2015


On 21/05/15 19:02, Arnaud Loonstra wrote:
> Hi all,
>
> I'm doing a simple looping of a h264 file (raspbian provided test.h264
> for example)
>
> When I receive a SEGMENT_DONE message on the bus I seek to the beginning:
>
> flags = Gst.SeekFlags.FLUSH | Gst.SeekFlags.KEY_UNIT |
> Gst.SeekFlags.SEGMENT
> self.playbin.seek(1.0, Gst.Format.TIME, flags, Gst.SeekType.SET, 0,
> Gst.SeekType.SET, -1)


Try this instead:

   gst_element_seek_simple(pipeline, GST_FORMAT_TIME,
                           GST_SEEK_FLAG_SEGMENT, 0);



More information about the gstreamer-devel mailing list