Re[3]: Как вытащить кадры из видеофайла?
От: prozorov  
Дата: 24.03.05 08:20
Оценка:
Выдержка из DirectX SDK

To obtain information about a file using this interface, perform the following steps:

Create an instance of the MediaDet object by calling CoCreateInstance. The class ID is CLSID_MediaDet.
Call IMediaDet::put_Filename to specify the name of the source file.
Call IMediaDet::get_OutputStreams to obtain the number of output streams in the source.
Call IMediaDet::put_CurrentStream to specify a particular stream.
Call any of the following methods:
IMediaDet::get_FrameRate
IMediaDet::get_StreamLength
IMediaDet::get_StreamMediaType
IMediaDet::get_StreamType
To retrieve a video frame, call IMediaDet::GetBitmapBits or IMediaDet::WriteBitmapBits. The returned frame is always in 24-bit RGB format.


Я сам пробовал с avi различные кодеки, MPEG1 — работает
Про остальные не знаю
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.