Trim and merge videos using TOML
Project description
vidclip
Trim and merge videos using TOML.
Installation
$ pip install vidclip
Requires FFmpeg.
Examples
Rendering a TOML Project File
project.toml:
# Video project file for vidclip (https://github.com/makes/vidclip)
# usage: vidclip render <filename>
[output]
path = "./out.mp4"
x = 1920
y = 1080
fps = 29.97
video_codec = "libx264"
crf = 23 # Constant Rate Factor. Lower CRF -> higher quality (x264: 0-51, default 23)
audio_codec = "aac"
audio_bitrate = "256k"
[[clip]]
file = "vid1.mp4" # 30 fps
interval = [ "00:20.222", "00:28.458" ] # 606 - 853
[[clip]]
file = "vid2.mp4"
interval = [ "0", "00:15.560" ]
[[clip]]
file = "vid1.mp4" # 30 fps
interval = [ "36.492", "41.829" ] # 1094 - 1254
[[clip]]
file = "vid3.mov"
interval=[ 0, 10 ]
Render command:
$ vidclip render project.toml output.mp4
Extracting a Clip
$ vidclip extract input.mp4 00:20.222 00:28.458 output.mp4
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vidclip-0.2.0.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vidclip-0.2.0.tar.gz.
File metadata
- Download URL: vidclip-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e2fa6d299bfbf97b0e975399b4b194c6ace73d1e8cc59b2b7ebe9e168c17cc
|
|
| MD5 |
3402a3bc58688ec724449e7566ef728e
|
|
| BLAKE2b-256 |
b7711245567f323e81225e446800eaf75a10ea30f718802947f61229e0d34639
|
File details
Details for the file vidclip-0.2.0-py3-none-any.whl.
File metadata
- Download URL: vidclip-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
549f650ed937ad70de0f02717eda5ec7b38b1c35333b897efca5a1ca4b627ede
|
|
| MD5 |
eeafd45420168420c86650a3c1467e4b
|
|
| BLAKE2b-256 |
bcf60a8023807ad6b60454d5ebca50acd44d47bb6bcba0ddc993312302bf85c7
|