ImageEn, unit ieds

TIEMediaReader


Description

This class provides access to frames from a media file (wmv, mpeg...).
TIEMediaReader is a simple stand-alone class, with one single method to copy the wanted frame to a TIEBitmap object.
Reading of frames could be slow.

Note: TIEMediaReader uses IMediaDet. Microsoft marks IMediaDet as Deprecated and may be removed from future releases of Windows


Example

var
  media: TIEMediaReader;

media := TIEMediaReader.Create('video.wmv');

// get frame 0 and save to sample0.jpeg
media.GetSample( 0, ImageEnView1.IEBitmap );
ImageEnView1.IO.SaveToFile('sample0.jpeg');

// get frame 1 and save to sample1.jpeg
media.GetSample( 1, ImageEnView1.IEBitmap );
ImageEnView1.IO.SaveToFile('sample1.jpeg');

...etc...

media.free;


Methods and Properties

Public Property  FrameCount
Public Property  FrameHeight
Public Property  FrameRate
Public Property  FrameWidth
Public Method  GetSample
Public Property  Length