How to take a screenshot from a video?

  • Thread starter Thread starter jcsnippets.atspace.com
  • Start date Start date
J

jcsnippets.atspace.com

Hi everybody,

While surfing the net, I've found a little snippet of code which creates
a small application to play video files. I'd like to alter the code a
bit, so it is able to save screenshots of the video files at set
intervals.

In the code, I've already identified the following classes:

IVideoWindow m_objVideoWindow = null;
IMediaEvent m_objMediaEvent = null;
IMediaEventEx m_objMediaEventEx = null;
IMediaPosition m_objMediaPosition = null;
IMediaControl m_objMediaControl = null;

I am able to control the video (start, stop, pause, display a requested
frame, etc...), but I cannot seem to find a way to save pictures from the
video.

Does anybody know where I should start to get this working?

Thanks in advance,

JayCee
 
Hi everybody,

While surfing the net, I've found a little snippet of code which
creates a small application to play video files. I'd like to alter the
code a bit, so it is able to save screenshots of the video files at
set intervals.

In the code, I've already identified the following classes:

IVideoWindow m_objVideoWindow = null;
IMediaEvent m_objMediaEvent = null;
IMediaEventEx m_objMediaEventEx = null;
IMediaPosition m_objMediaPosition = null;
IMediaControl m_objMediaControl = null;

I am able to control the video (start, stop, pause, display a
requested frame, etc...), but I cannot seem to find a way to save
pictures from the video.

Does anybody know where I should start to get this working?

Thanks in advance,

JayCee

I've still not been able to find a solution.

Does anyone know a way?

Thanks in advance!

JayCee
 
Back
Top