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

前端 未结 2 2071
一个人的身影
一个人的身影 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:18

    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 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题