Re: ASF custom file type



On Oct 24, 11:17 am, Blow <o...@xxxxxxxxxxxxxx> wrote:
On Oct 24, 1:25 am, "Alessandro Angeli" <nob...@xxxxxxxxxxxxxxxxxx>
wrote:





From: "omeranda...@xxxxxxxxx"

I have written a source filter which handles a custom
file type for AVI.
This source filter is loaded when playing the AVI.

Is it possible to do so also for ASF?

If you mean you wrote a custom file handler for the AVIFile
library, then the concept does not apply to ASF.

You need to understand that AVIFile is a 3-step pipeline:

1. source: AVI/WAV parser based on MMIO or unknown when
using a custom handler
2. handler: stock AVI/WAV handler or custom handler
3. reader: AVIFile

ASF is a format and the WMF runtime library supports it and
MP3 and corresponds only to level 1, while you are looking
at something at level 2. But levels 2 and 3 of AVIFile have
been replaced in most applications by DirectShow and
MediaFoundation.

What are you trying to achieve? Are you actually sourcing a
custom file type or just reading an AVI from a custom
storage? How is the data read by AVIFile consumed?

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

What I meant that I used the techinque described in the following link
to implement a custom source filter.http://msdn2.microsoft.com/en-us/library/ms787558.aspx

When I open an AVI file , which has my FOURCC signature on it , my
source filter is loaded.- Hide quoted text -

- Show quoted text -

I will clearify my question...
I have used the third method - of signature in the file which links to
a source filter.
In GraphEdit , when I load an asf file (which has the signature) it
loads my custom source filter,
but when I use the AddSourceFilter method or loads the same file to
Windows Media Player it loads the default source filter.
How can that be?

Thanks

.



Relevant Pages

  • Re: Get DirectShow graph of WMP
    ... Foundation use it to show media, ... Protocol handlers aren't permitted and I don't wont to ... The best way to achieve your goal is to write a custom ... source filter and associate it with a custom URL scheme. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Looking for tutorials
    ... to write your own push-mode source filter or pull-mode ... Of course, your output media type will be a custom one, ... Media File) or a custom protocol or both. ... put the whole text in a media sample and use the allocator ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: ASF custom file type
    ... This source filter is loaded when playing the AVI. ... Is it possible to do so also for ASF? ... If you mean you wrote a custom file handler for the AVIFile ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Directx and AVI 2.o Muxing
    ... What is the simplest way in details to write simple AVI. ... You need source filter to feed the AVI Muxer. ... and audio samples appropriately. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Why pReceivePin->ReceiveConnection is getting failed in my code in this code?
    ... then your source filter has to tell the rest of the ... What are you REALLY sending along to the graph? ... AVI file a few kilobytes at a time, and sending that raw data downstream? ... AddSourceFilter method then the connection between source and AVI ...
    (microsoft.public.win32.programmer.directx.video)