Skip to main content

Resync Chapters by snapping them to Scene Changes.

Project description

ChapSnap

Resync Chapters by snapping them to Scene Changes.

Usage

Usage: chapsnap [OPTIONS] VIDEO [CHAPTERS]

  Snap Chapters to Scene Changes.

  VIDEO       The video file to snap chapters to scene changes. All video formats are
              supported. You may alternatively provide a directory path to process
              video files in batch.
  [CHAPTERS]  Optional chapters file if you want to use chapters from a file
              rather than ones already muxed with the video.

Options:
  -t, --threshold FLOAT  Threshold on Scene Change probability scores. The
                         lower the value, the more unlikely the frame is to be
                         a Scene Change. Range: 0.0 (Impossible) - 1.0
                         (Definite).
  -o, --offset FLOAT     Offset to apply to each Chapter. A negative offset
                         may result in fewer Chapters.
  --trim INTEGER         Remove n Chapters from the start of the Video. A
                         negative value will remove n Chapters from the end of
                         the Video. Timestamps will be offset respectively.
  -nf, --no-forward      Do not try to resync Chapters forward in time.
  -nb, --no-backward     Do not try to resync Chapters backward in time.
  -k, --keyframes        Only sync to Scene Changes on Keyframes (I-frames).
  -0, --zero             Force the first chapter to be at `00:00:00.000`, even
                         after offsets and trims.
  -c, --chain            Chain sync adjustments from one Chapter to the next.
                         E.g., Chapter 1 had -2, so Chapter 2 will begin with
                         an offset of -2. Chapter 2 with -2 has a change of
                         -1, so Chapter 3 will begin with an offset of -3 and
                         so on.
  --overwrite            Apply new Chapters to the input video file in-place,
                         without making a duplicate.
  --help                 Show this message and exit.

Contributors

License

© 2023 rlaphoenix — GNU General Public License, Version 3.0

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

chapsnap-1.2.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

chapsnap-1.2.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file chapsnap-1.2.0.tar.gz.

File metadata

  • Download URL: chapsnap-1.2.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.11 Linux/5.15.0-1036-azure

File hashes

Hashes for chapsnap-1.2.0.tar.gz
Algorithm Hash digest
SHA256 dee74cd9e967eee835c1d9111c151fde86019ce111cbd76e7485a5a603e64d1f
MD5 eafc65ed4e9d05f5d9af15c3eb70334d
BLAKE2b-256 43dc5d444fe197ddc681762d414468e717d2f5eb63725bc33a5d8c0784944384

See more details on using hashes here.

File details

Details for the file chapsnap-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: chapsnap-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.11 Linux/5.15.0-1036-azure

File hashes

Hashes for chapsnap-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 951d22c504da444438c68505bd056a49d81d2335de154f96c9d56f58daf7f126
MD5 cf430f05ecf97074a6ab01b5fc45d54b
BLAKE2b-256 542a6dc23a7325bdd5467a5fe35994e1f1845315b932ef45c82b5af3d12d2573

See more details on using hashes here.

Supported by

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