Re: Direcshow problems with WMV9 Decoder for XP platform



From: "Kris"

I am very green to all this. I do not think I am doing
this? what is a keyframe?

Compressed frames can be decoded on their own (keyframes) or
require other frames to be decoded (delta frames). Decoding
can only start on a keyframe boundary. IMediaSamples have
some metadata attached to them:

- start and stop times (IMediaSample::GetTime(), not
IMediaSample::GetMediaTime())
- syncpoint, preroll and discontinuity flags (syncpoint ==
splicepoint == cleanpoint == keyframe == I-picture)

To properly decode the samples, you need to at least
transmit the syncpoint flag. You should also keep the
preroll and discontinuity flags (but it is unlikely you are
going to see those in your scenario). To keep
synchronization with other streams (if any) you should also
keep the timestamps.

Also is there a way to set DEBUG trace on the DMOs?

No.

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


.



Relevant Pages

  • Re: What is THE FASTEST way to extract frames from a wmv file?
    ... Extract a single frame ... you'd have to extract all the frames up to the first keyframe ... you'd need to extract and decode given a single frame number "n" that you ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Using libavcodec in a DirectShow filter to decode video
    ... To decode the frames I want to use the audio/video ... so it's very simple to decode a file on the harddisk. ... But in the transform function of my filter project I only get a buffer ... Does anybody have experiences in using libavcodec in a filter project ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: What is THE FASTEST way to extract frames from a wmv file?
    ... > I understand that would have to get the key frames if I'm ... > this feature in an asf and how it actually works. ... You do not have to set the range to start on a keyframe to ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Question about playback alacrity...
    ... Changing the keyframe interval ... the compressor doesn't spit out ... duration of the buffer. ... those many frames. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: IWMReader and HTTP encoder question
    ... > the reader to lower the FPS of a live stream? ... your application to decode the samples (see the DirectShow ... you can't just decode arbitrary frames when the ... bidirectionally predicted frames (B-frames), you would need ...
    (microsoft.public.windowsmedia.sdk)

Loading