我想保存视频来自摄像机,作为MP4在WPF上
我正在尝试将相机中的图像保存为 WPF 应用程序上的 mp4(等)。但到目前为止我还没有成功。 感谢您的帮助。
I am trying to save the image from the camera as mp4(etc) on WPF application. But so far I have not been successful.
Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
抱歉,我一开始的英语不好。我正在从网络摄像头接收图像。下面是代码。
公共部分类 MainWindow : 窗口
{
私有 FilterInfoCollection cihazlar;
私有VideoCaptureDevice yakala_resim
;
公共主窗口()
{
初始化组件();
cihazlar = new FilterInfoCollection(FilterCategory.VideoInputDevice);
foreach(cihazlar 中的 FilterInfo 设备)
{
kameralar.Items.Add(设备.名称);
kameralar.SelectedIndex = 2;
}
目前没有问题
。但当我想将来自网络摄像头的图像保存为 mp4 时,我不知道该怎么做。
Sorry for my bad english at first.I am receiving the image from the webcam. Below are the codes.
public partial class MainWindow : Window
{
private FilterInfoCollection cihazlar;
private VideoCaptureDevice yakala_resim
;
public MainWindow()
{
InitializeComponent();
cihazlar = new FilterInfoCollection(FilterCategory.VideoInputDevice);
foreach (FilterInfo device in cihazlar)
{
kameralar.Items.Add(device.Name);
kameralar.SelectedIndex = 2;
}
}
no problem currently. But I don't know what to do when I want to save the image come from webcam as mp4.
You can use from
OpenCvSharp
You can use from
OpenCvSharp
Recording Video from Webcam with OpenCvSharp - Resulting File playback to fast