File Writer Filter

 
Microsoft DirectShow 9.0

File Writer Filter

The File Writer filter can be used to write files to disc regardless of format. The filter simply writes to disc whatever it receives on its input pin, so it must be connected upstream to a multiplexer that can format the file correctly. You can create a new output file with the File Writer or specify an existing file; if the file already exists, it will be completely overwritten with the new data.

The file writer filter uses the input stream's time stamps as file offsets and provides random access to the file. It supports IStream to allow reading and writing the file header after the graph is stopped. To improve performance it also supports unbuffered overlapped writes and handles the corresponding buffer negotiation.

  • **Note   **If you are writing ASF files using the Microsoft® Windows Media™ Software Development Kit, use the WM ASF Writer filter. The WM ASF Writer provides the only way to create ASF files in Microsoft DirectShow.
Filter Interfaces IAMFilterMiscFlags, IBaseFilter, IFileSinkFilter, IFileSinkFilter2, IPersistStream
Input Pin Media Types MEDIATYPE_Stream, MEDIASUBTYPE_NULL
Input Pin Interfaces IMemInputPin, IPin, IQualityControl, IStream
Output Pin Media Types Not applicable
Output Pin Interfaces Not applicable
Filter CLSID CLSID_FileWriter
Property Page CLSID No property page
Executable qcap.dll
Merit MERIT_DO_NOT_USE
Filter Category CLSID_LegacyAmFilterCategory

See Also