> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Video

[View source](https://github.com/wandb/wandb/blob/main/wandb/sdk/data_types/video.py#L75)

## 클래스 wandb.Video

W\&B에 비디오를 로깅하기 위한 클래스입니다.

```python theme={"system"}
(data_or_path: 'str | pathlib.Path | np.ndarray | TextIO | BytesIO',
caption: 'str | None' = None,
fps: 'int | None' = None,
format: "Literal['gif', 'mp4', 'webm', 'ogg'] | None" = None)
```

## 인수

**data\_or\_path** `str | pathlib.Path | np.ndarray | TextIO | BytesIO`

비디오는 파일 경로나 io 객체로 초기화할 수 있습니다. 비디오는 numpy 텐서로 초기화할 수 있습니다. numpy 텐서는 4차원 또는 5차원이어야 합니다. 차원은 (프레임 수, 채널, 높이, 너비) 또는 (배치, 프레임 수, 채널, 높이, 너비)여야 합니다. numpy 배열이나 io 객체로 초기화할 때는 format 인수로 format 매개변수를 지정해야 합니다.

**caption** `str | None`

표시할 비디오와 연결된 캡션입니다.

**fps** `int | None`

원시 비디오 프레임을 인코딩할 때 사용할 프레임 속도입니다. 기본값은 4입니다. data\_or\_path가 string 또는 바이트인 경우 이 매개변수는 영향을 미치지 않습니다.

**format** `Literal['gif', 'mp4', 'webm', 'ogg'] | None`

비디오 형식으로, numpy 배열이나 io 객체로 초기화하는 경우 필요합니다. 이 매개변수는 비디오 데이터를 인코딩할 때 사용할 형식을 확인하는 데 사용됩니다. 허용되는 값은 "gif", "mp4", "webm" 또는 "ogg"입니다.
