# wowza4.4.1: getStartTimecode() & getMaxTimecode()

**URL:** <https://community.wowza.com/t/wowza4-4-1-getstarttimecode-getmaxtimecode/46824>\
**Category:** Wowza Streaming Engine\
**Created:** [March 30, 2016, 12:23pm UTC](https://community.wowza.com/t/wowza4-4-1-getstarttimecode-getmaxtimecode/46824 "2016-03-30T12:23:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oliver\_Huang](https://avatars.discourse-cdn.com/v4/letter/o/848f3c/32.png) [@Oliver\_Huang](https://community.wowza.com/u/Oliver_Huang)\
**Post date:** [March 30, 2016, 12:23pm UTC](https://community.wowza.com/t/wowza4-4-1-getstarttimecode-getmaxtimecode/46824/1 "2016-03-30T12:23:58Z")

</div>

Hi,

I am trying to find a duration of the stream for rtmp and hls.

I see that the

```auto
IMediaStream.getMaxTimecode()

```

returns a duration of the stream. (possibly rtmp? if the incoming stream is rmtp)

and

```auto
LiveStreamPacketizerCupertinoChunk.getStartTimecode()

```

for each TsChunk’s start time in milliseconds duration from the first ts chunk(0)

My question are,

1. is this two timeCode are synced?

(I understand that there is a delay between the two but are they counted in the same way based on the same stream? or counted individually?)

1. it looks like

```auto
LiveStreamPacketizerCupertinoChunk.getStartTimecode()

```

might be just a sum of each ts’s duration… is it a sum of the ts chunk’s duration or the actual timecode

Thank you

Oli

---

<div class="post-metadata">

**Author:** ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)\
**Post date:** [May 9, 2016, 1:49am UTC](https://community.wowza.com/t/wowza4-4-1-getstarttimecode-getmaxtimecode/46824/2 "2016-05-09T01:49:43Z")

</div>

Hello Oli

1. These two are not synced, and the answer to number 2 covers the reason for that.

2. The LiveStreamPacketizerCupertinoChunk.getStartTimecode() returns the sum of each ts file’s duration in milliseconds.

Regards,

Jason Hatchett
