# LiveStreamRecord based in RTP timestamp

**URL:** <https://community.wowza.com/t/livestreamrecord-based-in-rtp-timestamp/49733>\
**Category:** Wowza Streaming Engine\
**Created:** [September 21, 2017, 7:38pm UTC](https://community.wowza.com/t/livestreamrecord-based-in-rtp-timestamp/49733 "2017-09-21T19:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Cena](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@John\_Cena](https://community.wowza.com/u/John_Cena)\
**Post date:** [September 21, 2017, 7:38pm UTC](https://community.wowza.com/t/livestreamrecord-based-in-rtp-timestamp/49733/1 "2017-09-21T19:38:04Z")

</div>

Hi,

I have an IP camera live streaming to wowza. The camera send me motionDetected = true and motionDetected = false events based on its motion sensor. Along with events camera also send RTP timestamp of video frame where the event happened.

Let say motionDetected = true came with RTP timestamp X and motionDetected = false came with RTP timestamp Y.

I want to record chunks of video between RTP timestamp X and Y while it streaming. I could not find an API to do so. Any help would be much appreciated.
