<div class="gmail_quote">On Mon, Feb 9, 2009 at 11:05 PM, René Stadler <span dir="ltr">&lt;<a href="mailto:mail@renestadler.de">mail@renestadler.de</a>&gt;</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>
&gt; Hi,<br>
&gt;<br>
&gt; I am trying to build an application more or less like Cheese<br>
&gt; (<a href="http://projects.gnome.org/cheese/" target="_blank">http://projects.gnome.org/cheese/</a>). However I would like to switch from<br>
&gt; just showing the webcam to a recording state &quot;smoothly&quot; when the user<br>
&gt; press the record button.<br>
&gt;<br>
&gt; So far I have tried the following approaches without succes:<br>
&gt;<br>
&gt; &nbsp; &nbsp;1. Changing location property of filesink while playing (from<br>
&gt; &nbsp; &nbsp; &nbsp; /dev/null to a real path). This is not possible (filesink tells me<br>
&gt; &nbsp; &nbsp; &nbsp; so).<br>
&gt; &nbsp; &nbsp;2. Open 2 different pipelines both of them pointing to the same<br>
&gt; &nbsp; &nbsp; &nbsp; v4l2src (no success since only one pipeline can access the webcam<br>
&gt; &nbsp; &nbsp; &nbsp; at once).<br>
&gt;<br>
&gt; Since these approaches were not working I tried to set the pipeline to<br>
&gt; STATE_NULL, change the location of the filesink, and then set the<br>
&gt; pipeline to STATE_PLAYING again. However, when setting the pipeline to<br>
&gt; STATE_NULL, no STATE_CHANGE event is thrown. Is this the expected behavior ?<br>
&gt;<br>
&gt; Any ideas ? Can the smooth &quot;play-to-record&quot; be accomplished with GStreamer ?<br>
&gt;<br>
&gt; Thank you<br>
&gt; PD. For the record: I am programming in Python and the pipeline I am<br>
&gt; trying to manage is the following:<br>
&gt;<br>
&gt; gst-launch-0.10 v4l2src ! tee name=videoout ! queue ! videorate !<br>
&gt; video/x-raw-yuv,fps=15 ! queue ! theoraenc quality=60 ! queue ! muxout.<br>
&gt; pulsesrc ! audio/x-raw-int,rate=22000,channels=1,width=16 ! queue !<br>
&gt; audioconvert ! vorbisenc ! queue ! muxout. oggmux name=muxout ! filesink<br>
&gt; location=test.ogg videoout. ! queue ! ffmpegcolorspace ! ximagesink<br>
&gt;<br>
&gt; --<br>
&gt; Marc S.<br>
&gt;<br>
<br>
I added an element called &quot;camerabin&quot; 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> &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>