简单的rtsp广播示例源码
我想使用 rtsp/rtp 广播我的程序的屏幕(不是静态屏幕),因为这样移动电话(至少是较新的移动电话)可以查看流。
我正在寻找一个简单的示例程序,它采用我提供的帧,使用编解码器对其进行编码,然后将其(使用 rtsp)发送到附加的任何客户端。
我在网上查看过,到目前为止我能找到的都是成熟的开源媒体服务器(如达尔文),它们太复杂了,无法用作示例,
任何帮助都值得赞赏!
R
附注 将 jpeg 发送到手机确实不是一个选择,因为这是非标准的,并且需要安装移动应用程序来解释“流”。
ps2 C、C++ 或 C# 都可以。
I want to broadcast the screen (not a static screen) of my program using rtsp/rtp since this way a mobile phone (at least the more recent ones) can view the stream.
I'm looking for a simple example program which takes the frames I offer, encodes it with a codec and then sends this (using rtsp) to any clients attached.
I've looked on the net and all I can find so far are full fledged opensource media servers (like darwin) which are just too complex to use as an example
any help appreciated!
R
p.s. sending jpegs to the mobile phone is really not an option since this is non standard and would require a mobile app to be installed to interpret the 'stream'.
p.s.2 C, C++ or C# would be fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这似乎正是我想要的: live555.com
有用的库和代码示例如何从您自己的应用程序
R中传输内容
this seems to be pretty much what I was looking for: live555.com
Useful libraries and code examples of how to stream stuff from your own app
R
我的库完全使用托管代码来完成此操作!
您可以找到该库@ http://net7mma.codeplex.com/
还有一篇CodeProject文章@ < a href="http://www.codeproject.com/Articles/507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp" rel="nofollow">http://www.codeproject.com/Articles/ 507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp
如果您还需要任何其他信息,请告诉我!
My library does this completely in managed code!
You can find the library @ http://net7mma.codeplex.com/
There is also a CodeProject article @ http://www.codeproject.com/Articles/507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp
If you need anything else let me know!
这似乎是一个坏主意... RTSP 很复杂,因此运行精简版本听起来像是对问题的公开邀请...但是...如果您想深入研究并从此处的其他项目中删除相关代码是一个很好的列表,它列出了一些C/C++ 开源 rtsp 服务器..祝你好运。
This seems like a bad idea... RTSP is complex, so running a stripped down version sounds like an open invitation to problems... but... If you want to dive in and rip the relevant code out of some other project here is a good list to start with, It' lists a few C/C++ open source rtsp servers.. Good luck.
我同意许多开源流媒体服务器太重了。 然而,设置 VLC 非常简单:
请务必留意查看|消息...日志中可能有一些有趣的警告或错误。 我希望这有帮助!
I agree that many OpenSource streaming servers are too heavy. However, setting up VLC is very easy:
Be sure to keep an eye on View|Messages... There may be some interesting warnings or errors in the log. I hope this helps!
如果你真的想要它的源代码,我推荐http://ffmpeg.org/。 它不像 VLC 那样简单,但您有更多的控制权。 该项目包含一些帮助您入门的示例。
If you really want it source code, I recommend http://ffmpeg.org/. It is not as easy VLC but you have a lot more control. The project includes some examples to get you started.