最近,我在互联网上搜索了很多关于从MP4视频中提取位图的好的C#库,我发现有些东西与这段代码类似,但并不是针对MP4的:
VideoStream stream = aviManager.GetVideoStream(@"C:\Users\User\Desktop\video.mp4");
//the video.mp4 is usually .avi or .mpeg
for (int n = 0; n < stream.CountFrames; n++)
{
Bitmap bmp = new Bitmap(stream.GetBitmap(Position));
bmp.Save(@"C:\Users\Nehoray\Desktop\Something.png");
bmp.Dispose;
}
有没有人能给我推荐一个跟这个代码一样简单的库,专门用于 MP4 格式的? :)