H.264 RTSP Absolute TIMESTAMP

我只是一个虾纸丫 提交于 2019-12-04 11:58:44

问题


Is it possible to read an absolute timestamp from an H.264 stream sent trough RTSP from an Axis camera?

It will be necessary to know when the frame has been taken by the camera.

Thanks Andrea


回答1:


as Ralf already said - the RTP timestamps are relative to a random clock - they are only useful for computing the difference between two frames (or RTP-packets in general). For synchronizing these relative values to a wall clock you can use the RTCP sender - just have a look on the links Ralf provided.

For Axis-products using H.264 this works pretty good. In case you're also using MPEG4, the Axis firmware is buggy and the absolute timestamps in RTCP SR are not reliable - in this case you have to synchronize the relative RTP timestamps to your clients wall clock.




回答2:


Timestamps are contained in the RTP stream. RTSP is a protocol that can be used to start/control an RTP media session. I'm assuming that RTP used and you can look at the RTP header here.



来源:https://stackoverflow.com/questions/6149983/h-264-rtsp-absolute-timestamp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!