Skip to main content

Create a HTML "diff" ebVTT files

Project description

vttdiff

Tests

This is a small utility for "diffing" two (or more) WebVTT files and generating an HTML file like this. It was designed for comparing a "ground truth" WebVTT file with WebVTT files that might have been created with different software or services.

usage: vttdiff [-h] [--output OUTPUT] [--ignore-times] [--sentences] [--width WIDTH] vtt [vtt ...]

positional arguments:
  vtt              The path to two (or more) WebVTT files

options:
  -h, --help       show this help message and exit
  --output OUTPUT  Write output to this file path
  --ignore-times   Ignore cue times in the diff
  --sentences      Reorient lines as sentences
  --width WIDTH    The default width (in characters) of each transcript in the diff

So you could run it like:

% vttdiff --output diff.html first.vtt second.vtt

Install

You should be able to pip install vttdiff:

$ pip3 install vttdiff

or just run it directly:

$ pipx run vttdiff

Develop

vttdiff uses Python's difflib and is held together by duct tape and baling wire. If you have ideas for improving it please send a PR!

$ git clone git@github.com:edsu/vttdiff.git
$ uv run pytest

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

vttdiff-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

vttdiff-0.0.3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file vttdiff-0.0.3.tar.gz.

File metadata

  • Download URL: vttdiff-0.0.3.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.4

File hashes

Hashes for vttdiff-0.0.3.tar.gz
Algorithm Hash digest
SHA256 36ab38f7c8ca943ca9d7838467d84334281ea2ee641c70f4c72f54ef5a5f3782
MD5 d94bf511c7697512e201a07871e649df
BLAKE2b-256 58c3f5a22c405c3ece4613ea2145a8a8a29627306f09abd169faffe56e8433b4

See more details on using hashes here.

File details

Details for the file vttdiff-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: vttdiff-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.4

File hashes

Hashes for vttdiff-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 acfa90e0515a11231818faa24e985821d40a45e0c3819075a4d21e913ae24395
MD5 2675a1cca463bf1bb949957f2811937a
BLAKE2b-256 d959006d7421db1380183fb06f062735c8cb206079ceb138776c858dea205d92

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