简体   繁体   中英

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 gather 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 )

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