RTSP RTP client stream, timestamp, live555

I have an IP camera that is in a different country (with a different time zone), and it has its own date and time values ​​(for example: ~ 2012-04-16 11:30:00), then the one on which it is located My computer. (so, for example, my PC’s time is ~ 2012-14-16 06:10:00)

My goal: When streaming, I need to get this date value set in the camera ("11:30:00") (I'm not interested in the current local time of my PC).

  • Is there a way to calculate the date value in the camera from the RTP timestamp ?
  • Is there any other approach?

I use the Live555 library, and to get the date and time for the frame, I used the presentation time value, but this gives me the local time of my PC (and not the time set in my camera)

So, I'm stuck here.

+3
source share
1 answer

Read the RFC on the RTP package mock

Note that the timestamp is in the RTP packet at 0x32 . This is the timestamp from the camera that encoded the stream.

For the CPP implementation , processing of the RTP packet and headers, including the timestamp, see link.

The Java implementation of the RTP packet handler is here

+2
source

All Articles