AForge.Video.FFMPEG.VideoFileWriter 录屏失败需要注意的一个坑

 AForge.Video.FFMPEG.VideoFileWriter videoWriter = new AForge.Video.FFMPEG.VideoFileWriter();

videoWriter.Open(mp4file, width, height, 10, AForge.Video.FFMPEG.VideoCodec.MPEG4);

重点来了,如果你是通过像素分析方式获得的屏幕宽度和高度,请注意width和height必须是偶数!

原文地址:https://www.cnblogs.com/srszzw/p/15573734.html