Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Generated VTT files are not standard compliant #72

Description

@KyleMaas

When I first started using this program, I took subtitles and opened them in VLC and it looked fine. But then I tried another program, and they refused to work. Took me quite a while to realize that the output of AutoSub was actually not compliant with the VTT format according to this validator:

https://w3c.github.io/webvtt.js/parser.html

Errors I get include:

You are hopeless, RTFS. (10ms)
1. Line 2: No blank line after the signature.
2. Line 7: Cue identifier cannot be standalone.
3. Line 11: Cue identifier cannot be standalone.
4. Line 15: Cue identifier cannot be standalone.
5. Line 19: Cue identifier cannot be standalone.
6. Line 23: Cue identifier cannot be standalone.
7. Line 27: Cue identifier cannot be standalone.
[many, many more of these]

Unfortunately, I can't share the subtitles that did this. However, it happened with every file I tried. I was able to build a series of sed replacements to run on the AutoSub output file to make it so it passes the validator, but that's quite a hack. I'd recommend trying validation on a file yourself - it was consistently repeatable for me.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions