FLV Demux Seek in push mode

Tim Müller tim at centricular.com
Thu May 14 00:25:25 PDT 2015


On Thu, 2015-05-14 at 11:21 +0530, Vijay Vikram wrote:

Hi,

> I am currently using version 1.2.4 and checking the code of flvdemux.
> I found that seeking to particular location in a file in push mode is
> implemented to start always from beginning.

This is a bug:
https://bugzilla.gnome.org/show_bug.cgi?id=680087


> But pull mode seeking to a particular location in a file works well.
> Even 1.4.5 does not support seeking to any location in file in push
> mode.
> 
> I would like to understand why seeking is implemented like this in
> Push mode?
> I tried doing some changes but I am not able to get the tag start
> position if I have moved to a random offset. Demuxer goes out of sync
> and is not able to get back to tag start.
> 
> Can you please help me with probable solutions for this? 

If you're using playbin, the easiest way to work around this is by
simply setting the "ring-buffer-max-size" property to a couple of MB or
so. That will make the demuxer operate in pull mode even if the input is
push based.

Not a fix of course, but perhaps a solution.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list