Skip to main content

Concatenates videos

Project description

Concatenates videos

# needs ffmpeg 

$pip install videoconcat

from videoconcat import concatenate_video



vi = [

    r"C:\Users\Gamer\Videos\tesseract.mp4",

    r"C:\Users\Gamer\Videos\dfbs4.mp4",

    r"C:\Users\Gamer\Videos\yolov5.mp4",

]



concatenate_video(

    video_clip_paths=vi,

    output_path=r"f:\newvi\newvidxx1.mp4",  # if folder doesn't exist, it will be created

    newsize_w=720,

    newsize_h=1080,

    method="reduce",  # resizes all videos

)



concatenate_video(

    video_clip_paths=vi,

    output_path=r"f:\newvi\newvidxx2.mp4",  # if folder doesn't exist, it will be created

    newsize_w=720,

    newsize_h=1080,

    method="compose",  # does not resize videos (black background)

)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videoconcat-0.11.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

videoconcat-0.11-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page