<div dir="ltr">Hi Lee,<div><br></div><div>I don't think you can have multiple pipeline clocks. What you want is to run something similar to the "running time" clock, but just for your recording. </div><div><br>
</div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">running-time = absolute-time - base-time</span><br></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br>
</span></div><div><font color="#000000" face="Times New Roman" size="3"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-clocks.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-clocks.html</a></font><br>
</div><div><font color="#000000" face="Times New Roman" size="3"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html#gst-pipeline-set-clock">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html#gst-pipeline-set-clock</a></font><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 July 2014 04:45, Lee Matthews <span dir="ltr"><<a href="mailto:lma@spaceapplications.com" target="_blank">lma@spaceapplications.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Luis.<br>
<br>
Do you know if it is possible for a branch (ie after a tee) to have its own clock separate from the pipeline clock ?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Lee<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
From: "Luis de Bethencourt" <<a href="mailto:luis@debethencourt.com">luis@debethencourt.com</a>><br>
To: "Discussion of the development of and with GStreamer" <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>><br>
Sent: Friday, 4 July, 2014 6:00:06 PM<br>
Subject: Re: Pausing/resuming a video recording<br>
<br>
<br>
<br>
I have never tried something similar to this. But I can imagine you are having timestamp related problems.<br>
<br>
<br>
When you resume recording, the timestamp of those frames is the real time and doesn't account for the (let's call it) "running recording time". You are going to have to manipulate these so they follow continuously.<br>
<br>
<br>
Luis<br>
<br>
<br>
<br>
On 3 July 2014 05:42, Lee Matthews < <a href="mailto:lma@spaceapplications.com">lma@spaceapplications.com</a> > wrote:<br>
<br>
<br>
Hi,<br>
<br>
I'm streaming video using the vp8 codec in a webm container. I can record the video also by using a tee and piping the video to a filesink.<br>
<br>
To start/stop recording, I dynamically add/remove a group of elements to a tee in the pipeline.<br>
<br>
I also wish to be able to pause/resume the recording. I do this using output-selector to select between filesink and fakesink, the pipeline remaining in the PLAYING state. So when recording normally the video goes to filesink, during a pause it goes to fakesink, and on resume it goes back to filesink.<br>
<br>
My pipeline looks like the following :<br>
<br>
<br>
v4l2sec -- caps filter -- videoconvert -- vp8enc -- webmmux -- tee -- queue -- multisocketsink<br>
|<br>
|-----queue -- output-selector -- filesink<br>
|<br>
|--------- fakesink<br>
<br>
<br>
If I record a video and say pause the video at 10 seconds, resume the video at 20 seconds and stop the video at 30 seconds. When playing back all is ok until 10 seconds, then the frame freezes until 20 seconds, at which point the video continues ok to 30 seconds.<br>
<br>
Does anyone know how to resolve this ?<br>
<br>
Thanks<br>
Lee<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>