使用 RTP 从 C# 流式传输 Avi 文件

发布于 10-14 00:15 字数 160 浏览 10 评论 0原文

我有一个 C# 中的视频文件 (.avi mpeg4\xVid\ect..) 的读取/查找输入流,我想将其流式传输到启用了跳转到 X 时刻功能的视频播放器。我怎样才能实现这个?
我听说RTP可能是一个很好的协议。

我真正想要的是一个可以帮助我的 C# 库。

提前致谢。

I have a read/seek input stream of a video file (.avi mpeg4\xVid\ect..) in C# and I would like to stream it to a video player with jump to moment X feature enabled. How can I implement this?
I heard that RTP might be a good protocol.

What I'm really looking for is a library in C# that will help me out.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

微凉徒眸意2024-10-21 00:15:18

是的,如果您有 1890 欧元,Streamcoders 解决方案非常好。但如果您不想付费,您应该查看一些免费的库或从头开始编写自己的库。

看看这些带有 C# 源代码的文章:
RTP VOIP 库项目
如何在 .NET 中使用托管 RTP 类

CodeProject 上的文章:
如何使用 C# 构建具有 SIP、SDP、RTP 和 RTCP 的 .NET 软电话
如何使用 .NET 中的托管 RTP API 类来创建您的多播系统

请不要忘记在实现您的 WPF 库时共享它。

Yes, Streamcoders solution is very good if you have some €1890. But if you do not want to pay money you should look at some free libraries or write your own from scratch.

Take a look at these articles with C# sources:
RTP VOIP Library Project
How to use the managed RTP classes in .NET

And another good articles at CodeProject:
How to Build a .NET Softphone in C# with SIP, SDP, RTP and RTCP
How to use the managed RTP API classes in .NET to create your multicasting systems

Please do not forget to share your WPF library when you will implement it.

彻夜缠绵2024-10-21 00:15:18

根据问题的不同,有一个更灵活的解决方案。

https://net7mma.codeplex.com/

它相当于一个完全兼容的 RFC2326 堆栈,因此它还支持 RFC3550 和各种其他技术,使您能够提供 RtspServer,如果需要,还可以提供 HttpServer(相对于 RtspServer,可以在进程内或进程外)

还有SIP 和各种其他互联网和 VoIP 技术(例如 RFC2435 编码器/解码器)的实现;所有这些都是使用完全托管的代码编写的。

支持各种其他 RTP 配置文件,例如 JPEG、H.264 等,以及正在进行的图像编解码器的完全托管实现。

为了倡导 StreamCoders,我想说我几年前就看过他们的库,如果您没有以下任何限制,我会说它很棒:

  • 您不'不能在 Mono 上运行,也不能在 Linux 上运行。
  • 您不想同时读取和写入同一个容器文件
  • 您只需要 MMX 或 SSE 级别的优化

一年支持合同的费用约为 3,000 美元,并且终身能够根据以下内容分发应用程序他们的 SDK 老实说,我根本没有发现它有吸引力,因为任何人都可以在支持的硬件上使用 ffmpeg、gstreamer、无数开源应用程序或 intel、amd 或 nvidia 驱动程序来执行相同的操作。

如果您不具备使用 ffmpeg 或其他解码器的专业知识,并且您可以通过金钱手段来弥补,那么通过任何必要的手段,这可能是适合您的某种解决方案。

There is a much more flexible solution depending on the problem..

https://net7mma.codeplex.com/

It is what amounts to a fully complaint RFC2326 stack which therefor also supports RFC3550 and various other technologies which enable you to provide a RtspServer and if desired a HttpServer (which can be either in process or out of process with respect to the RtspServer)

There are also implementations of SIP and various other Internet and VoIP technologies such as an RFC2435 Encoder / Decoder; all of which are written using completely managed code.

There is support for various other RTP profiles such as JPEG, H.264 etc as well as completely managed implementations of image codecs which are under way.

To advocate for StreamCoders I would like to say that I have looked at their library a few years ago, and I will say it's is great if you don't have any of the following restrictions:

  • You don't run on Mono, and you don't run on Linux.
  • You don't want to read and write to the same container file at the same time
  • You only need MMX or SSE level optomizations

For what would have amounted to approximately $3,000 for a one year support contract with the lifetime ability to distribute the application based on their SDK I honestly didn't find it appealing at all as anyone can do the same with ffmpeg, gstreamer a myriad of open source application or the intel, amd or nvidia drivers on supported hardware.

If you don't have the expertise to use ffmpeg or another decoder and you can compensate for that by monetary means then by any means necessary it's probably some type of solution for you.

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