# Date and time of the RTSP live stream frame

**URL:** https://community.wowza.com/t/date-and-time-of-the-rtsp-live-stream-frame/34881
**Category:** Wowza Streaming Engine
**Created:** [August 13, 2010, 4:21pm UTC](https://community.wowza.com/t/date-and-time-of-the-rtsp-live-stream-frame/34881 "2010-08-13T16:21:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Deleze\_Deleze](https://avatars.discourse-cdn.com/v4/letter/d/b3f665/32.png) [@Deleze\_Deleze](https://community.wowza.com/u/Deleze_Deleze)
#### Post date: [August 13, 2010, 4:21pm UTC](https://community.wowza.com/t/date-and-time-of-the-rtsp-live-stream-frame/34881/1 "2010-08-13T16:21:52Z")

</div>

Hi all,

I record, on demand a RTSP live stream from an Axis Camera. When I get the command, I want to know the date and time of the last frame that was read from the RTSP stream.

Actually, I use the system time, but it is not precise enough.

Is it possible to get this information from the IMediaStream or the RTPSession or to compute it?

Olivier.

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [August 13, 2010, 7:45am UTC](https://community.wowza.com/t/date-and-time-of-the-rtsp-live-stream-frame/34881/2 "2010-08-13T07:45:56Z")

</div>

You can get time down to the nano second using System.nanoTime() (or something like that).

Charlie

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [August 16, 2010, 8:17pm UTC](https://community.wowza.com/t/date-and-time-of-the-rtsp-live-stream-frame/34881/3 "2010-08-16T20:17:28Z")

</div>

I’m not sure if it will help with this, but take a look at this post and the methods for inspecting packets:

[http://community.wowza.com/t/-/243](http://community.wowza.com/t/-/243)

Richard

---

<div class="post-metadata">

### Author: ![Deleze\_Deleze](https://avatars.discourse-cdn.com/v4/letter/d/b3f665/32.png) [@Deleze\_Deleze](https://community.wowza.com/u/Deleze_Deleze)
#### Post date: [August 14, 2010, 9:57pm UTC](https://community.wowza.com/t/date-and-time-of-the-rtsp-live-stream-frame/34881/4 "2010-08-14T21:57:53Z")

</div>

I Charlie,

I must describe a little bit what I want to do.

Based on the this thread [https://www.wowza.com/forums/showthread.php?t=349](https://www.wowza.com/forums/showthread.php?t=349), I split record in small chunk. The recorded stream come from a RTSP of a video camera.

When I split the file, I search in the frame list for the video key frame(s) to be written on the disk. I want to know the time of the frame(s). If it is possible the timestamp of the image. I need this information to maintain metadata of the record files.

Thanks you for your support.

Olivier.
