7
是否有一個用.NET編寫的庫,允許我逐幀閱讀視頻?用於閱讀視頻幀的.NET庫
使用示例可能如下:
Video vid = Video.Open("test.avi");
foreach (Bitmap bmp in vid.Frames)
PictureBox1.Picture = bmp;
是否有一個用.NET編寫的庫,允許我逐幀閱讀視頻?用於閱讀視頻幀的.NET庫
使用示例可能如下:
Video vid = Video.Open("test.avi");
foreach (Bitmap bmp in vid.Frames)
PictureBox1.Picture = bmp;
你可能想看看微軟的IMediaDet interface,特別是GetBitmapBits和WriteBitmapBits方法。
本文在CodeProject deomonstrates:
Extract Frames from Video Files
一些很好的信息在這裏:http://stackoverflow.com/questions/37956/c-whats-the-easiest-library-to-open-video-file 沒有痛苦 - 沒有收穫。另外,avi文件格式據說非常簡單。 – 2010-01-02 18:08:59