[gst-devel] live video latency

ensonic ensonic at hora-obscura.de
Thu Jan 25 07:58:39 CET 2007


hi,

On 12:48:27 pm 23/01/2007 Wim Taymans <wim at fluendo.com> wrote:
> On Mon, 2007-01-22 at 13:40 +1100, Anthony Baxter wrote:
> >  For an upcoming play, I'm taking a live webcam feed, flipping it
> >  and adding an overlay to the image. I've got this working with the
> >  following pipeline:
> >  gst-launch "filesrc location=overlay.png ! pngdec
> >  ! alphacolor  ! videomixer name=mix ! ffmpegcolorspace
> >  ! videoflip method=horizontal-flip ! xvimagesink
> >  v4l2src! ffmpegcolorspace ! mix."
> >
> >  The only problem with this is that there's about a half-second or
> >  so of latency between the live action and what comes out the end
> >  of the pipeline. A much simpler pipeline also exhibits this. Are
> >  there any obvious tricks for reducing the latency?
>
> Set xvimagesink sync=false so that the sink runs ASAP. The rate is
> controlled by v4l2src.
>
> The only element that adds latency in this pipeline is v4l2src. It
> probably uses N internal buffers. There does not seem to be a property
> to reduce N on v4l2src..

v4l2src uses 2 buffers by default. CVS version has a property "queue-size"
to control this.

Stefan

>
> Wim
>
>
> >
> >  Thanks,
> >  Anthony
> >
> --
> Wim Taymans <wim at fluendo.com>
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your opinions on IT & business topics through brief surveys -
> and earn cash http://www.techsay.com/default.php?page=join.php&p=sourc
> eforge&CID=DEVDEV
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list