On Fri, 19 Dec 2008 05:13:01 -0800, Fredrik wrote:
[Quoted Text] > I am using the wmf sdk to create asf-files containing mpeg4 video. > Everything works ok when I use VIDEOINFOHEADER to describe the video stream, > but now I want to change to MPEG2VideoInfo. > According to the documentation that should be possible? > http://msdn.microsoft.com/en-us/library/aa392195(VS.85).aspx> The problem is that the created asf-files seems to get a corrupt > bitmapinfoheader. > I do set the formattype to FORMAT_MPEG2_VIDEO and the cbformat to > sizeof(MPEG2VIDEOINFO). > The reason why I want to change to Mpeg2VideoInfo is to include aspect ratio > and cropping information. You might want to use VIDEOINFOHEADER2 instead. Describing MPEG formats in ASF is problematic and requires hacks. Alessandro might have more info on this as he has worked with the DVR-MS format.
-- http://www.chrisnet.net/code.htm [MS MVP for DirectShow / MediaFoundation]
|