RTSP RTP客户端流,时间戳,live555 [英] RTSP RTP client streaming, timestamp, live555

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

问题描述

我有一个IP摄像机,该摄像机位于其他国家/地区(具有不同的时区),并且应用了自己的日期时间值(例如<〜> 04-16 11:30:00 ),那么我的PC所在的那一台. (例如,我的PC时间是〜2012-14-16 06:10:00 )

I have an IP camera that is located in a different country (with a different time zone) and that has it's own date-time values applied, (for example:~2012-04-16 11:30:00) then the one my PC is located at. (so my PC's time for example is ~2012-14-16 06:10:00)

我的目的: 流式传输时,我需要获取在相机中设置的日期时间值("11:30:00") (我对PC的当前本地时间不感兴趣).

My purpose: When streaming, i need to get this date-time value that is set in camera ("11:30:00") (I'm not interested in a current local time of my PC).

  • 是否可以通过RTP的时间戳计算摄像机的日期时间值?
  • 还有其他方法吗?

我正在使用Live555库,对于帧的日期时间检索,我使用的是演示时间"值,但这给了我PC的本地时间(而不是相机中设置的时间)

I'm using a Live555 library, and for frame's date-time retrieval I was using a "presentation time" value, but this gives me a local time of my PC (not the time that is set in my camera)

所以我被困在这里.

推荐答案

读取RTP数据包上的RFC

Read the RFC on RTP packet layout

请注意,时间戳记位于 0x32 的RTP数据包中.这是对流进行编码的摄像机的时间戳.

Note that the Timestamp is in the RTP packet at 0x32. This is the timestamp from the camera that encoded the stream.

对于CPP 实现,处理RTP数据包和标头(包括时间戳) ,请参阅链接.

For a CPP implementation, processing RTP packet and headers including the timestamp , see the link.

RTP数据包处理程序的Java实现此处

Java implementation of RTP packet handler here

这篇关于RTSP RTP客户端流,时间戳,live555的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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