111,093
社区成员




//[640,480][800,448][864,480][1024,576][960,720][800,600][1600,896][1712,960][1280,960] [1920,1080]
int width = videoSource.VideoCapabilities[0].FrameSize.Width;
int height = videoSource.VideoCapabilities[0].FrameSize.Height;
int fps = 30;
string path = "D:\\视频监控";
fileName = System.DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".mp4";
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
path = path + "\\" + fileName;
writer = new VideoFileWriter();
writer.Open(path, width, height, fps, VideoCodec.MPEG4);
this.is_record_video = true;
aTimer.Enabled = true;
aTimer.Interval = MonitorMaxSecond * 500;
// lblmontior.Text = "视频监控中";
IsTimeOut = true;
videoSource.Start();