[英]Is it possible to use Emgu CV 3.0 to open a live stream with rstp protocol with ffmpeg h264
是否可以使用此代码从ip摄像机捕获视频流?
Capture cap = new Capture("rtsp://192.168.42.1:554/live"); imageBox1.Image = cap.QueryFrame();
因为我的图像框什么都没有显示,但是当我尝试向VLC Media Player查看时,该IP地址起作用了。 请帮忙。
我也使用VLCPlugin v2尝试了它,而不是使用imageBox,并且ip地址仍然有效。
我也用iSpy尝试过,它在ffmpeg(h264)下工作,也许问题出在哪里? 我正在使用Visual Studio Ultimate 2010 Emgu CV3.x。 我正在使用“请帮助”。 已经为此工作了很长时间。
cap.ImageGrabbed += VideoCapture_ImageGrabbed;
cap.Start();
然后:
private void VideoCapture_ImageGrabbed(object sender, EventArgs e)
{
Mat frame = new Mat();
cap.Retrieve(frame);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.