<div class="gmail_quote">On Mon, Feb 9, 2009 at 11:05 PM, René Stadler <span dir="ltr"><<a href="mailto:mail@renestadler.de">mail@renestadler.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Marc wrote:<br>
> Hi,<br>
><br>
> I am trying to build an application more or less like Cheese<br>
> (<a href="http://projects.gnome.org/cheese/" target="_blank">http://projects.gnome.org/cheese/</a>). However I would like to switch from<br>
> just showing the webcam to a recording state "smoothly" when the user<br>
> press the record button.<br>
><br>
> So far I have tried the following approaches without succes:<br>
><br>
> 1. Changing location property of filesink while playing (from<br>
> /dev/null to a real path). This is not possible (filesink tells me<br>
> so).<br>
> 2. Open 2 different pipelines both of them pointing to the same<br>
> v4l2src (no success since only one pipeline can access the webcam<br>
> at once).<br>
><br>
> Since these approaches were not working I tried to set the pipeline to<br>
> STATE_NULL, change the location of the filesink, and then set the<br>
> pipeline to STATE_PLAYING again. However, when setting the pipeline to<br>
> STATE_NULL, no STATE_CHANGE event is thrown. Is this the expected behavior ?<br>
><br>
> Any ideas ? Can the smooth "play-to-record" be accomplished with GStreamer ?<br>
><br>
> Thank you<br>
> PD. For the record: I am programming in Python and the pipeline I am<br>
> trying to manage is the following:<br>
><br>
> gst-launch-0.10 v4l2src ! tee name=videoout ! queue ! videorate !<br>
> video/x-raw-yuv,fps=15 ! queue ! theoraenc quality=60 ! queue ! muxout.<br>
> pulsesrc ! audio/x-raw-int,rate=22000,channels=1,width=16 ! queue !<br>
> audioconvert ! vorbisenc ! queue ! muxout. oggmux name=muxout ! filesink<br>
> location=test.ogg videoout. ! queue ! ffmpegcolorspace ! ximagesink<br>
><br>
> --<br>
> Marc S.<br>
><br>
<br>
I added an element called "camerabin" to gst-plugins-bad today, I think it is<br>
exactly what you are looking for.</blockquote></div><br>can you tell me a little bit more about this bin? any docs or usage?<br>thanks.<br><br clear="all"><br>-- <br> Levente "Si vis pacem para bellum!" <br>