Get frame from video file
-
Hi I want to grab frame from a stored video and using GetBitmapBits() method of MediaDet class
md = new MediaDetClass(); md.Filename = fileName; md.CurrentStream = 0; IntPtr bufPtr = IntPtr.Zero; int bufSize = 0; md.GetBitmapBits(0.0, ref bufSize, bufPtr, width, height);
but here I m getting error with third argument."cannot convert from System.IntPtr to 'ref byte'" Can any1 help out that how to solve this? RegardsShanzay
-
Hi I want to grab frame from a stored video and using GetBitmapBits() method of MediaDet class
md = new MediaDetClass(); md.Filename = fileName; md.CurrentStream = 0; IntPtr bufPtr = IntPtr.Zero; int bufSize = 0; md.GetBitmapBits(0.0, ref bufSize, bufPtr, width, height);
but here I m getting error with third argument."cannot convert from System.IntPtr to 'ref byte'" Can any1 help out that how to solve this? RegardsShanzay