diplomat split_videos
Summary
Split a video into even length segments. This will produce a list of videos with “-part{number}” appended to the original video name in the same directory as the original video.
Usage
diplomat split_videos [-h] --videos PATH|[PATH, ...] [--seconds_per_segment [INT, ...]|INT] [--output_fourcc_string STR] [--output_extension STR]Options
-h, --help show this help message and exit --videos PATH|[PATH, ...], -v PATH|[PATH, ...] Either a single path-like object (string or Path) or a list of path-like objects, being the paths to the videos to split into several segments. --seconds_per_segment [INT, ...]|INT, -sps [INT, ...]|INT An integer or a list of integers. If a single integer, represents the length of each split segment in seconds (Ex. if 30, split the clip every 30 seconds). If a list of integers, represents the locations to split the video at in seconds. The list can be out of order, as it will be automatically sorted. Also, values that are out of range will be ignored. (Ex. if [10, 400, 100, 30], split the video at 10s, 400s, 100s, and 30s]. --output_fourcc_string STR, -ofs STR Optional, the fourcc string to use for output videos. If not specified uses input video fourcc code. --output_extension STR, -oe STR Optional, the file extension to use for output videos (including the dot). Defaults to the input file extension if not specified.