Pipeline for Building Interactive Visualizations¶
A pipeline for building an interactive website from media files.
Offers similar functionality to the command line interface from within Python.
-
class
dvt.pipeline.viz.VideoVizPipeline(finput, dirout=None, pipeline_level=2, diff_cutoff=10, cut_min_length=30, frequency=0, path_to_faces=None, path_to_audio=None, path_to_subtitle=None)[source]¶ Bases:
dvt.abstract.PipelineContains a predefined annotators to process an input video file.
-
finput¶ path to the input video file
Type: str
-
dirout¶ output directory. If set to None (default), will be a directory named “dvt-output-data” in the current working directory
Type: str
-
pipeline_level¶ interger code (0, 1, or 2) describing how much data to parse. 0 creates just metadata, 1 creates just images and metadata, 2 or more creates the interactive website
Type: int
-
diff_cutoff¶ difference cutoff value; integer from 0-256; higher values produce fewer cuts.
Type: int
-
cut_min_length¶ minimum length of a detected cut in frames; higher values produce few cuts.
Type: int
-
freq¶ set to a positive integer to select images based on frequency rather than detecting cuts; integer gives frequency of the sampling
Type: int
-
path_to_faces¶ Path to directory containing protype faces (optional). See tutorial on the commandline interface for more details.
Type: str
-
path_to_audio¶ Path to a wav file with audio data. See tutorial on the commandline interface for more details.
Type: str
-
path_to_subtitle¶ Path to a src file with subtitle data. See tutorial on the commandline interface for more details.
Type: str
-