Playback delay after seeking on Ogg/Vorbis files

Johannes H. Jensen joh at pseudoberries.com
Sun May 6 13:23:29 PDT 2012


Hi,

I'm trying to loop the playback of an audio file, by calling
gst_element_seek() to position 0 when GST_MESSAGE_EOS is received on
the bus, like in this example[1]. This works fine with most audio
files except Ogg/Vorbis. When playing an Ogg/Vorbis file, there is a
silent gap during the first few seconds of playback after the call to
gst_element_seek(). For short audio files, this means only the first
playback can be heard, after which there is only silence.

Is this the "correct" way to loop playback? Is there a way to reduce
this seek delay? Is this a known issue?

(Tested on Ubuntu 12.04 with GStreamer 0.10.36)


Best regards,

Johannes H. Jensen

[1] http://tristanswork.blogspot.com/2010/10/looping-playback-with-gstreamer.html


More information about the gstreamer-devel mailing list