RTSP命令向摄像机请求当前FPS [英] RTSP Command to Request Camera for Current FPS

查看:69
本文介绍了RTSP命令向摄像机请求当前FPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的RTSP服务器中,我需要每秒知道来自Axis Camera的流的当前fps是什么.

In my RTSP server, i need to know what is the current fps of the stream from Axis Camera every second.

是否有任何特定的RTSP命令,我可以通过这些命令请求摄像机将FPS信息发送到RTSP服务器.?

is there any specific RTSP Command through which i can request camera to send FPS information to RTSP server..??

谢谢

Prateek

推荐答案

RTSP中向接收方通知帧速率的唯一官方方法是在DESCRIBE响应的SDP内部.

The only official way in RTSP to inform a receiver about the frame rate is inside the SDP of the DESCRIBE response.

直接通过 a = framerate:< frame rate> 进行定义,该定义仅给出最大帧速率.或在您的流的配置信息中,该信息也应通过SDP在 a = rtpmap:< payload type><编码名称>/<时钟频率>[/<编码参数>] 或定期在流中.

Either directly via a=framerate:<frame rate> which gives by definition only the maximum frame rate. Or inside the configuration information of your stream which shall also sent via SDP in a=rtpmap:<payload type> <encoding name>/<clock rate> [/<encoding parameters>] or regularly inside the stream.

更好的方法是通过使用每个传入帧的时间戳来计算接收方的帧速率.

A better way is to compute the frame rate on your receiver side by using the timestamp of every incoming frame.

大多数最新的AXIS设备(使用H.264的设备)都使用相机的绝对时间戳记(请检查相机设置!).较旧设备的固件存在故障,您不能依靠相机发送的时间戳记-只有两个帧的时差才是精确的.

Most newer AXIS-devices (those using H.264) using the absolute Timestamp of the camera (check the camera setup!) The firmware of the older devices is buggy and you can not rely on the timestamp sent by the camera - only on the time-difference of two frames are exact.

詹斯.

这篇关于RTSP命令向摄像机请求当前FPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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