Quote:
Originally Posted by neuron2
What is this "CodecPrivate's BitmapInfoHeader" you talk about? I've seen no documentation of such a thing and cannot find anything like that in the streams I have.
|
Which CodecID do you expect for VC-1 streams? I've seen both "V_VC1" and "V_MS/VFW/FOURCC". The latter CodecID can mean "VC-1", but it also can mean any other VfW codec. See here:
http://haali.net/mkv/codecs.pdf
That PDF shows that for the CodecID "V_MS/VFW/FOURCC" the CodecPrivate data contains a "BITMAPINFOHEADER" structure which is an official win32 structure. The field "dwCompression" of that structure contains the "FOURCC" which tells us which codec is actually contained in this track. You can find a list of valid FOURCC values here:
http://www.fourcc.org/
http://msdn.microsoft.com/de-de/libr...px#fourcccodes
Valid FOURCC values are e.g. "avc1", "H264", "X264" for h264 streams and "WVC1" for VC-1 streams. So if the MKV CodecID says "V_MS/VFW/FOURCC", we have to look at the FOURCC value stored in "((BITMAPINFOHEADER) CodecPrivate)->dwCompression".