/// <summary> /// Initializes a new instance of the <see cref="VideoTrackCodecData"/> class. /// </summary> /// <param name="avcc">The <see cref="AdvancedVideoCodingBox"/> box.</param> /// <param name="width">The track width.</param> /// <param name="height">The track height.</param> public VideoTrackCodecData(AdvancedVideoCodingBox avcc, ushort width, ushort height) { this.FourCodecCode = "H264"; this.DisplayWidth = width; this.DisplayHeight = height; this.Bitrate = 0; this.CodecPrivateData = string.Format("00000001{0}00000001{1}", BitConverter.ToString(avcc.SequenceParameters[0]).Replace("-", ""), BitConverter.ToString(avcc.PictureParameters[0]).Replace("-", "")); }