Skip to main content

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

Release files for vidclip 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vidclip 0.2.0
File Size Uploaded
vidclip-0.2.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vidclip 0.2.0
File Interpreter ABI Platform
vidclip-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / vidclip-0.2.0.tar.gz

Download URL vidclip-0.2.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
66e2fa6d299bfbf97b0e975399b4b194c6ace73d1e8cc59b2b7ebe9e168c17cc
BLAKE2b-256 checksum
How to use checksums
b7711245567f323e81225e446800eaf75a10ea30f718802947f61229e0d34639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / vidclip-0.2.0-py3-none-any.whl

Download URL vidclip-0.2.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
549f650ed937ad70de0f02717eda5ec7b38b1c35333b897efca5a1ca4b627ede
BLAKE2b-256 checksum
How to use checksums
bcf60a8023807ad6b60454d5ebca50acd44d47bb6bcba0ddc993312302bf85c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page