Shortcuts

mmcv.video

IO

VideoReader

Video class with similar usage to a list object.

Cache

frames2video

Read the frame images from a directory and join them as a video.

Optical Flow

dequantize_flow

Recover from quantized flow.

flow_from_bytes

Read dense optical flow from bytes.

flow_warp

Use flow to warp img.

flowread

Read an optical flow map.

flowwrite

Write optical flow to file.

quantize_flow

Quantize flow to [0, 255].

sparse_flow_from_bytes

Read the optical flow in KITTI datasets from bytes.

Video Processing

concat_video

Concatenate multiple videos into a single one.

convert_video

Convert a video with ffmpeg.

cut_video

Cut a clip from a video.

resize_video

Resize a video.