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'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"><<a href="mailto:lfarkas@lfarkas.org">lfarkas@lfarkas.org</a>></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>
> Marc schrieb:<br>
>> Thank you very much Arnout.<br>
>><br>
>> Using the method you described I am able to record from the webcam every<br>
>> time the user presses a button. As you pointed, also, I am having<br>
>> trouble with timestamps. In my case, since I just need to record one<br>
>> file at time, I would be ok to reset the base time for the v4l2src<br>
>> element. However ,when I try to set the base_time to 0 for this element<br>
>> it stops streaming new images.<br>
>><br>
>> Since I'd like to stick to the "default" gstreamer packages, is there a<br>
>> way to set the base_time for v4l2src without it being stopped ?<br>
><br>
> Another (kind of hackish) approach is to have a buffer-probe handler on the<br>
> sink-pad of the first element on the record pipeline. This could rewrite the<br>
> timestamps of the incoming buffers.<br>
<br>
</div>what'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>
Levente "Si vis pacem para bellum!"<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>