How to get started implementing a video streaming server in c/c++?

前端 未结 2 2075
一个人的身影
一个人的身影 2020-12-15 13:39

In my project I need a dedicated server that dispatches the streams over to multiple clients.

More specificly, I\'ve a callback function that gets called to gather t

2条回答
  •  醉酒成梦
    2020-12-15 14:24

    What type of video are you planning to stream?

    There's an open source library called liveMedia available at http://www.live555.com. This c++ library is available under LGPL and implements the RTSP, RTP/RTCP protocols and payload formats for many different media types. There is a class called DeviceSource IIRC that facilitates getting data into the library. There is an active mailing list and you should be able to find lots of information by searching the archives.

    There are also a bunch of example test projects that illustrate how to stream mpeg, mp3, etc.

    Should you choose to use standardized protocols, you might want to read up on RTP and RTSP.

提交回复
热议问题