直播视频,Windows窗体,C# [英] Live Video, windows form, C#

查看:1378
本文介绍了直播视频,Windows窗体,C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我正在进行的项目的一部分,我需要通过互联网(使用UDP数据包)将视频源从网络摄像头发送到另一台计算机。接收视频的计算机需要在Windows窗体上显示视频(我目前不使用WPF),最好是实时显示。



我想知道什么如果这是可能的,我可以开始寻找如何做到这一点的想法。

As part of a project I am doing I need to send a video feed from a webcam via the internet (prob using UDP packets) to another computer. The computer that receives the video needs to display the video on a windows form (I'm not currently using WPF) preferably in real time.

What I want to know is if this is possible, and where I could start looking for ideas into how it would do this.

推荐答案

如何在窗体上嵌入Windows Media Player控件?请参阅 http://msdn.microsoft.com/en-us/library /bb383953%28v=vs.90%29.aspx [ ^ ]。







根据OP的评论澄清:

请参阅此评论的答案。问题是关于客户端,并且嵌入播放器就是所需要的。其他所有内容都只能在服务器端完成。一些相机在硬件级别实现流协议。通常,您在服务器端软件中执行此操作。这是一个想法:您可以从VideoLAN的源代码中看到它是如何完成的,请参阅:

http: //en.wikipedia.org/wiki/VideoLAN [ ^ ],

http://www.videolan.org/vlc/download- sources.html [ ^ ]。



您确定需要编写自己的代码吗?您可以直接使用VLC(参见上面的参考资料)几乎可以在任何地方传输任何内容。你可以在几乎所有平台上买到这个产品。



-SA
How about embedding of a Windows Media Player control on a Form? See http://msdn.microsoft.com/en-us/library/bb383953%28v=vs.90%29.aspx[^].



Clarification based on a comment by OP:
Please see the answer to this comment. The question was about client side only, and embedding the player is all which is required. Everything else can be done on server-side only. Some cameras implement streaming protocol on hardware level. Normally, you do it in server-side software. Here is one idea: you can see how it's done from the source code of VideoLAN, see:
http://en.wikipedia.org/wiki/VideoLAN[^],
http://www.videolan.org/vlc/download-sources.html[^].

Are you sure you really need to write your own code? You can directly use VLC (see the references above) to stream almost anything almost anywhere. You can get this product for nearly all platforms.

—SA


这是更新的关于.NET的VLC组件绑定的有用信息:

http://sourceforge.net/projects/libvlcnet/ [ ^ ],

https://wiki.videolan.org/C_Sharp/ [ ^ ],

https://wiki.videolan.org/.Net_Interface_to_VLC/ [ ^ ]。



值得注意的是,你可以找到使用WPF和 System.Windows.Forms的组件的材料



-SA
This is the updated useful information on the VLC component binding for.NET:
http://sourceforge.net/projects/libvlcnet/[^],
https://wiki.videolan.org/C_Sharp/[^],
https://wiki.videolan.org/.Net_Interface_to_VLC/[^].

Notably, you can find material for using the component for both WPF and System.Windows.Forms.

—SA


这篇关于直播视频,Windows窗体,C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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