我写了这段代码,但得到了这个msg"参数无效#34;
Stream outputS = Stream.Null;
(new NReco.VideoConverter.FFMpegConverter()).GetVideoThumbnail(arrayF[indexF].FullName, outputS);
outputS.Position = 0;
System.Drawing.Image thumb = new Bitmap(outputS);
res[0, 1] = "data:image/jpg;base64," + Convert.ToBase64String(ImageToByte2(thumb));
任何人都可以帮助我吗?!!
答案 0 :(得分:0)
问题是因为您将Stream.Null作为GetVideoThumbnail方法的输出流传递(它始终为空)。尝试使用MemoryStream:
Stream outputS = new MemoryStream();