Encoder Devices

Encoders are devices that receive as input an uncompressed data stream (video and/or audio), encode the stream into a specific format, such as MPEG2, and then output an encoded stream. Encoder devices may be a part of another device, such as a combination TV tuner/capture adapter, or they may be separate. For example, an integrated encoder receives a data stream from a capture device such as an analog TV tuner/decoder and then it produces an encoded stream. A standalone encoder may receive input data from an uncompressed file, process the data, and then output encoded data.

Microsoft provides support for hardware-based audio/video encoder devices in DirectX 9.0 and later. The DirectX 9.0 redistributable is available for the following Microsoft Windows platforms:

  • Windows Media Center Edition 2004

  • Windows Server 2003

  • Windows XP Home and Professional

  • Windows 2000 Professional and Server

  • Windows Millennium Edition

  • Windows 98 Second Edition

To support audio/video encoder devices, you must implement support for Microsoft-defined encoder properties in a kernel streaming filter minidriver. Support may be added to an existing stream class or AVStream minidriver by implementing the encoder properties. Alternatively, if you are writing a new minidriver (either for a standalone encoder or an integrated one), Microsoft recommends following the AVStream architecture because the stream class is obsolete and no longer supported. You may use the AVStream Simulated Hardware Sample Driver (Avshws) in the MSDN Code Gallery as a starting point. The Avshws driver is a pin-centric AVStream example that implements support for DMA transfers.

Note   If you are writing a software-implemented encoder, then you should not write it as a kernel streaming filter. Instead, such filters should be written as Microsoft DirectShow filters or DirectX Media Objects. See the DirectShow SDK topic "Encoder API" for more information about software-based encoders.

Clients access encoder functionality through either the IEncoderAPI COM interface or the ICodecAPI COM interface. You specify which interface KsProxy exposes in the driver's INF file depending on the properties your minidriver implements. See Encoder Implementation and Support for information about the Microsoft-defined kernel streaming properties and event. See Encoder Code Examples for examples of how to implement them. See Encoder Installation and Registration for information about how to install an encoder filter, including how to specify which COM interface KsProxy should expose.

Encoder devices must conform to the Streaming Media and Broadcast requirements as described in the Windows Logo Program Version 2.2, Appendix B11 in addition to the generic logo requirements that cover all devices.

 

 

Send comments about this topic to Microsoft

Mostrar:
© 2014 Microsoft