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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 <[hidden email]> wrote: Hello, -- Regards, Sudarshan Bisht ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 ? Regards, Victor 25.02.10, 21:48, "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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Burka Victor
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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Burka Victor
On Thu, 2010-02-25 at 18:40 +0300, Burka Victor wrote:
> 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. There's also this minimal example: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/tests/examples/snapshot/snapshot.c The preview-image/image tags are more for album art embedded in audio files and the like, so probably not what you're looking for. Cheers -Tim ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Burka Victor
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 > <[hidden email] <mailto:[hidden email]>> 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 > [hidden email] > <mailto:[hidden email]> > 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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |