C++ RTSP视频采集实现 [英] C++ RTSP video capture implementation

查看:113
本文介绍了C++ RTSP视频采集实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个非常小巧的 RTSP 客户端来从网络摄像机获取视频流.有谁知道我在哪里可以找到协议的简单解释和一些很好的例子?

I would like to develop a very tiny and small RTSP client to get the video stream from network cameras. Does anybody know where can I find a simple explanation of the protocol and some good examples?

最好的问候,

推荐答案

您通过 RTSP 协议连接到相机以查询其功能、识别流并准备/开始传输.

You connect to the camera via RTSP protocol to query its capabilities, identify streams and prepare/start transmission.

作为初始化和握手的一部分,您将发现可用的流.

As a part of initialization and handshaking, you will discover available streams.

然后您将设置 RTP 会话以通过 UDP 或共享相同的 TCP 连接接收数据.

Then you will set up RTP session(s) to receive data, over UDP or sharing the same TCP connection.

要解码媒体流,您需要将有效负载转换为进一步处理所需的纯数据.对于 IP 摄像机,您的主要兴趣可能是 MPEG-4 AVC (H.264):

To decode media streams you will convert the payload into pure data you need for further processing. With IP cameras your primary interest is perhaps MPEG-4 AVC (H.264):

这看起来像是一些(介绍性)阅读.

This looks like some (introductory) reading.

这篇关于C++ RTSP视频采集实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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