<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
&nbsp;It&#39;s more difficult to smoothly stop the recording, though. &nbsp;You&#39;ll have to<br>
block the queue element behind the tee (see docs/design/part-block.txt in the<br>
source tree). &nbsp;In addition, you have to push an EOS into it to make sure the<br>
muxer writes duration and index to the file.<br>
<br>
&nbsp;A last caveat is the timestamps. &nbsp;The buffer timestamps start running as soon<br>
as the v4l2src starts playing, which makes it appear in the output file as if<br>
it starts with a big hole. &nbsp;The only way I found to fix that is to add an<br>
adapter element that shifts the buffer timestamps (see<br>
<a href="http://bugzilla.gnome.org/show_bug.cgi?id=561224" target="_blank">http://bugzilla.gnome.org/show_bug.cgi?id=561224</a> ).</blockquote><div><br>The &#39;reset&#39; property must be setted to true just before dinamically linking the encoder tail or after linking it?<br>
Is it possible to record various segments in the same file using this method?<br>I mean, for the first segment you set the base_time to 0, but if I want to encode another segment in the same file, by unliking the encoding tail and relinking it later, if I set the &#39;reset&#39; property to TRUE this will reset the base_time to 0 again, when it should be setted to the elapsed time of the previous segment.<br>
One last thing, if I pause the recording, by unlinking the encoding tail and setting its state to PAUSED, how do I send an EOS event to the muxer (which is not linked anymore) if I defenitively want to stop the recording?<br>
</div></div><br>