string _fileName = _baseDirectory+DateTime.Now.ToString("MMddyyyyHmmss")+".AVI";

byte[] byteArray = System.Text.Encoding.UTF8.GetBytes(_fileName); _fileName = System.Text.Encoding.Default.GetString(byteArray);
VideoWriter vw = new VideoWriter(_fileName, CvInvoke.CV_FOURCC('M', 'P', '4', '2'), 30, 640, 480, true);

 

 ps:在文件名中文很长的情况下,会报错。

相关文章:

  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案