[gst-devel] How to get thumbnail/preview image of a video file using GStreamer API ?

Stefan Kost ensonic at hora-obscura.de
Fri Feb 26 09:03:08 CET 2010


Am 25.02.2010 17:40, schrieb Burka Victor:
> Hello,
> 
> Can you help me with the following: I need to display a thumbnail image of my video file in the video player playlist that I'm developing. So was looking in the GStreamer API how to get a thumbnail image. I understand I might depend on a file format, but is it any way to get that picture ? I found in the Internet something called "preview" or "preview-image" tags that I can retrieve, but again I didn't find how in the API.

you can use the "frame" property on playbin2 (in conjuction with "convert-frame"
action signal). If you want to use decode bin directly look at
gst-plugins-base/gst/playback/gstscreenshot.c
for what this is doing and refit it to your app.

Stefan

> 
> Thanks,
> Victor
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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