如何开始在c / c ++中实现视频流服务器? [英] How to get started implementing a video streaming server in c/c++?

查看:139
本文介绍了如何开始在c / c ++中实现视频流服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我需要一个专用服务器将流分派到多个客户端。



更具体地说,我有一个回调函数,



这是最好的开始方式是什么?



有一个名为liveMedia的开源库可在

a href =http://www.live555.com =nofollow> http://www.live555.com 。这个c ++库在LGPL下可用,并且为许多不同的媒体类型实现RTSP,RTP / RTCP协议和有效载荷格式。有一个类称为DeviceSource IIRC,有助于将数据导入库。有一个活动的邮件列表,你应该能够通过搜索档案找到大量的信息。



还有一堆示例测试项目,说明如何流mpeg,mp3等。



如果您选择使用标准化协议,您可能需要阅读 RTP RTSP


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.

这篇关于如何开始在c / c ++中实现视频流服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆