Hello,<br><br>Thanks to your advice I managed to adapt the webcam viewer in the pygst tutorial (<a href="http://pygstdocs.berlios.de/pygst-tutorial/webcam-viewer.html">http://pygstdocs.berlios.de/pygst-tutorial/webcam-viewer.html</a>) to perfom on demand recording without needing to stop the webcam live preview. You&#39;ll find the file attached to this mail. To overcome the timestamp issue the application modifies the buffer timestamp (using the buffer-probe approach).<br>
<br>I must say that this technique works way more fluently in an application made in Clutter than the example presented here. I guess it may be because the clutter version does not rescale the video output like the attached example.<br>
<br>Thank for your wise advice, folks.<br><br><div class="gmail_quote">2009/2/12 Farkas Levente <span dir="ltr">&lt;<a href="mailto:lfarkas@lfarkas.org">lfarkas@lfarkas.org</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Stefan Kost wrote:<br>
&gt; Marc schrieb:<br>
&gt;&gt; Thank you very much Arnout.<br>
&gt;&gt;<br>
&gt;&gt; Using the method you described I am able to record from the webcam every<br>
&gt;&gt; time the user presses a button. As you pointed, also, I am having<br>
&gt;&gt; trouble with timestamps. In my case, since I just need to record one<br>
&gt;&gt; file at time, I would be ok to reset the base time for the v4l2src<br>
&gt;&gt; element. However ,when I try to set the base_time to 0 for this element<br>
&gt;&gt; it stops streaming new images.<br>
&gt;&gt;<br>
&gt;&gt; Since I&#39;d like to stick to the &quot;default&quot; gstreamer packages, is there a<br>
&gt;&gt; way to set the base_time for v4l2src without it being stopped ?<br>
&gt;<br>
&gt; Another (kind of hackish) approach is to have a buffer-probe handler on the<br>
&gt; sink-pad of the first element on the record pipeline. This could rewrite the<br>
&gt; timestamps of the incoming buffers.<br>
<br>
</div>what&#39;s the right solution? ie. none hackish? or there is currently no<br>
solution? it seems to be a very basic thing to me.<br>
<div class="Ih2E3d"><br>
--<br>
 &nbsp;Levente &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Si vis pacem para bellum!&quot;<br>
<br>
</div><div><div></div><div class="Wj3C7c">------------------------------------------------------------------------------<br>
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)<br>
software. With Adobe AIR, Ajax developers can use existing skills and code to<br>
build responsive, highly engaging applications that combine the power of local<br>
resources and data with the reach of the web. Download the Adobe AIR SDK and<br>
Ajax docs to start building applications today-<a href="http://p.sf.net/sfu/adobe-com" target="_blank">http://p.sf.net/sfu/adobe-com</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Marc S.<br>