PDA

View Full Version : feature request : GRF files support in DShowSource


Marc FD
26th October 2002, 13:21
Quoting from the documentation:

>No support for GRF files. I could add this if there's any demand for it.

I've a real lack of knowledge on DShow, but if Ben said he could add it, maybe it's not very hard ??
is it ? arent't they some DShow-gurus here ? could they do it ??

i'd really like to be able to load GRF (graphedit) files with Avisynth.
it would make avisynth compatible with almost any DShow filter.

Thanks a lot,
MarcFD

Marc FD
27th October 2002, 13:26
mhhh... you have no idea how to do it ?
if not, could someone please say me how i could try to contact ben rudiak gould. maybe he could help for that.

Thanks.

[Toff]
27th October 2002, 15:44
AviSynth use a DirectShow filter to get sample from the graph. This filter is inserted at the beginning of the graph's creation so it's automatically used when you render your media file.

I think that to support grf file you will need to transform the internal DS filter called "GetSample" to an external registerable filter usable by GraphEdit.
Then in DirectShowSource, you load the graph file in an empty GraphBuilder and you retrieve the GetSample filter handle.

I can't try myself because DirectShowSource doesn't work at all here.
In the GetSample::QueryAccept method I always get pmt->majortype == MEDIATYPE_Stream instead of MEDIATYPE_Video.
I don't know how to fix that.