https://github.com/hansalemaos/videoconcat
Concatenates videos
https://github.com/hansalemaos/videoconcat
concat concatenate ffmpeg python video
Last synced: about 2 months ago
JSON representation
Concatenates videos
- Host: GitHub
- URL: https://github.com/hansalemaos/videoconcat
- Owner: hansalemaos
- License: mit
- Created: 2022-12-28T20:19:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T20:22:17.000Z (over 3 years ago)
- Last Synced: 2025-12-16T18:39:53.377Z (6 months ago)
- Topics: concat, concatenate, ffmpeg, python, video
- Language: Python
- Homepage: https://pypi.org/project/videoconcat/
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
Concatenates videos
```python
$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)
)
```