Looping ogg/theora videos
David Johnson
djohnson at ics.com
Wed Apr 27 17:28:09 PDT 2011
I need to loop some ogg/theora videos. I can do this, but I am getting a
noticable delay when looping. I need the looping to be seamless.
Depending on what times I am looping from/to, the delay can vary from not
noticable, to extreme. It can also vary depending on the file.
I have full sources of an example I can post if necessary. I have included a
short snippet to show what I am doing:
What am I doing wrong?
--
David Johnson
-----
gboolean OggPlayer::callbackMessage(GstBus *bus, GstMessage *message, gpointer
data)
{
switch (GST_MESSAGE_TYPE(message)) {
...
case GST_MESSAGE_SEGMENT_DONE:
{
GstElement *pipeline = (GstElement*)data;
GstEvent *event;
event = gst_event_new_seek(1.0, GST_FORMAT_TIME,
(GstSeekFlags)(GST_SEEK_FLAG_FLUSH |
GST_SEEK_FLAG_SEGMENT),
GST_SEEK_TYPE_SET, startval,
GST_SEEK_TYPE_SET, endval);
bool result = gst_element_send_event(pipeline, event);
break;
...
}
More information about the gstreamer-devel
mailing list