Using WMASFWriter in a DirectShow filter graph generates a video which pauses at each keyframe interval



Hello all,

I am attempting to create a DirectShow source filter based on the
pushsource example from the DirectShow SDK. My source filter
essentially outputs a set of bitmaps, each of which typically lasts
around 600 milliseconds, to a video. I have set up a filter graph
which uses Async_reader with a Wave Parser for audio and my new filter
to push the video (the filter is a CSourceStream and I populate my
frames in the FillBuffer function). These are both connected to a
WMASFWriter to output a WMV.

What I am finding is that at times corresponding the keyframe interval
the video pauses for a second or two. This seems to be worse at HD
resolutions, thought that could be a red herring. What kinds of things
might be causing this? Is it related to how often I allow FillBuffer
to be called (my frame rate is 30fps, so I end up with the same bitmap
being repeated for several frames)?

Many thanks,
Andrew
.



Relevant Pages

  • Re: Help regarding writing a Source Filter
    ... I must write a Source Filter that produce out a video stream of YUV ... To attach this DirectShow filter to a source of data (e.g. the YUV frames ... main .NET app) that builds the graph, how I specifiy a destination window ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: direct show design issue
    ... while my the I view different portions from my source filter. ... access the portion of the image that you specify and display it ... next filter is my transform filter. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Playing a MPEG2 file across a UWB Network
    ... > I'm trying to play a MPEG2 file across a UWB network and as such, ... > source filter and attempt to decode it to my MPEG2 demultiplexer. ... As a MPEG2 file is really big, potentially few hundred megs of data, does ...
    (microsoft.public.win32.programmer.directx.video)
  • How to play audio and video from two different sources
    ... My source filter is a modified ... Now I must add a second source of data, namely PCM audio. ... another callback to the C# app that will supply the audio sample. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Help regarding writing a Source Filter
    ... prototype Source Filter, English is not my first language (first is Italian ... the .net application through a custom com interface or similar. ... DLL will manually builds the graph, ...
    (microsoft.public.win32.programmer.directx.video)