Reading 1080P HD video using media foundation RRS feed

  • Question

  • Hello, I am using media foundation to read full 1080P uncompressed videos. The video is around 2G with 500 frames ( pretty big ). I am basically using IMFSourceReader to read frame by frame. The problem is that ReadSample alone call takes tremendous amount of time (100ms for each frame), I am not sure why. I also tried 720P video which is 1G and 300 frames, ReadSample takes around 50ms to read each frame. How to speed up this reading process. I also tried different stream indexes (MF_SOURCE_READER_ANY_STREAM, MF_SOURCE_READER_FIRST_VIDEO_STREAM). It doesn't improve anything.
    Thursday, September 22, 2011 4:48 PM

All replies

  • What codec is your video? 1 gig for 300 frames sounds like raw, uncompressed video. you´re sure your speed problem is not IO Performance related?

    if you have 1 gig for 300 frames, its about 3mb per frame where 50ms to read from disc does not seem that much

    Tuesday, September 27, 2011 7:06 AM