I would like to get the Timestamp sent by IP Camera(AXIS M1125) inside Sending Report (RTCP).
my solution : I try to intercept RTP packet with IRTPDePacketizerWrapper but i can’t find method in this interface to extract timestamp in RTP packet.
Do you have an other solution to get timestamp(camera IP timestamp) in RTP packet?
Hi @Momo MoKA, I see you received assistance from a support ticket. I’m sorry you didn’t receive a an answer while I was out on vacation last week. I’m going to go ahead and share the solution from your ticket for the community. Please reach out if you need anything else.
To access the AMFPacket timecodes, there are a few different methods that you can use, depending on what you want.
If you just want the latest timecode in the stream, you can call stream.getMaxTimecode(); or stream.getAudioTC(); or stream.getVideoTC(); for the audio & video respectively.
If you want to get the latest AMF Packets, you can call stream.getLastPacket(); or stream.getLastKeyFrame();. To get a list of the available AMF packets on the stream, you can call stream.getPlayPackets();. This list is constantly updating so you will need to keep track of the packet sequence numbers. With the AMF Packets, you can call packet.getAbsTimecode(); to get the packet timecode. There is also a *getTimecode();*method which is the delta offset to the previous packet of the same type.
These methods are available on all published streams. To gain access to the published stream, you can use:
IMediaStream stream = appInstance.getStreams().getStream(streamName);if(stream != null){ ...}
I’m not sure why it’s not working with this camera, but I see there is a support ticket on this and the engineers will take a look at this with you for the AXIS M125. Thank you for submitting a ticket to get it resolved.
Hello @Rose Power-Wowza Community Manager,
I make this test but i realize that stream.getVideoTC() doesn’t provide absolute timestamp coming from my camera Axis M1125.
So, how can’t i find camera timestamp through wowza?
Thanks!