EncodedVideoFrameInfo
Information about external encoded video frames.
public class EncodedVideoFrameInfo
{
public EncodedVideoFrameInfo()
{
codecType = VIDEO_CODEC_TYPE.VIDEO_CODEC_H264;
width = 0;
height = 0;
framesPerSecond = 0;
frameType = VIDEO_FRAME_TYPE_NATIVE.VIDEO_FRAME_TYPE_BLANK_FRAME;
rotation = VIDEO_ORIENTATION.VIDEO_ORIENTATION_0;
trackId = 0;
captureTimeMs = 0;
streamType = VIDEO_STREAM_TYPE.VIDEO_STREAM_HIGH;
}
public EncodedVideoFrameInfo(ref EncodedVideoFrameInfo rhs)
{
codecType = rhs.codecType;
width = rhs.width;
height = rhs.width;
framesPerSecond = rhs.framesPerSecond;
frameType = rhs.frameType;
rotation = rhs.rotation;
trackId = rhs.trackId;
captureTimeMs = rhs.captureTimeMs;
streamType = rhs.streamType;
}
public VIDEO_CODEC_TYPE codecType { set; get; }
public int width { set; get; }
public int height { set; get; }
public int framesPerSecond { set; get; }
public VIDEO_FRAME_TYPE_NATIVE frameType { set; get; }
public VIDEO_ORIENTATION rotation { set; get; }
public int trackId { set; get; }
public int64_t captureTimeMs { set; get; }
public VIDEO_STREAM_TYPE streamType { set; get; }
};
Properties
- codecType
- Video codec type. See VIDEO_CODEC_TYPE. Default is
VIDEO_CODEC_H264 (2). - width
- Width of the video frame (px).
- height
- Height of the video frame (px).
- framesPerSecond
- Frames per second of the video.
When this parameter is not
0, you can use it to calculate the Unix timestamp of the external encoded video frame. - frameType
- Type of the video frame. See VIDEO_FRAME_TYPE.
- rotation
- Rotation information of the video frame. See VIDEO_ORIENTATION.
- trackId
- Reserved parameter.
- captureTimeMs
- Unix timestamp (ms) when the external encoded video frame was captured.
- streamType
- Type of video stream. See VIDEO_STREAM_TYPE.