VideoProfile Members
The base class for video profiles.
The following tables list the members exposed by the VideoProfile type.
Protected Constructors
Name | Description | |
---|---|---|
VideoProfile | Initializes a new instance of the ProfileBase class. |
Top
Public Properties
Name | Description | |
---|---|---|
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. | |
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. | |
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. | |
Bitrate | Overridden. Gets or sets the bitrate to use when encoding. | |
Codec | Get the video codec type | |
Force16Pixels | Gets a value indicating whether auto-calculated dimensions are rounded to 16 pixels (true), or 4 pixels (false). | |
FrameRate | Gets or sets the frame rate in frames per second. Zero (0) means that frame rate of the source file will be used. | |
IsEditable | Gets a value indicating whether the profile can be modified. (Inherited from ProfileBase) | |
KeyFrameDistance | Gets or sets the key frame distance. | |
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. | |
SeparateFilesPerStream | Gets a value indicating whether a separate file is created for each stream. | |
Size | Gets or sets the size of the video profile. | |
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. | |
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) | |
Streams | Gets or sets the collection of streams. | |
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 | |
---|---|---|
Clone | Makes a deep copy of the video profile object. | |
Equals | Overloaded. (Inherited from Object ) | |
GetHashCode | (Inherited from Object ) | |
GetType | (Inherited from Object ) | |
ReferenceEquals | (Inherited from Object ) | |
SetAspectRatio | Sets the aspect ratio used to encode the profile. | |
ToString | (Inherited from Object ) |
Top
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object ) | |
MemberwiseClone | (Inherited from Object ) |
Top
Public Events
Name | Description | |
---|---|---|
PropertyChanged | Occurs when a property value changes. (Inherited from EncoderObject) |
Top
See Also
Reference
VideoProfile Class
Microsoft.Expression.Encoder.Profiles Namespace
© 2011 by Microsoft Corporation. All rights reserved.