chaptinator
Add chapters on scene changes to videos (e.g. slide changes in presentations)
Install
chaptinator requires ffmpeg to be installed on your system and for it to
be in PATH.
Follow the instructions on https://ffmpeg.org/ and make sure the commands
ffmpeg and ffprobe are available in your favorite shell (bash, zsh,
Powershell, ...).
Then install this package via pip. For a global installation use
sudo pip install chaptinator
and for a user-local installation use
pip install --user chaptinator
Usage
chaptinator VIDEO [-t TITLE] [-a AUTHOR] [-c CHANGE_THRESH] [-s] [-r] [-v] [-o] [-d] [-m METADATA_FILE]
-t TITLE sets the title in the metadata (default: filename)
-a ARTIST sets the artist in the metadata
-c CHANGE "value between 0 and 1 to indicate a new scene; a low value
reflects a low probability for the current frame to introduce a new scene,
while a higher value means the current frame is more likely to be one"
-- https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
-s scales the tagged result video to a height 720 while keeping the aspect
ratio
-r reduces the framerate to 5fps, which is optimal to save bandwidth when
powerpoint slides are the sole video content. Lower values cause problems with
some browser video players
-o activates the ffmpeg tune 'stillimage' that lowers the deblocking filter,
optimizing for still images like slides
-v converts the audio to MP3 with VBR (Variable BitRate) and a quality
setting of 8, which is optimal for speech with relatively long segments of
silence.
(Lame is compiled into the standard ffmpeg library while the Frauenhofer AAC,
which supports VBR, is not)
-d downmixes both audio channels into a single mono audio channel
-m METADATA_FILE disables the cut detection and instead uses the provided
metadata file. This file has to have the structure described in
https://ffmpeg.org/ffmpeg-formats.html#Metadata-1
Example
# increase cut detection threshold to 0.4, scale the video and reduce framerate
chaptinator foo.mp4 -t "Video Title" -a "Author Name" -c 0.4 -s -r
# read cuts from metadata file
chaptinator foo.mp4 -m metadata.txt
Use Cases
chaptinator could be used to add chapters to presentation slides that were
recorded in PowerPoint and exported as video.
But of course it works with any video file that has cuts in it, just adjust
the -c parameter to your preference.
Metadata
Release files for chaptinator 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chaptinator-0.6.tar.gz | 4.7 kB | Without provenance | Details for chaptinator-0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chaptinator-0.6-py3-none-any.whl | Python 3 | none | any | Details for chaptinator-0.6-py3-none-any.whl |
Total release size: 10.7 kB
Release files / chaptinator-0.6.tar.gz
| Download URL | chaptinator-0.6.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
198218b9098cf8019b72d55f117fa4f462fd75a0ab0b045079a0aa0d379f050e
|
|
BLAKE2b-256 checksum How to use checksums |
daecf610eb1609b646db7c4e68bd7318739b8876158a8397c24ab92dd494cc58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / chaptinator-0.6-py3-none-any.whl
| Download URL | chaptinator-0.6-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48a3430c484628bd57012b22bbe0ff6ebd73f8dc29a4231e27eead94649d1fc0
|
|
BLAKE2b-256 checksum How to use checksums |
b6590c9be1ca1bca0083a2ee34b83a79bee241f31b3efc81b5b74d57ccea3b67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Security for chaptinator 0.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.