开发者

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

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 gat开发者_开发技巧her the stream data, but no idea how to stream it over to other applications.

What's the best way to get started on this ?


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.


I think you should check communication through network sockets.

There is no network concept in C++, so you have to rely on your system API or libraries ( as boost.asio for instance )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜