Re: Delay between two Transform() calls




i think if it is a transform filter, you have not de delay or to sleep
in the Transform method, just transform the sample and provide the
output. Usually, the render filter manages the playing rate (as
DirectSoundRender do). You can take a look on IQualityControl
interface, which allows you to send a FAMINE (see Quality structure)
message to predecessors, so that they speed up filling buffers. The
source filter must understand this message however.

Good luck.

Ouss


mannson a écrit :

Hi,
first of all I want to thank everybody who helped me so far. I really
appreciate that you are taking the time answering my questions. :)
I'm still writing on my own DirectShow transform filter. It's a MPEG
decoder using libavcodec from ffmpeg in a dll.
For TS MPEG video files the media samples I get from the demuxer are
about 2kb. The decoder function discards the first 15 samples and
extracts several frames out of the following one. So I cache the
decoded frames and output them whenever possible.
But if I try to render the video the renderer is not able to play it
smoothly. So I checked the delays between two calls of the transform
function. It takes about 15ms almost every time although I emptied the
whole Transform(). Is there a way to speed things up, because I don't
see that any other function is called in my filter.

Regards
Stefan

.



Relevant Pages

  • Re: Directshow beginner question: how to synchronize playtime?
    ... > transform filter btw) sits after the decoder filter. ... Set a breakpoint in the filter's AlterQuality method and check that the ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: DWT anti-causality
    ... efficient way to downsize the filter. ... enables you to avoid downsampling won't decrease your delay. ... For each sample you transform it and the previous samples. ...
    (comp.dsp)
  • Re: New transform for video
    ... to handle motion without blocks. ... The new transform is compatible with bocks. ... if you stop the filter there (at ... Something like this: an inter frame can be divided into 2 regions: one ...
    (comp.compression)
  • Re: Connecting a raw file to transform filter.
    ... Also what should be done to make the transform filter ... the file type), that is a parser filter, which happens to be ... transform and that offers a media type your transform filter ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: interpolation for a color image?
    ... A typical way to do that is to first transform ... YUV is linear, ... YUV, run there a bilinear filter, then transform back, or run the bilinear ...
    (sci.image.processing)