[Live-devel] Presentation time issue when device clock change

Eric Beuque eric.beuque at jet1oeil.com
Wed Mar 3 07:11:19 PST 2021


Hi,

I have an issue using the presentation time of the RTSP stream of a camera.
When the clock changes due to a manual change or NTP synchronisation,
presentation times are affected, which lead to get next presentation time
very bigger or lower than the previous timestamp.

For exemple, i got this on a stream.

audio/PCMA: Received 320 bytes.  Presentation time: 1614775509.338000 NPT:
29,069000
audio/PCMA: Received 320 bytes.  Presentation time: 1614775509.338000 NPT:
29,069000
video/H264: Received 37626 bytes. Presentation time: 1614775509.298000 NPT:
29,029000
--- camera time changed ---
audio/PCMA: Received 320 bytes.  Presentation time: 1614776464.142000 NPT:
983,873000

This fail the stream packet synchronisation.

My question is how i'm supposed to deal with a camera clock change when the
stream is already running ?
Is RTSP able to notify that the reference clock change ?
I think i'm supposed to do something wit the "wall clock"  and/or the RTCP
sender report, but i don't find how to retrieve the reference clock.

Best regards,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20210303/9b9c7653/attachment.htm>


More information about the live-devel mailing list