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必须是偶数!

posted @ 2021-11-18 18:24  郑某  阅读(855)  评论(0编辑  收藏  举报