如何在C#中通过互联网捕获视频 [英] How to capture video off the internet in C#

查看:96
本文介绍了如何在C#中通过互联网捕获视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在尝试使用Webbrowser类捕获视频,因为它正在从互联网流式传输到我的应用程序。我认为连接一个事件以便在读入数据时很容易,并将其保存到我的PC上的文件中。但我没有找到办法做到这一点......任何想法?

Hello, I am trying to use the Webbrowser class to capture video as it is being streamed to my application from the internet. I thought it would be easy to hookup an event to read the data as it came in, and save it to a file on my PC. But I am not finding a way to do that...any ideas?

推荐答案

如果我的帖子不会帮助你,我很抱歉救命。对我而言,它看起来也是一个相当大的问题。



不久前,我发现只有一种产品可以在Windows上执行此操作。这是VideoLAN,请参阅:

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

http://www.videolan.org/ [ ^ ]。



目前,这款主要为媒体流设计的产品以一种形式提供应用程序称为VLC播放器。尽管它主要像播放器一样工作,但它可以用于交互式和批处理模式,用于许多不同的目的:流式传输,以多种不同格式捕获媒体流,转换为任何其他格式,视频/音频转换等。 />


最好的事情是:这个应用程序附带API和许多独立的库,都是开源的。您可以使用该应用程序捕获视频,或者您可以找到需要在库中捕获的标准并尝试使用它们的源代码。我只使用已编译的应用程序,仅用于一个标准,仅限音频,但成功。只是想警告你:命令行界面非常丰富和复杂;所以,如果你认为某些功能不存在,请三思而后行;你可以在命令行文档中找到很多功能,它只需要一些时间。



我还在Linux上使用一些命令行媒体流捕获软件,但要记住如何找到它更难。当然,它也带有源代码。



所以,你的问题是可以解决的,你只需要投入大量的时间来学习这个开源软件。



-SA
I'm sorry if my post will help you not so much as I wish to help. To me, it looks like a considerable problem, too.

A while ago, I found only one product which can do this on Windows. This is VideoLAN, see:
http://en.wikipedia.org/wiki/VideoLAN[^],
http://www.videolan.org/[^].

Right now, this product which was primarily designed for media streaming is provided in the form of one application called VLC Player. Even though it mainly works like a player, it can be used in both interactive and batch modes for many different purposes: streaming, capturing of media streams in many different formats, conversion into any other format, video/audio transformation, etc.

Best thing is: this application comes with API and a number of separate libraries, all Open Source. You can use the application for capturing video or you can find the standards you need to capture in the libraries and try to use their source code. I just used the compiled application, just for one standard, audio only, but successfully. Just want to warn you: the command-line interface is extremely rich and complex; so, if you think some feature does not exist, think twice; you can find a lot of functionality in the command-line documentation, it will just take some time.

I also uses some command-line media streaming capturing software on Linux, but it's harder to remember how to find it. Of course, it comes with source code, too.

So, your problem is quite solvable, you just need to invest considerable amount of time to learn this Open-Source software.

—SA


我不知道它是否能帮助你一点点/>


MyDownloader:多线程C#分段下载管理器 [ ^ ]
i dont know if it could help you a bit

MyDownloader: A Multi-thread C# Segmented Download Manager[^]


这是关于.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


这篇关于如何在C#中通过互联网捕获视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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