wpf 使用 C# 桌面应用程序以 MPEG 格式录制网络摄像头视频
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19366260/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
WebCam Video Recording in MPEG using C# Desktop Application
提问by Site Tester
I am developing an application which requires me to connect to webcam and record the video in MPEG format as it is VCD compliant. The application is in WinForms however, WPF solution is also fine. I am not interested in WebBased Flash/Silverlight solutions I am only interested in free or opensource solutions or controls.
我正在开发一个应用程序,它要求我连接到网络摄像头并以 MPEG 格式录制视频,因为它与 VCD 兼容。该应用程序在 WinForms 中,但是 WPF 解决方案也很好。我对基于 Web 的 Flash/Silverlight 解决方案不感兴趣,我只对免费或开源解决方案或控件感兴趣。
Is there such solution available for C#/.NET?
C#/.NET 有这样的解决方案吗?
回答by Ajit Shah
The following 2 open source projects seem to contain the kind of control you are building.
以下 2 个开源项目似乎包含您正在构建的控件类型。
http://www.codeproject.com/Articles/285964/WPF-Webcam-Control
http://www.codeproject.com/Articles/285964/WPF-Webcam-Control
回答by AwokeKnowing
The best libraries I know are these.
我所知道的最好的图书馆是这些。
FFMpeg.NET FFMpeg-Sharp FFLib.NET
FFMpeg.NET FFMpeg-Sharp FFLib.NET
Other than that, you can do "console" operations to get it done.
除此之外,您可以执行“控制台”操作来完成它。

