# Timestamps insertion in RTMP output

**URL:** <https://community.wowza.com/t/timestamps-insertion-in-rtmp-output/46822>\
**Category:** Wowza Streaming Engine\
**Created:** [June 21, 2016, 10:11pm UTC](https://community.wowza.com/t/timestamps-insertion-in-rtmp-output/46822 "2016-06-21T22:11:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rakshith\_Shantharaj1](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@Rakshith\_Shantharaj1](https://community.wowza.com/u/Rakshith_Shantharaj1)\
**Post date:** [June 21, 2016, 10:11pm UTC](https://community.wowza.com/t/timestamps-insertion-in-rtmp-output/46822/1 "2016-06-21T22:11:24Z")

</div>

Hi,

We are feeding RTP/RTSP stream to wowza and transcoding to 3 resolution and publishing the transcoded stream using RTMPPushPublish plugin. Further in the RTMPPushPublish plugin, we are configuring the publisher to use OriginalTimecodes. Does this mean that the timestamps being inserted in the outgoing RTMP packets will exactly match the RTP timestamps in the incoming RTP stream? If not can you please tell us how timestamps are being inserted the RTMP packets.

This is the piece of code that we are using

```auto
publisher.setSendOriginalTimecodes(true);
publisher.setOriginalTimecodeThreshold(0x100000);

```

Also what does setOriginalTimecodeThreshold mean in the above code?

Thank you,

Rakshith

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [July 15, 2016, 10:45am UTC](https://community.wowza.com/t/timestamps-insertion-in-rtmp-output/46822/2 "2016-07-15T10:45:38Z")

</div>

Hi Rakshith,

It’s my understanding that Push Publisher (now known as Stream Targets) inserts new time codes if setSendOriginalTimecodes is false. In Wowza Streaming Engine Manager on the “Applications \> [liveAppName] \> Stream Targets \> [StreamTargetName]” page you should be able to see the “Advanced” tab. Check the user has the correct permissions to see this using the link below.

[How to get started as a Wowza Streaming Engine Manager administrator](https://www.wowza.com/docs/how-to-get-started-as-a-wowza-streaming-engine-manager-administrator#enableAdvanced)

In this section you can hover over a question mark for each of the properties that can be configued. Blow is the information provided for Send Original Timecodes

> Send Original Timecodes
> 
> If true, sends the source stream’s absolute timecodes (needed for adaptive bitrate streaming). Overrides the Adaptive Streaming = true setting change.

Regards,

Jason
