Help needed regarding buffering
Vijay Vikram
vikram.kvijay at gmail.com
Tue Oct 23 03:57:56 PDT 2012
Hi Wim,
Thanks a lot for your prompt reply.
I have tried this thing with queue2 too.
The steps are mentioned below
1. Set max-size-bytes= 10MB(for queue's max capacity)
2. Set low-percent=high-percent=5 initially.
Now I am listening to bus messages. On GST_MESSAGE_BUFFERING, when I get
the percent vlaue, I am always getting either 0 or 100.
Is it that restrictin based on number of bytes is not correct. rather we
should restrict the percentage values based on time as explained in the
link you have shared?
Or Is there something wrong with my understanding?
Regards,
Vikram
On Tue, Oct 23, 2012 at 3:23 PM, Wim Taymans <wim.taymans at gmail.com> wrote:
> On 10/23/2012 11:45 AM, Vijay Vikram wrote:
>
>> Hi,
>> I am trying to use queue element in my pipeline for buffering. My goal is
>> to start playback of content after some bytes are queued up.
>> According to my understanding of the queue, I was trying the following
>> 1. Set max-size-bytes= some bytes(for queue's max capacity)
>> 2. Set min-threshold-bytes=some bytes(say 100k)
>> souphttpsrc is downloading the data.
>> Now I was thinking that chunks will be queued up inside queue till the
>> min-threshold(100k bytes) is reached and queue will start pushing the data
>> downstream(thats a demux) after that.
>> But while testing, I realized that queue starts pushing as soon as it
>> gets the first chunk.
>> Looks like my understanding of queue is not correct.
>> Can someone help me out regarding this? If you can share some insight or
>> some documentation to help me do this, that would be great of you.
>>
>
> Don't use queue for this, the min-threshold-* is useless. Use queue2 to
> implement buffering and
> check out the buffering documentation here:
>
> http://gstreamer.freedesktop.**org/data/doc/gstreamer/head/**
> manual/html/chapter-buffering.**html<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-buffering.html>
>
> Wim
>
>
> Regards,
>> Vikram
>>
>>
>> ______________________________**_________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.**freedesktop.org<gstreamer-devel at lists.freedesktop.org>
>> http://lists.freedesktop.org/**mailman/listinfo/gstreamer-**devel<http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>>
>
> ______________________________**_________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.**freedesktop.org<gstreamer-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/**mailman/listinfo/gstreamer-**devel<http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20121023/1cf0b772/attachment-0001.html>
More information about the gstreamer-devel
mailing list