https://github.com/haoheliu/video-concatenation
https://github.com/haoheliu/video-concatenation
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/haoheliu/video-concatenation
- Owner: haoheliu
- Created: 2021-06-20T03:05:16.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-20T06:37:36.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T07:46:25.265Z (4 months ago)
- Language: Python
- Size: 29.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# video-concatenation
Make several video into one video, display at the same time.
## Usage
- Use default parameters:```shell
python3 video_stitching.py
```- More customizations:
```shell
python3 video_stitching.py \
-i data/videos \
-o merged.avi
-w 1024 \
--height 400 300 300 \
--number_for_each_row 1 2 2 \
--padding 100 10 10 \
--margin 25 \
--fps 30
```## Things to keep in mind
1. This tool only support .avi format, other format can use ffmpeg to convert to .avi.
2. The *.avi files in argument --input_videos_path will be sorted by name, which determines the order later used in concatenation.
3. The width of output (argument --width) is an integer, while argument --height is a list, corresponding to the height of each row.
4. You can determine the number of video in each row by setting argument --number_for_each_row.
5. To control the black region (margins), you can adjust arguments: --margin and --padding.
6. The duration of output file is determined by the shortest duration of files in --input_videos_path.