Mediaplayer
-
I want to save a mediaplayer(ActiveX control)Frame into a bitmap file. How can I do that? Windows98 SE, VC++ 6.0 SP5
-
I want to save a mediaplayer(ActiveX control)Frame into a bitmap file. How can I do that? Windows98 SE, VC++ 6.0 SP5
Hi. I think You most Use Screan's Bits.(Read Color of Dialog's Pixel) Iman Ghasr-e-fakhri
-
Hi. I think You most Use Screan's Bits.(Read Color of Dialog's Pixel) Iman Ghasr-e-fakhri
I suspect you'll find grabbing a screen DC won't do it, because I know I've tried in an attempt to capture web movies, to no avail. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
-
I want to save a mediaplayer(ActiveX control)Frame into a bitmap file. How can I do that? Windows98 SE, VC++ 6.0 SP5
One efficient way to do this (I'm sorry I shouldn't use the word "effcient" because it carries out endless debates:|). One way to do this is through a custom based COM filter using DirectShow (now completely integrated in DirectX 8.x). If you are planning to use this as a one time tool, you could avoid the code involved in plugging the filter into the GraphFilter of DirectShow and use the GraphEditor instead. The filter needs to get a stream input of the sample video in order to create the file that you want (i.e. bitmap). For instance, // // Copy the input sample into the output sample // Then transform the output sample 'in place' // HRESULT MyFilter::Transform(IMediaSample *pIn, IMediaSample *pOut) { HRESULT hr = Copy(pIn, pOut); if (FAILED(hr)) { return hr; } return Transform(pOut); } // Transform // // Create a bitmap from source and let dest be identical // in order to continue the process (playing). // HRESULT MyFilter::Copy(IMediaSample *pSource, IMediaSample *pDest) const { ... } There is much more work involved in developing a DirectShow filter. I hope this help you out.