To make it absolutely clear; I think that the gstreamer developers are doing a great job!<br><br>I also absolutely think that they also appreciate &quot;user input&quot; (in this case, mine and Luis&#39;) on what features we&#39;d like to see in gstreamer. Therefore, I like to take the opportunity to bring up this suggestion again. I think that every time this question is brought up here on the mailinglist is strengthens the point that a &quot;snapshot element&quot; in gstreamer is a good idea and that it would increase the attractiveness of the entire gstreamer framework.
<br><br>/Fredrik Persson<br><br><div><span class="gmail_quote">On 8/2/07, <b class="gmail_sendername">Luis de Bethencourt</b> &lt;<a href="mailto:bethencourt@gmail.com">bethencourt@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Fredrik,<br>I agree. Unfortunately this won&#39;t be done in time for my need for it,<br>so I will have to dive in and do it the hard way. But it would be nice<br>to make the path for future newbies easier. Thumbs are something most
<br>video programs need and have in common<br><br>Luis de Bethencourt<br><br>On 8/2/07, Fredrik Persson &lt;<a href="mailto:fredrik.p.persson@gmail.com">fredrik.p.persson@gmail.com</a>&gt; wrote:<br>&gt; As a gstreamer newbie I started writing a small python/gstreamer app about a
<br>&gt; year ago. Fetching a snapshot out of a running videostream took me months. I<br>&gt; almost abandoned gstreamer altogether because of this. This feat, currently,<br>&gt; requires an unproportionally huge knowledge of gstreamer inner workings to
<br>&gt; accomplish.<br>&gt;<br>&gt; I also see this question appear from time to time on the mailing list.<br>&gt; Therefore, in all humbleness, I suggest to the gstream core developers to<br>&gt; incorporate into gstreamer a snapshot element that hides this mess from a
<br>&gt; regular programmer.<br>&gt;<br>&gt; Best regards,<br>&gt;<br>&gt; Fredrik Persson<br>&gt;<br>&gt; On 8/2/07, Luis de Bethencourt &lt; <a href="mailto:bethencourt@gmail.com">bethencourt@gmail.com</a>&gt; wrote:<br>
&gt; &gt; I&#39;ll give it a try this afternoon.<br>&gt; &gt;<br>&gt; &gt; Thanks a lot,<br>&gt; &gt; Luis de Bethencourt<br>&gt; &gt;<br>&gt; &gt; On 8/2/07, Tim Müller &lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk
</a>&gt; wrote:<br>&gt; &gt; &gt; On Tue, 2007-07-31 at 20:32 +0100, Luis de Bethencourt wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; ... I would need to get a pixbuf from the frame at the middle<br>&gt; &gt; &gt; &gt; of the video. First frame is not as representative because of
<br>&gt; &gt; &gt; &gt; fade ins. How can I do this in gstreamer?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; You might want to have a look at totem&#39;s video-thumbnailer for<br>&gt; &gt; &gt; inspiration. It&#39;s a bit clunky, but fairly straight-forward (basically
<br>&gt; &gt; &gt; it just uses playbin, sets it to PAUSED state, seeks, gets the last<br>&gt; &gt; &gt; frame via playbin&#39;s &quot;frame&quot; property and shoves that into a conversion<br>&gt; &gt; &gt; pipeline to get a GdkPixbuf).
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; You can probably achieve the same thing with a pipeline like:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;&nbsp;&nbsp;filesrc location=video.file ! decodebin ! ffmpegcolorspace !<br>&gt; &gt; &gt; videoscale !
<br>&gt; &gt; &gt;<br>&gt; video/x-raw-rgb,width=64,height=64,bpp=24,depth=24,red_mask=...<br>&gt; !<br>&gt; &gt; &gt; fakesink<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; and then get a RGB24 buffer via fakesink&#39;s preroll-handoff signal (which
<br>&gt; &gt; &gt; is emitted in PAUSED state), which in turn is easily convertible into a<br>&gt; &gt; &gt; GdkPixbuf or whatever you need.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Cheers<br>&gt; &gt; &gt;&nbsp;&nbsp;-Tim<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; -------------------------------------------------------------------------<br>&gt; &gt; &gt; This SF.net email is sponsored by: Splunk Inc.<br>&gt; &gt; &gt; Still grepping through log files to find problems?&nbsp;&nbsp;Stop.
<br>&gt; &gt; &gt; Now Search log events and configuration files using AJAX and a browser.<br>&gt; &gt; &gt; Download your FREE copy of Splunk now &gt;&gt;&nbsp;&nbsp; <a href="http://get.splunk.com/">http://get.splunk.com/</a><br>
&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; gstreamer-devel mailing list<br>&gt; &gt; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>
<br>&gt; &gt; &gt;<br>&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --
<br>&gt; &gt; Luis de Bethencourt Guimerį<br>&gt; &gt; luisbg<br>&gt; &gt; &lt; <a href="mailto:bethencourt@gmail.com">bethencourt@gmail.com</a>&gt;<br>&gt; &gt; GPG: B0ED1326<br>&gt; &gt;<br>&gt; &gt;<br>&gt; -------------------------------------------------------------------------
<br>&gt; &gt; This SF.net email is sponsored by: Splunk Inc.<br>&gt; &gt; Still grepping through log files to find problems?&nbsp;&nbsp;Stop.<br>&gt; &gt; Now Search log events and configuration files using AJAX and a browser.<br>&gt; &gt; Download your FREE copy of Splunk now &gt;&gt;&nbsp;&nbsp;
<a href="http://get.splunk.com/">http://get.splunk.com/</a><br>&gt; &gt; _______________________________________________<br>&gt; &gt; gstreamer-devel mailing list<br>&gt; &gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">
gstreamer-devel@lists.sourceforge.net</a><br>&gt; &gt;<br>&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>&gt; &gt;<br>&gt;<br>
&gt;<br>&gt; -------------------------------------------------------------------------<br>&gt; This SF.net email is sponsored by: Splunk Inc.<br>&gt; Still grepping through log files to find problems?&nbsp;&nbsp;Stop.<br>&gt; Now Search log events and configuration files using AJAX and a browser.
<br>&gt; Download your FREE copy of Splunk now &gt;&gt;&nbsp;&nbsp;<a href="http://get.splunk.com/">http://get.splunk.com/</a><br>&gt; _______________________________________________<br>&gt; gstreamer-devel mailing list<br>&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">
gstreamer-devel@lists.sourceforge.net</a><br>&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>&gt;<br>&gt;<br><br><br>--<br>Luis de Bethencourt Guimerį
<br>luisbg<br>&lt;<a href="mailto:bethencourt@gmail.com">bethencourt@gmail.com</a>&gt;<br>GPG: B0ED1326<br></blockquote></div><br>