简单的rtsp广播示例源码

发布于 2024-07-26 20:43:44 字数 323 浏览 4 评论 0原文

我想使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

风向决定发型 2024-08-02 20:43:44

这似乎正是我想要的: 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

楠木可依 2024-08-02 20:43:44

我的库完全使用托管代码来完成此操作!

您可以找到该库@ 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!

紫瑟鸿黎 2024-08-02 20:43:44

这似乎是一个坏主意... 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.

滥情稳全场 2024-08-02 20:43:44

我同意许多开源流媒体服务器太重了。 然而,设置 VLC 非常简单:

  1. 文件|打开文件...
  2. 自定义:screen://
  3. 检查串流/保存
  4. 单击设置...
  5. 设置您首选的串流选项(请务必将分辨率更改为较小的值,以使其在手机上快速串流)。
  6. 单击“确定”
  7. 单击“确定”
  8. 完成!

请务必留意查看|消息...日志中可能有一些有趣的警告或错误。 我希望这有帮助!

I agree that many OpenSource streaming servers are too heavy. However, setting up VLC is very easy:

  1. File|Open File...
  2. Customize: screen://
  3. Check Stream/Save
  4. Click Settings...
  5. Setup your preferred stream options (Be sure to change the resolution to something small to make it stream fast on your cell phone).
  6. Click Ok
  7. Click Ok
  8. Done!

Be sure to keep an eye on View|Messages... There may be some interesting warnings or errors in the log. I hope this helps!

我三岁 2024-08-02 20:43:44

如果你真的想要它的源代码,我推荐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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文