$pip install videoconcat
from videoconcat import concatenate_video
# needs ffmpeg
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)
)
-
Notifications
You must be signed in to change notification settings - Fork 0
Concatenates videos
License
hansalemaos/videoconcat
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Concatenates videos