Video
stegobox.io.video.read(filename)
Read a videocapture from a file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
str
|
The name or path to the video file. |
required |
Returns:
Type | Description |
---|---|
VideoCapture
|
cv2.VideoCapture: a videocapture |
stegobox.io.video.write(img_array, fps, size, filename, encoding='avc1')
Saves a video to the designated file path.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
img_array |
list[ndarray]
|
An encrypted collection of images. |
required |
fps |
int
|
Video frame rate. |
required |
size |
tuple[int, int]
|
Video size. |
required |
filename |
str
|
The designated file path. |
required |
encoding |
str
|
Video file encoding, defaults to "avc1". |
'avc1'
|