Log in

View Full Version : ffdshow multiple instances


paulom
9th December 2009, 17:37
I've installed ffdshow-tryouts and configured it to decode mpeg-1. This makes DirectShow use it to decode mpeg-1. In Avisynth, DirectShowSource reads mpeg-1 clips as YV12, no longer converting them to YUY2.

ffdshow is adding 2 tray icons (video/audio) for each call to DirectShowSource in my scripts. This happens even with the "Multiple instances" option set to "only one - check all filters in graph".

Does this mean that a new instance of ffdshow is being loaded for each clip?
If true, how can I prevent this and save memory?

Leak
9th December 2009, 18:09
Does this mean that a new instance of ffdshow is being loaded for each clip?
Yes.

If true, how can I prevent this and save memory?
You can't - AviSynth's source filters (i.e. DirectShowSource) immediately open and load all files to find out their properties (width, height, colorspace etc.) so there's no way around this.

(The "multiple instances" option won't work here since each instance of DirectShowSource produces it's own DirectShow graph, so the different instances of ffdshow never see each other.)

You can, of course, use either DGMpegDec or ffmpegsource to open your MPEG1 files, but you'll get an instance of those for each file as well...

np: Flying Loyus - Tronix (Warp20 (Unheard))