Beispiel #1
0
 /// <summary>
 /// 启动视屏,仅通过此方式启动,默认状态视屏不运行
 /// </summary>
 public void Start()
 {
     mjpegSource             = null;
     mjpegSource             = new MJPEGSource();
     mjpegSource.Login       = "******";
     mjpegSource.Password    = "******";
     mjpegSource.NewFrame   += new CameraEventHandler(mjpegSource_NewFrame);
     mjpegSource.ErrEvent   += mjpegSource_ErrEvent;
     mjpegSource.VideoSource = source;
     mjpegSource.Start();
     //ms = new MjpegDecoder();
     //ms.FrameReady += new EventHandler<FrameReadyEventArgs>(ms_FrameReady);
     //ms.ParseStream(new Uri(source));
 }
Beispiel #2
0
        public void Start()
        {
            mjpegSource.VideoSource = source;
            mjpegSource.WaitTime    = 100;//ms
            mjpegSource.wr          = true;
            mjpegSource.fileN       = @"e:\sp.mjpeg";
            mjpegSource.Start();
            aw.FrameRate = 15;

            aw.Codec = "Divx Codec 4.12";
            string str = @"E:\sp";

            str = str + System.DateTime.Now.ToString("yyMMdd-hhmm");
            str = str + ".avi";
            aw.Open(str, 704, 576);
            //aw = new Tiger.Video.VFW.AVIWriter();
            ////aw.Codec = "DIB";
            //aw.Open(@"e:/sp.avi", 704, 576);
            //aw.FrameRate = 15;
        }