ISCC - Video Processing#
Video handling module
video_meta_extract(fp)
#
Extract video metadata using FFMPEG and FFPROBE
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to video file |
required |
Returns:
Type | Description |
---|---|
Metdata mapped to IsccMeta schema |
video_meta_embed(fp, meta)
#
Embed metadata into a copy of the video file.
Supported fields: name, description, meta, creator, license, aquire
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to source video file |
required | |
meta
|
Metadata to embed into video |
required |
Returns:
Type | Description |
---|---|
Filepath to new video file with updated metadata |
video_thumbnail(fp)
#
Create a thumbnail for a video.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to video file. |
required |
Returns:
Type | Description |
---|---|
bytes
|
Raw PNG byte data |
video_features_extract(fp)
#
Extract video features.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to video file. |
required |
Returns:
Type | Description |
---|---|
A sequence of frame signatures. |
video_mp7sig_extract(fp)
#
Extract MPEG-7 Video Signature.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to video file. |
required |
Returns:
Type | Description |
---|---|
raw signature data |
video_mp7sig_extract_scenes(fp, scene_limit=None)
#
Extract MPEG-7 Video Signature and Scenes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fp
|
Filepath to video file. |
required | |
scene_limit
|
Threshold value above which a scene cut is created (0.4) |
None
|
Returns:
Type | Description |
---|---|
tuple of raw signature data and list of scene cutpoints |
video_parse_scenes(scene_text, scene_limit=None)
#
Parse scene score output from ffmpeg
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scene_text
|
Scene score output from ffmpeg |
required | |
scene_limit
|
Threshold value above which a scene cut is created (0.4) |
None
|
Returns:
Type | Description |
---|---|
Scene cutpoints |
video_compute_granular(frames, scenes)
#
Compute video signatures for individual scenes in video.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
frames
|
List of video frames. |
required | |
scenes
|
List of video scene cutpints. |
required |
Returns:
Type | Description |
---|---|
A dictionary conforming to |