H264 decoder only generates black-and-white video RRS feed

  • Question

  • Using the recipe from http://msdn.microsoft.com/en-us/library/windows/desktop/aa965264%28v=vs.85%29.aspx I am trying to make an application which decodes an H264 encoded RTSP network video feed, on Windows7, 32-bit

    I instantiated the decoded with CLSID_CMSH264DecoderMFT

    Incoming video feed is 1080i, set up the output port to deliver output in NV12 format.

    After prefixing every received encoded frame with { 0x00, 0x00, 0x00, 0x01 }, the encoder started working and I get decoded frames.

    Strange thing is that for some reason all decoded frames are black-and white ?? I guess I am doing something wrong with setting up color spaces of either input or output streams. (the incoming video has color, if I watch the feed with e.g. VLC, it has color)

    Anybody any idea in which direction I should start looking ??



    Sunday, September 16, 2012 3:43 PM

All replies

  • It would be helpful to know the media types used on the decoder.  I do not know for sure what would cause the generated image to be black and white, but checking the interlaced parameters on the media type would be a good start since you noted this was a 1080i stream.

    Tuesday, October 23, 2012 11:04 PM