如何使用MJPEG视频流捕获视频IP? [英] How can capture video IP with MJPEG video Stream?

查看:105
本文介绍了如何使用MJPEG视频流捕获视频IP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人可以指导我.

我需要使用MJPEG视频流捕获视频IP.

必须包含以下示例:


我需要在ibMain.Emgu.CV.UI.ImageBox上运行它

Please someone can guide me.

I need to capture video IP with MJPEG video Stream.

Must include the following, example :


I need to run it on ibMain.Emgu.CV.UI.ImageBox

using AForge.Video;

private MJPEGStream VideoStream = new MJPEGStream();


 public MainForm()
        {

       VideoStream.Source = "http://192.168.1.30"; // "URL_HERE";
       VideoStream.Login = "admin";                // "USERNAME_HERE";
       VideoStream.Password = "1234";              // "PASSWORD_HERE";
       VideoStream.NewFrame += new NewFrameEventHandle (VideoStream_NewFrame);
       VideoStream.Start();

         }

        private void VideoStream_NewFrame(object sender, AForge.Video.NewFrameEventArgs eventArgs)
        {
            Bitmap FrameData = new Bitmap(eventArgs.Frame);
            MessageBox.Show("dfd11f"); 
           // pbStream.Image = FrameData;
            Image<Bgr, Byte> img = new Image<Bgr, Byte>(FrameData); // Creating image from Bitmap ??
            ibMain.Image = img;



            // ibMain.Image = FrameData;
        }

        private void VideoStream_VideoSourceError(object sender, AForge.Video.VideoSourceErrorEventArgs eventArgs)
        {
          //  Debug.WriteLine(eventArgs.Description);
              MessageBox.Show(eventArgs.Description);
        } 



谢谢您的宝贵时间.



Thank you for your valuable time.

推荐答案

这将取决于看起来的来源:
http://stackoverflow.com/questions/10632454/mjpeg-stream-information [ ^ ]
It would depend on the source it seems:
http://stackoverflow.com/questions/10632454/mjpeg-stream-information[^]


这篇关于如何使用MJPEG视频流捕获视频IP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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