[gst-devel] Display static image?

Stefan Kost ensonic at hora-obscura.de
Mon Dec 28 14:44:19 CET 2009


Am 28.12.2009 10:36, schrieb Roland Hermans:
> Hi Francis,
> 
>> I would like to fill this black hole with a static image. I have tried
>> loading an image using a filesrc linked with a jpegdec element, but the
>> problem is that the video gets an EOS event after having loaded the image,
>> so it only shows for a fraction of a second.
>>
>> Is there any way to do it? I'm currently loading all my pipelines using
>> the
>> gst-launch parser, so a solution in gst-launch syntax would be ideal.
> 
> A workaround that I have used is a multifilesrc with a fixed location, so
> that it keeps reading the same image over and over again. For example:
> 
> gst-launch multifilesrc location=yourfile.jpg
> caps=image/jpeg,framerate=\(fraction\)1/1 ! jpegdec ! ffmpegcolorspace !
> video/x-raw-rgb,framerate=\(fraction\)1/1 ! timeoverlay ! ximagesink
> 
> But it might very well be that there is a better solution and I would be
> interested in it as well.

There is a element called freeze for that.

Stefan

> 
> Roland
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> 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