<div dir="ltr"><div>Thanks Edward for second question.</div><div> </div><div>however u missed my first question below...</div><div> </div><div>Suppose I am having a file of say 1 hour duration. How many segments will be present in it?</div>
<div> </div><div>Thx</div><div>Deepak</div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 10, 2013 at 12:18 PM, Edward Hervey <span dir="ltr"><<a href="mailto:bilboed@gmail.com" target="_blank">bilboed@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
  If the stop position is unspecified in a segment, then any buffer<br>
timestamp (greater than the specified start position) is valid.<br>
<br>
  An easier solution is to use GstSegment and gst_segment_clip to figure<br>
out if a buffer timestamp is valid or not. Just feed the incoming<br>
segment events into GstSegment and let it handle the logic for you :)<br>
<br>
   Edward<br>
<div><div class="h5"><br>
On Fri, 2013-05-10 at 11:31 +0530, Deepak Jain wrote:<br>
> Hi,<br>
><br>
> I am having some confusion regarding segment.<br>
><br>
> Suppose I am having a file of say 1 hour duration. How many segment<br>
> will be present in it?<br>
><br>
><br>
><br>
> Or in other words, if one segment is only present, which I<br>
> think...then for live sources, segments's stop time will be undefined.<br>
><br>
> In that case, how we will determine that whether a particular buffer<br>
> falls in our range or not since we dont have segment's stop value.<br>
><br>
> Thanks,<br>
> Deepak<br>
</div></div>> _______________________________________________<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>
</blockquote></div><br></div>