[gst-devel] Start recording from a webcam already playing
Marc
marcsabat at gmail.com
Fri Feb 13 18:27:11 CET 2009
Hello,
Thanks to your advice I managed to adapt the webcam viewer in the pygst
tutorial (http://pygstdocs.berlios.de/pygst-tutorial/webcam-viewer.html) 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).
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.
Thank for your wise advice, folks.
2009/2/12 Farkas Levente <lfarkas at lfarkas.org>
> Stefan Kost wrote:
> > Marc schrieb:
> >> Thank you very much Arnout.
> >>
> >> Using the method you described I am able to record from the webcam every
> >> time the user presses a button. As you pointed, also, I am having
> >> trouble with timestamps. In my case, since I just need to record one
> >> file at time, I would be ok to reset the base time for the v4l2src
> >> element. However ,when I try to set the base_time to 0 for this element
> >> it stops streaming new images.
> >>
> >> Since I'd like to stick to the "default" gstreamer packages, is there a
> >> way to set the base_time for v4l2src without it being stopped ?
> >
> > Another (kind of hackish) approach is to have a buffer-probe handler on
> the
> > sink-pad of the first element on the record pipeline. This could rewrite
> the
> > timestamps of the incoming buffers.
>
> what's the right solution? ie. none hackish? or there is currently no
> solution? it seems to be a very basic thing to me.
>
> --
> Levente "Si vis pacem para bellum!"
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code
> to
> build responsive, highly engaging applications that combine the power of
> local
> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
--
Marc S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090213/d611fd27/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webcam_noninterrupted_recorder.py
Type: text/x-python
Size: 5571 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090213/d611fd27/attachment.py>
More information about the gstreamer-devel
mailing list