简体   繁体   中英

C++ RTSP video capture implementation

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?

Best regards,

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.

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

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.

Try GStreammer library. It is modular, wery flexible library, which can be used for streamming (both client and server). Just check the docs and pick right plugins.

GStreammer could be used in two ways: as a commandline tool or as a library in your project, depending on your requirements.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM