GNOME Bugzilla – Bug 583397
Add an element that transforms still images into a video stream
Last modified: 2011-05-20 06:26:55 UTC
Add an element that takes a PNG or JPEG file as input and produces a video stream on the source pad.
Created attachment 135061 [details] [review] A patch that adds the suggested element to gst-plugins-bad This patch adds an element named "stillsrc" to gst-plugins-bad. The element is currently beta quality. It borrows a basic video push source framework from videotestsrc and plugs in file readers using libjpeg and libpng.
You probably want to have a look at the freeze element in gst-p-bad.
Thanks for the tip ;) I was aware of freeze when this component was written, but we were having problems with it in our test pipelines, and writing a custom component solved the client's problem faster than debugging it. The reason we are still putting it out now is (1) partly to satisfy licensing requirements, and (2) there is some interest in transforming it into a slideshow/image playlist element that would be a useful contribution. As time permits I intend to move to a design with more code reuse.
It would probably make more sense to use the gstreamer elements for decoding jpg/png/etc images. You could create a slideshow/image playlist element then as a bin that includes the freeze element and the image decoders. That will mean less code duplication ;)
There's the imagefreeze element in gst-plugins-good now since a few releases, which does exactly this.