H.264 RTSP 绝对时间戳 [英] H.264 RTSP Absolute TIMESTAMP

查看:99
本文介绍了H.264 RTSP 绝对时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从 Axis 相机通过 RTSP 发送的 H.264 流中读取绝对时间戳?

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.

谢谢安德烈亚

推荐答案

正如 Ralf 已经说过的那样 - RTP 时间戳是相对于随机时钟的 - 它们仅用于计算两个帧之间的差异(或一般的 RTP 数据包).要将这些相对值同步到挂钟,您可以使用 RTCP 发送器 - 只需查看 Ralf 提供的链接即可.

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.

对于使用 H.264 的 Axis 产品,这非常有效.如果您还使用 MPEG4,则 Axis 固件存在错误,并且 RTCP SR 中的绝对时间戳不可靠 - 在这种情况下,您必须将相对 RTP 时间戳同步到您的客户端挂钟.

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.

这篇关于H.264 RTSP 绝对时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆