How to Detect DirectShowNet Filter Contacts

I am trying to implement a graphedit filter file that I created. I use 3ivx to encode and compress the video, and then save it to .mp4.

in my graphedit file i have:

Mpeg4s Decoder DMO (out0) -> (XForm In) 3ivx MPEG-4 Video Encoder (XForm Out)->

However, when I put this in code, the output of (XForm In) and (XForm Out) cannot be found, and therefore will not connect.

I added a work schedule to DsRot to display the current schedule, and showed that the filter with (XForm In) and (XForm Out) is not connected.

I called

IEnumPins pinsx;
filter.EnumPins( out pinsx );

to try to get which contacts are available, but it does not store names in IEnumPins, it saves the object.

How can I find the contacts associated with this filter?

+3
source share
1 answer

FindPinByDirection Splicer.Utilities.FilterGraphTools(codeplex).

ConnectFilters, , , :

public static void ConnectFilters(IGraphBuilder graphBuilder, 
            IBaseFilter upFilter, IBaseFilter downFilter, 
            bool useIntelligentConnect)
+2

All Articles