The CommandEncoder sample is a utility sample that you run from the command line. To run it, you must first specify whether your source is a Microsoft Expression Encoder job or a media file. Then, you must type the path of that file. There are two optional parameters: the destination of the encoded job and the preset to use to encode the file.
For more information about presets, see the Expression Encoder User Guide.
The following code example shows the usage of the CommandEncoder sample.
CommandEncoder -j[d] <JobItem> [Destination]
CommandEncoder -m[p][d] <MediaItem> [Preset] [Destination]