What is 'stream time of the segment'?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

What is 'stream time of the segment'?

wl2776
Administrator
Unfortunately, the article in the GTK-docs about GstSegment doesn't reveal too much details about GstSegment::time field.
It says that it is the 'stream time of the segment'.
part-segments.txt on the gstreamer/dosc/design/ doesn't mention it also.
part-synchronization.txt says that the "stream time is also known as the position in the stream and is a value between 0 and the total duration of the media file".

So, could anyone clarify if that definition of the stream time applies to the segment stream time?

If I am right, then GstSegment::time should be a moment of the segment start, provided stream playback starts from 0.
Reply | Threaded
Open this post in threaded view
|

Re: What is 'stream time of the segment'?

Marco Ballesio
Hi,

On Mon, Jan 17, 2011 at 4:13 PM, wl2776 <[hidden email]> wrote:

>
> Unfortunately, the article in the GTK-docs about GstSegment doesn't reveal
> too much details about GstSegment::time field.
> It says that it is the 'stream time of the segment'.
> part-segments.txt on the gstreamer/dosc/design/ doesn't mention it also.
> part-synchronization.txt says that the "stream time is also known as the
> position in the stream and is a value between 0 and the total duration of
> the media file".
>
> So, could anyone clarify if that definition of the stream time applies to
> the segment stream time?

I tend to agree with this definition. To rephrase what's in the
documentation, the "time" field in the GstSegment structure can be
seen as the position in the stream at which the segment takes place.

A better description on hot the start and time fields are to be
interpreted can be found at:

http://www.gstreamer.net/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstEvent.html#gst-event-new-new-segment-full

Regards



>
> If I am right, then GstSegment::time should be a moment of the segment
> start, provided stream playback starts from 0.
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/What-is-stream-time-of-the-segment-tp3221217p3221217.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel