Skip to content

Instantly share code, notes, and snippets.

View kageru's full-sized avatar

kageru

View GitHub Profile
@kageru
kageru / snap_scenechanges.py
Last active January 28, 2017 14:16 — forked from FichteFoll/snap_scenechanges.py
Snap start and end times of ASS subtitles to scene changes using WWXD
#!/usr/bin/env python3.6
"""Snap start and end times of ASS subtitles to scene changes using WWXD.
Does not work with variable frame rate (VFR).
usage: snap_scenechanges.py [-h] [--epsilon EPSILON] [-o OUTPUT] [-v]
sub_path video_path