XmlVideoProfile Members

The video profiles that can be initialized from an XML string

The following tables list the members exposed by the XmlVideoProfile type.

Public Constructors

  Name Description
XmlVideoProfile Initializes a new instance of the XmlVideoProfile class from an XML description.

Top

Public Properties

  Name Description
public property ActualAspectRatio  Gets the actual aspect ratio of the video profile. Note that if you're using square pixels (when AutoFit equals true), the actual aspect ratio may be slightly different than the aspect ratio that is passed to the SetAspectRatio method, because the video frame dimensions are rounded to the nearest 4 or 16 pixels.  (Inherited from VideoProfile)
public property AspectRatio  Gets or sets the aspect ratio used to encode the profile. If set to null, the aspect ratio is controlled by the width and height of the stream.  (Inherited from VideoProfile)
public property AutoFit  Gets or set a value indicating whether the output resolution is calculated by fitting the source media item within the profile's size. For example, if AutoFit is set to true and the profile is set to 320 x 240 with an aspect ratio of 16:9, the output size will be 320 x 180. If AutoFit is set to false, the output size will be 320 x 240 and the video will be encoded with non-square pixels.  (Inherited from VideoProfile)
public property Bitrate  Gets or sets the bitrate to use when encoding.  (Inherited from VideoProfile)
public property Codec Overridden. Gets the codec type.
public property Force16Pixels  Gets a value indicating whether auto-calculated dimensions are rounded to 16 pixels (true), or 4 pixels (false).  (Inherited from VideoProfile)
public property FrameRate  Gets or sets the frame rate in frames per second. Zero (0) means that frame rate of the source file will be used.  (Inherited from VideoProfile)
public property IsEditable  Gets a value indicating whether the profile can be modified.  (Inherited from ProfileBase)
public property KeyFrameDistance  Gets or sets the key frame distance.  (Inherited from VideoProfile)
public property NumberOfEncoderThreads  Gets or sets the number of threads used by the encoder. Defaults to 0 to allow the encoder to choose a value based on the video and the number of logical processors available.  (Inherited from VideoProfile)
public property SeparateFilesPerStream  Gets a value indicating whether a separate file is created for each stream.  (Inherited from VideoProfile)
public property Size  Gets or sets the size of the video profile.  (Inherited from VideoProfile)
public property SmoothStreaming  Gets or sets a value indicating whether the profile uses IIS Smooth Streaming. Note that if you're using VC-1, setting this property to true will cause the following properties to be set as follows: ClosedGop to true, AdaptiveGop to false, and OutputMode to ElementaryStreamSequenceHeader. When you are using Smooth Streaming, the bitrate of the streams must be either all ConstantBitrate or all VariableConstrainedBitrate.  (Inherited from VideoProfile)
public property StreamCopyOnly  Gets a value indicating whether this profile supports only stream copying. This can happen if the decoder is installed but the encoder is not installed.  (Inherited from ProfileBase)
public property Streams  Gets or sets the collection of streams.  (Inherited from VideoProfile)
public property XmlDescription  Gets the XML description of the profile if the profile was initialized from an XML profile string.  (Inherited from ProfileBase)

Top

Public Methods

(see also Protected Methods )

  Name Description
public method Clone Overridden. Makes a deep copy of the video profile object.
public method Equals  Overloaded. (Inherited from Object )
public method GetHashCode  (Inherited from Object )
public method GetType  (Inherited from Object )
public methodstatic ReferenceEquals  (Inherited from Object )
public method SetAspectRatio  (Inherited from VideoProfile )
public method ToString  (Inherited from Object )

Top

Protected Methods

  Name Description
protected method Finalize  (Inherited from Object )
protected method MemberwiseClone  (Inherited from Object )

Top

Public Events

  Name Description
public event PropertyChanged  Occurs when a property value changes.  (Inherited from EncoderObject)

Top

See Also

Reference

XmlVideoProfile Class
Microsoft.Expression.Encoder.Profiles Namespace

   © 2011 by Microsoft Corporation. All rights reserved.