Board index » delphi » First frame of MPG and RAM files

First frame of MPG and RAM files

Hello dear all,

First of all Merry Xmas - a nice day for computing when the family is gone.

I would like to know if it is possible to grab the first frame of MPG and
RAM files somehow..

I already managed to do this for AVI files (not all, but at least 80%). I
want to use this in my app so that the user sees thumbnails instead of the
icon for the video type.

Kind regards,

Nils Haeck
www.abc-view.com

 

Re:First frame of MPG and RAM files


Yes, quite easy...
there are at least two ways to do that:
1. use DirectShow and IMediaDet and GetBitmapBits(...) function to receive
the first frame.
2. use DirectShow with more interfaces and ISampleGrabber to read the first
frame.

The first method is quite good but I hope it works for all cases (I think
not but...) the second is longer coding and more cpu consumption.

--
Liran Shahar
Com-N-Sense (www.com-n-sense.com)

Re:First frame of MPG and RAM files


Do you perhaps have a small coding sample or a link to a website? I don't
know anything about Direct Show.

Nils

Quote
Liran Shahar <lir...@com-n-sense.com> wrote in message

news:3c2a0f1d_1@dnews...
Quote
> Yes, quite easy...
> there are at least two ways to do that:
> 1. use DirectShow and IMediaDet and GetBitmapBits(...) function to receive
> the first frame.
> 2. use DirectShow with more interfaces and ISampleGrabber to read the
first
> frame.

> The first method is quite good but I hope it works for all cases (I think
> not but...) the second is longer coding and more cpu consumption.

> --
> Liran Shahar
> Com-N-Sense (www.com-n-sense.com)

Other Threads