Skip to main content

cliparoo

drawing

A video clipper, cutter, and splicer.

install

pip install cliparoo

You need ffmpeg and ffprobe installed. That's it.

cli

Here is an example on how to extract the first 5000 frames of myout.mp4:

cliparoo -i tos_720p.mp4 --input-info --clip 0-4999 -o myout.mp4 --verbose --clip-mode approx_inner --verify

The -i flag sets the input and the -o flag sets the output.

The --clip flag takes the clip range. These can be multiple values joined by commas, which are spliced together. Integers represent frame indexes, floating point values represent times in seconds, and HH:MM:SS.MMMM format videos are similar. Keywords "start" and "end" also work. All clip ranges are inclusive.

The --clip-mode defines how to perform the clip. Values are exact (default), approx_inner, and approx_outer. Approx refers to the handling of time; counterintuitively this means to use a lossless stream copy.

The --verify flag will add additional checks to ensure the output and any temporary files have the correct frames.

The --input-info flag displays information about the video, and the --verbose adds additional fields.

There are other flags, like --dry-run, which you can find with --help.

python

The python library allows for programmatic use. It's pretty simple to use, the ClipRange takes either a string (matching the command line syntax) or a list of integers.

import cliparoo
vid = cliparoo.Video("tos_720p.mp4")
cr = cliparoo.ClipRange(vid, [0, 1, 2, 3, 4, 5]) # same as "0-5"
cr.run("output.mp4", mode="exact")

Metadata

Release files for cliparoo 1.0.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 cliparoo 1.0.0
File Size Uploaded Provenance Actions
cliparoo-1.0.0.tar.gz 26.5 kB With provenance Details for cliparoo-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 38.7 kB

Release files / cliparoo-1.0.0.tar.gz

Download URL cliparoo-1.0.0.tar.gz
Size 26.5 kB
Tags Source
SHA-256 checksum
How to use checksums
86fa65e0a9d29706b8847d8d2b8b4e1d4f10504dc289811ad638958e397c9aed
BLAKE2b-256 checksum
How to use checksums
9640f8f81f08a932c074289a5197b9f00a03e1fec4286adf3639c9df8fd86f27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2025.

Transparency log

Release files / cliparoo-1.0.0-py3-none-any.whl

Download URL cliparoo-1.0.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eac991d2c99b4b802721a03174068afdf69626494588c492c52dbce92191512b
BLAKE2b-256 checksum
How to use checksums
9031877d487d8ae66d1fb63c6e253ead50e06c82e961c39c9e0ae84bd1b63e49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2025.

Transparency log

Security for cliparoo 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cliparoo-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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