EncodedVideoFrameInfo
Contains information about externally encoded video frames.
public class EncodedVideoFrameInfo {
public int codecType;
public int width;
public int height;
public int framesPerSecond;
public int frameType;
public int rotation;
public int trackId;
public long captureTimeMs;
public long decodeTimeMs;
public int streamType;
}
Properties
- codecType
-
Note: In certain scenarios, such as when the captured video stream has low resolution or the device performance is limited, the SDK automatically switches to the H.264 codec format.The codec type of the video:
1:VIDEO_CODEC_VP8, VP8.2:VIDEO_CODEC_H264, H.264.3: (default)VIDEO_CODEC_H265, H.265.
- width
- The width of the video frame (in pixels).
- height
- The height of the video frame (in pixels).
- framesPerSecond
- The number of frames per second of the video frame. When this parameter is not
0, you can use it to calculate the Unix timestamp of the externally encoded video frame. - frameType
- The type of the video frame:
0: (default)VIDEO_FRAME_TYPE_BLANK_FRAME, blank frame.3:VIDEO_FRAME_TYPE_KEY_FRAME, key frame.4:VIDEO_FRAME_TYPE_DELTA_FRAME, delta frame.5:VIDEO_FRAME_TYPE_B_FRAME, B frame.6:VIDEO_FRAME_TYPE_UNKNOW, unknown frame.
- rotation
- The rotation angle of the video frame:
0: (default) 0 degrees.90: 90 degrees.180: 180 degrees.270: 270 degrees.
- trackId
- Reserved parameter for future use.
- captureTimeMs
- The Unix timestamp (in milliseconds) when the externally encoded video frame was captured.
- decodeTimeMs
- Output parameter indicating the timestamp (in milliseconds) when the video frame was decoded.
- streamType
- The type of the video stream.