[gst-devel] How to get thumbnail/preview image of a video file using GStreamer API ?
Stefan Kost
ensonic at hora-obscura.de
Wed Mar 3 22:18:15 CET 2010
Am 25.02.2010 19:05, schrieb Burka Victor:
>
> Thanks. Its almost what I'm looking for but not exactly. The point is it
> may be hard to find a correct frame. I mean it again, may be all dark,
> red, etc. So I was thinking that there is some predefined image that is
> either embedded or through some property specified as an index in a
> whole frame set, that is selected by video file creator and is "good"
> and is supposed to be used as a thumbnail image. Does it exist ? Say
> through some "preview-image" or "preview-image-index" thing ?
>
Unfortunately videos commonly don't have such metadata. I agree it would be nice
if they should at least have a timestamp to point to a good preview images
(preferably a keyframe as well),
Stefan
> Regards,
> Victor
>
>
> 25.02.10, 21:48, "sudarshan bisht":
>
> HI ,
> For this you can write a Gstreamer applications where
> you have a basic pipeline which has filesrc , decodebin , encoder (
> if you want to have encoded file as a thumbnail e.g. png or jpg )
> and filesink . Now once you have this pipeline , seek to a
> particular position in video file so that you get a valid frame
> because very first frame can have invalid/ blank data.
> After seek run this pipeline for a single frame of data
> , and you can get a thumbnail. To resize your thumbnail you can use
> video resize plugins also.
>
>
> On Thu, Feb 25, 2010 at 9:10 PM, Burka Victor
> <burka.victor at yandex.ru <mailto:burka.victor at yandex.ru>> wrote:
>
> 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.
>
> 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
> <mailto:gstreamer-devel at lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
>
> --
> Здесь спама нет http://mail.yandex.ru/nospam/sign
>
>
>
> ------------------------------------------------------------------------------
> 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