Re: Async Filter question

From: Iain (idownsXXXX_at_dircon.co.uk)
Date: 02/26/04


Date: Thu, 26 Feb 2004 15:06:24 -0000

Use a Push filter

You will need to add a custom interface with a 'queue for streaming' method
and you must be sure that the formats of each successive file are identical.

If they are not then you have a problem becuase you need to partially or
totally rebuild the graph between streams.

This is a comman request and there are NO easy answers.

The most generic solution is to build a source filter which is fed by sink
filters (basically psuedo renderers) in separate graphs in the same process.

The idea being that the format conversion (to wav for example) takes place
in the other graphs (regardless of what the source is) and as one comes to
an end the next is switched in to the source of the output graph.

A number of people had done this. One DS Guru say's it only took him a day
to do htis (which I'm sure is true). If you are not expert in DS I would
budget a good deal longer.

(You can in theory rebuild hte grpah whilst it is running, but it depends on
all the filters involved supporting the appropriate interfaces. See Dynamic
Graph Building or som such in the docs).

Iain
"Wilbur" <anonymous@discussions.microsoft.com> wrote in message
news:12E243C3-91A8-4DEE-A4A6-C49CB9EB49C4@microsoft.com...
> Thanks for the info Iain.
>
> The thing that is complicating the issue is that I want to add new audio
file data to the stream dynamically while it is already playing the first
files. I think I want to mimic a live audio source, but pull data from the
(.mp3/.wav) files instead of the sound card inputs.
>
> Thanks
> Wilbur



Relevant Pages

  • Re: DShow GrabberSample doesnt stop when returning S_FALSE frame callback
    ... If the Transform method returns an error code, the base class signals a streaming error to the filter graph, and the filter graph stops. ... "A better approach is for the application to return S_FALSE in the callback method, and for the filter to use that value as the return value in the Receive method. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Find thread that is not destoryed
    ... the count of thread is slowly increasing when I restart the streaming ... The call stack of the thread that is not destroyed is like this: ... but it looks like it's some stock filter that's created ... Which filters, exactly, do you have in your graph? ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: enum filters supported MEDIASUBTYPE
    ... what media type a filter supports? ... enumerating the formats). ... You can add it to a graph (with a filter ... You can add it to a graph and try and connect it to ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Playing Remote Located video with VMR
    ... You use the ASFReader filter to connect to the source, ... pins and there you have it a DS graph. ... > Does anyone know if it is possible to Have video which is streaming from a ... WMF files, but use some type of transform filter, so the stream can be ...
    (microsoft.public.win32.programmer.directx.video)
  • AddSourceFilterForMoniker() locks up sometimes.
    ... I've coded a simple filter graph to capture frames from a video camera ... I can grab frames from the Sample Grabber with no ...
    (microsoft.public.win32.programmer.directx.video)