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.2.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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vttdiff-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bb6fbb8373333af26bc4b5dd8181f3a0c44abe4df6d590e60644187232629304
MD5 db454b98ee5a25850a98e32c0eedde6a
BLAKE2b-256 c4977d470ca9105a195f93ca543fc59c029b7245b1845a929b2c967cf230ccff

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for vttdiff-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5cd0e1fbdbc2fa6394b24e75e17661b0f9db0e3da0d8b4b7051c1a429d7175
MD5 31e04fe1571f74dad096e4a6bc2c9a47
BLAKE2b-256 75f7058987f7d86f86ba9beb86f205ea439b32f014be989260d2b56ecdb8b6b6

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