[gst-devel] Display static image?

Roland Hermans gstreamer-devel at omroepvenray.nl
Mon Dec 28 09:36:43 CET 2009

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.


More information about the gstreamer-devel mailing list