Copying Data from One File to Another

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

At the most basic level, copying a stream from one ASF file to another is fairly straightforward. However, there are issues to consider when working with streams from multiple input files or when copying streams that you first decompress and re-encode.

The following sections describe copying streams.

Section Descripiton
Copying Streams Without Decompressing the Data Describes how to copy streams using compressed samples to preserve the quality of the content.
Copying Streams Using Decompressed Samples Describes the difficulties in copying streams using decompressed samples.

 

Profile Manager Object

Stream Configuration Object

Synchronous Reader Object

Writer Object