Accord.Video.FFMPEG流显示在Accord.Controls.VideoSourcePlayer中

问题描述 投票:0回答:1

我是相机编程的新手。为了学习,我下载了Accord-Framework C#源代码。

因此,如果我们有JPG或MPEG Stream,那么我们可以轻松地在Accord.Controls.VideoSourcePlayer中显示。

但是如果我们有FFMPEG流,那么如何在Accord.Controls.VideoSourcePlayer中显示。

请任何人可以指导我吗?

提前感谢

ffmpeg aforge accord.net
1个回答
0
投票

确定,您需要此库AForge.Video

https://www.nuget.org/packages/AForge.Video/http://www.aforgenet.com/framework/downloads.html

导入到您的项目中

using AForge.Video;// first of all

private MJPEGStream mjpegSource;  
// create video source add your url
mjpegSource = new MJPEGStream("http://localhost:8080");
// open it
OpenVideoSource(mjpegSource);
© www.soinside.com 2019 - 2024. All rights reserved.