from moviepy.editor import VideoFileClip, CompositeVideoClip, transfx


def clip_duration(file):
    clip = VideoFileClip(file)
    return clip.duration


def concat_video(file, count, td, output):
    d = clip_duration(file)
    video = CompositeVideoClip([VideoFileClip(file).set_start(
        (d * i) - (td * i)).fx(transfx.crossfadein, td * (0 if i == 0 else 1)) for i in range(0, count)])
    video.write_videofile(output)

80bebd8888f745a7427da238a1de064e90b2453b
<mask token>

<mask token>


def clip_duration(file):
    clip = VideoFileClip(file)
    return clip.duration


<mask token>

<mask token>


def clip_duration(file):
    clip = VideoFileClip(file)
    return clip.duration


def concat_video(file, count, td, output):
    d = clip_duration(file)
    video = CompositeVideoClip([VideoFileClip(file).set_start(d * i - td *
        i).fx(transfx.crossfadein, td * (0 if i == 0 else 1)) for i in
        range(0, count)])
    video.write_videofile(output)

from moviepy.editor import VideoFileClip, CompositeVideoClip, transfx


def clip_duration(file):
    clip = VideoFileClip(file)
    return clip.duration


def concat_video(file, count, td, output):
    d = clip_duration(file)
    video = CompositeVideoClip([VideoFileClip(file).set_start(d * i - td *
        i).fx(transfx.crossfadein, td * (0 if i == 0 else 1)) for i in
        range(0, count)])
    video.write_videofile(output)

from moviepy.editor import VideoFileClip, CompositeVideoClip, transfx


def clip_duration(file):
    clip = VideoFileClip(file)
    return clip.duration


def concat_video(file, count, td, output):
    d = clip_duration(file)
    video = CompositeVideoClip([VideoFileClip(file).set_start(
        (d * i) - (td * i)).fx(transfx.crossfadein, td * (0 if i == 0 else 1)) for i in range(0, count)])
    video.write_videofile(output)
