Skip to main content

vidtoolz-concat

PyPI Changelog Tests License

Concat videos using ffmpeg

Installation

First install vidtoolz.

pip install vidtoolz

Then install this plugin in the same environment as your vidtoolz application.

vidtoolz install vidtoolz-concat

Usage

type vidtoolz-concat --help to get help

usage: vid concat [-h] [-o OUTPUT] [-s] [-n NSEC] [-i INPUT] [-cd CHANGE_DIR]
                  [-e] [-um]
                  [inputfile]

Concat videos using ffmpeg

positional arguments:
  inputfile             Text file having names of files to concat

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Folder where files are (default: None)
  -s, --section         If given sections Video by `nsec` (default: False)
  -n NSEC, --nsec NSEC  Section Video by `nsec` (default: 500)
  -i INPUT, --input INPUT
                        Input files (default: None)
  -cd CHANGE_DIR, --change-dir CHANGE_DIR
                        if Provided, go to this folder, before anything.
  -e, --encoding        if Provided, Use re-encoding
  -um, --use-moviepy    if Provided, Use moviepy
  -sh, --skipheader     Skip header lines in the input file (default: 0)
  -sf, --skipfooter     Skip footer lines in the input file (default: 0)
  -num, --num NUM       Number of files to read from the input file (default: None, reads all)

Add text to selected clips

An order file can mix plain video paths with CSV rows that add text to a specific clip before concatenation. Plain rows are concatenated unchanged. A text row has six fields:

videofile,text,"the actual text to add",starttime,duration,position

For example, this adds “Hello” to video.mp4 starting at 3 seconds, for 5 seconds, near the upper right corner:

video.mp4,text,"Hello",3,5,top-right

starttime and duration are measured within that clip. Times can be given in seconds or MM:SS / HH:MM:SS form. If the requested text interval runs past the end of the clip, concat warns and shortens the text duration to fit. If the start time is at or past the clip end, it warns and leaves that clip unchanged.

Supported positions:

  • top-left: near the upper left corner
  • top-right: near the upper right corner
  • bottom-left: near the lower left corner
  • bottom-right: near the lower right corner
  • center: centered in the frame
  • bottom: centered along the lower edge

FFmpeg renders text by default. Pass --use-moviepy to use MoviePy for both text rendering and the final concatenation. The sample tests/orderfilewithtext.txt demonstrates mixing plain video rows with text rows.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd vidtoolz-concat
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

python -m pytest

Metadata

Release files for vidtoolz-concat 0.0.4

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

Source distribution (sdist)

Source distribution for vidtoolz-concat 0.0.4
File Size Uploaded Provenance
vidtoolz_concat-0.0.4.tar.gz 16.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vidtoolz-concat 0.0.4
File Interpreter ABI Platform
vidtoolz_concat-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 28.9 kB

Release files / vidtoolz_concat-0.0.4.tar.gz

Download URL vidtoolz_concat-0.0.4.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dfdd545243232a214d5c53e4ea824365af59f732b013422847d1fa890baa0336
BLAKE2b-256 checksum
How to use checksums
6939691cce485912737115cd38713aafd543f0db859d823a131362553296a781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 11, 2026.

Transparency log

Release files / vidtoolz_concat-0.0.4-py3-none-any.whl

Download URL vidtoolz_concat-0.0.4-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2fc46ec7f7ff64ec7e6fec18913e3ecf6201c759eea6e17b1b8b0e37a0901c5e
BLAKE2b-256 checksum
How to use checksums
d23d2da44f391d75b7a0b035458797d5dffc8ad0c1fd945cc705d7eb335ddeb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 11, 2026.

Transparency log

Security for vidtoolz-concat 0.0.4

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 vidtoolz_concat-0.0.4.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 Oct 11, 2026.

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.

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