Question about setting autopilot in C #

Im using DirectShowLib in C #. I want to use File Writer in C # to set file output. I want to use File Writer because Graph.SetOutputFileName () will not connect to my encoder, but File Writer will. How can I install the file that the file writes to C #?

I tried to pull out the property pages, for example, in the DxPropPages example, but would not appear for File Writer.

+6
source share
1 answer

Selected from here

IBaseFilter ibf = new FileWriter() as IBaseFilter; 

Update:

"I know how to add the author of a file to my Graph in code, I just don’t know how to set the path to the file"

try the following:

 FileWriter fileWriter = new FileWriter(); IFileSinkFilter fileSinkFilter = (IFileSinkFilter)fileWriter; fileSinkFilter.SetFileName(fileOutput, null); 

Here's a useful link that shows a full run example . the example demonstrates the use of DES, but you should get a general idea from it.

+4
source

Source: https://habr.com/ru/post/890954/


All Articles