def concat_videos(input_paths, output_path, verbose=False):
    """Concatenates the given list of videos, in order, into a single video.

    Args:
        input_paths: a list of video paths
        output_path: the path to write the output video
        verbose (False): whether to log the ``ffmpeg`` command that is executed
    """
    with etau.TempDir() as tmp_dir:
        input_list_path = os.path.join(tmp_dir, "input_list.txt")
        with open(input_list_path, "w") as f:
            f.write("\n".join(["file '%s'" % path for path in input_paths]))

        in_opts = ["-f", "concat", "-safe", "0"]
        out_opts = ["-c", "copy"]

        with etav.FFmpeg(in_opts=in_opts, out_opts=out_opts) as ffmpeg:
            ffmpeg.run(input_list_path, output_path, verbose=verbose)
Concatenates the given list of videos, in order, into a single video.

    Args:
        input_paths: a list of video paths
        output_path: the path to write the output video
        verbose (False): whether to log the ``ffmpeg`` command that is executed
    
fiftyone/utils/video.py