コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the VideoEncoderBase class.
 /// </summary>
 /// <param name="bitrateKbps">The maximum bitrate, in kilobits per
 /// second or Kbps, at which video should be encoded. If omitted,
 /// encoder sets it automatically to try and match the quality of the
 /// input video.</param>
 /// <param name="frameRate">The frame rate (in frames per second) of
 /// the encoded video. The value must be greater than zero, and less
 /// than or equal to 300. If omitted, the encoder uses the average
 /// frame rate of the input video.</param>
 /// <param name="scale">Describes the resolution of the encoded video.
 /// If omitted, the encoder uses the resolution of the input
 /// video.</param>
 public VideoEncoderBase(string bitrateKbps = default(string), string frameRate = default(string), VideoScale scale = default(VideoScale))
 {
     BitrateKbps = bitrateKbps;
     FrameRate   = frameRate;
     Scale       = scale;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the VideoEncoderH264 class.
 /// </summary>
 /// <param name="bitrateKbps">The maximum bitrate, in kilobits per
 /// second or Kbps, at which video should be encoded. If omitted,
 /// encoder sets it automatically to try and match the quality of the
 /// input video.</param>
 /// <param name="frameRate">The frame rate (in frames per second) of
 /// the encoded video. The value must be greater than zero, and less
 /// than or equal to 300. If omitted, the encoder uses the average
 /// frame rate of the input video.</param>
 /// <param name="scale">Describes the resolution of the encoded video.
 /// If omitted, the encoder uses the resolution of the input
 /// video.</param>
 public VideoEncoderH264(string bitrateKbps = default(string), string frameRate = default(string), VideoScale scale = default(VideoScale))
     : base(bitrateKbps, frameRate, scale)
 {
     CustomInit();
 }