nicetoolbox.utils.video.read_segments_list_from_file

nicetoolbox.utils.video.read_segments_list_from_file(segments_list_file: str) list[source]

Reads a CSV file containing a list of segments and returns a list of tuples.

Parameters:

segments_list_file (str) – The path to the CSV file containing the list of segments. The CSV file should have columns named ‘file’, ‘start’, and ‘end’.

Returns:

A list of tuples, where each tuple represents a

segment. Each tuple contains the video file name, the start time of the segment, and the end time of the segment.

Return type:

List[Tuple[str, float, float]]