How to use queue2 element?

Luis de Bethencourt luis at debethencourt.com
Thu Jul 2 12:14:44 PDT 2015


On 2 July 2015 at 16:05, Baby Octopus <jagadishkamathk at gmail.com> wrote:

> Hi,
>
> I'm looking at buffering a video onto a disk, for about an hour before
> sending it out. My pipeline looks something like this
>
> gst-launch v4l2src ! video/x-raw,width=720,height=480 ! videoconvert !
> x264enc bitrate=2000 ! mpegtsmux ! queue2 temp-template=/tmp/bufXXXX !
> udpsink host=192.168.33.12 port=5050
>
> Can someone tell how to configure the buffering period, say 10s, 100s or
> 3600s? WHat should I configure queue2 as?
>
> ~Bo
>

Check out these two properties of queue:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-queue.html#GstQueue--min-threshold-time
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-queue.html#GstQueue--max-size-time

I recommend you play with them with values of 30 seconds or so to get an
idea of how they work.

Enjoy,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150702/ad16d3ee/attachment.html>


More information about the gstreamer-devel mailing list