Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vidclip-0.2.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for vidclip-0.2.0.tar.gz
Algorithm Hash digest
SHA256 66e2fa6d299bfbf97b0e975399b4b194c6ace73d1e8cc59b2b7ebe9e168c17cc
MD5 3402a3bc58688ec724449e7566ef728e
BLAKE2b-256 b7711245567f323e81225e446800eaf75a10ea30f718802947f61229e0d34639

See more details on using hashes here.

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

Hashes for vidclip-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 549f650ed937ad70de0f02717eda5ec7b38b1c35333b897efca5a1ca4b627ede
MD5 eeafd45420168420c86650a3c1467e4b
BLAKE2b-256 bcf60a8023807ad6b60454d5ebca50acd44d47bb6bcba0ddc993312302bf85c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page