[gst-devel] generate thumbnail from video file
Tim-Philipp Müller
t.i.m at zen.co.uk
Tue Feb 23 14:56:18 CET 2010
On Tue, 2010-02-23 at 17:54 +0530, Jyoti wrote:
> I tried running the pipeline below but no luck.
> It doesn't generate any image file.
The pipeline ending with ... ! gdkpixbufsink is not supposed to write
image files, it will create GdkPixbuf objects for the application (which
the app may access either via bus messages or using the last-pixbuf
property). If you want a file, you need something like
... ! jpegenc ! filesink location=foo.jpg
or
... ! pngenc ! filesink location=foo.png
> And alternatively I tried compiling the code from link.
You tried? But didn't succeed?
> Is gtk library needed to run gdkpixbufsink?
No, just gdk-pixbuf (which is in the gtk+ tarball, but does not depend
on either gtk or gdk; if the element shows up in gst-inspect, it should
work).
Cheers
-Tim
>
> On Mon, Feb 22, 2010 at 2:45 PM, Tim-Philipp Müller <t.i.m at zen.co.uk>
> wrote:
> On Mon, 2010-02-22 at 13:38 +0530, Jyoti wrote:
>
> > Can't I do this using gstreamer pipeline or gstreamer
> application?
>
>
> You can find an example here:
>
> http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/snapshot/snapshot.c
>
> Alternatively, a pipeline like like this may do as well:
>
> uridecodebin uri=file:///.... ! ffmpegcolorspace !
> videoscale !
> gdkpixbufsink
More information about the gstreamer-devel
mailing list