Skip to content

Why does a valid-looking subtitle file show no cues in a web player?

Reduce the problem to a two-cue WebVTT file and a plain same-origin video element. Confirm that the file is actually retrieved, then check its header, cue boundaries, timestamps and literal text. This separates a parsing failure from a player-loading failure. Renaming an SRT extension does not perform a conversion, and a caption file that opens as text has not yet passed a video playback test.

CAPTION DELIVERY: FILES, TRACKS AND BROWSER BEHAVIORAISwapLab team · Editorial methodPublished 3 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Editorial worksheet excerpt: Retrieval; Structure; Rendering. See the complete table and sources below.
Editorial worksheet excerpt: Retrieval; Structure; Rendering. See the complete table and sources below.

Caption baseline record

The useful artifact is a minimal passing fixture plus one controlled change at a time. A large subtitle export can mix syntax, styling, network and language-selection problems, making random edits hard to interpret. For a Hotel Lobby-inspired duet, begin with neutral test sentences instead of the full performance transcript. That avoids misdiagnosing a long phrase, speaker style or unsupported position setting as a complete loading failure. These are external caption and browser operations, not controls built into AISwapLab.

Build the evidence

  1. 01

    Establish a plain loading baseline

    Serve the MP4, HTML page and VTT from one authorized origin. Use the correct text/vtt response type and inspect the actual response body rather than trusting a filename. A login page or access-denied HTML response can arrive under a .vtt URL. Use visible video controls and select the captions track explicitly during diagnosis so a default-language preference does not hide a valid track.

  2. 02

    Use the smallest valid cue structure

    The sample begins with WEBVTT, a separating blank line, then timed cue blocks. Its timestamps use a period before milliseconds. A normal line break inside cue text differs from a blank line that separates blocks. Keep intentional markup separate from literal characters: the example escapes an ampersand and angle brackets so the words are represented as text. Do not paste arbitrary HTML and assume it becomes caption styling.

  3. 03

    Expand only after the baseline works

    Verify both cues appear at their stated intervals, then replace one cue with a representative real sentence. Add speaker annotation, positioning or styling separately and retest. Save the known-good fixture and a difference note for each failing version. A browser may tolerate some nonconforming text, so successful rendering in one browser does not prove that an authoring export is conformant or portable to every caption destination.

A bounded example

Illustrative diagnosis: the minimal file renders, but the original export ends a cue at an unexpected empty line and contains a comma-based timestamp copied from SRT. Fixing the file structure is relevant in that case. If neither minimal nor original captions are retrieved because the server returns an authorization page, changing punctuation cannot solve it. The example is a documentation fixture; no production browser compatibility test or paid generation was executed for it.

Local diagnostic commands

Documentation fixture only. Save the HTML and VTT portions as separate files and serve them through a local or authorized web origin. No browser matrix, paid generation or upload was executed for this example.

text
<!-- Save as index.html beside an authorized clip.mp4 and captions.vtt. -->
<video controls src="clip.mp4">
  <track kind="captions" srclang="en" label="English test" src="captions.vtt" default>
</video>

<!-- captions.vtt content follows; save it as a SEPARATE UTF-8 file: -->
WEBVTT

00:00:00.500 --> 00:00:02.000
Left &amp; right are ready.

00:00:02.500 --> 00:00:04.500
Show &lt;original&gt; as literal text.

Caption baseline record

LayerPassing evidenceIf it fails
RetrievalActual text/vtt body reaches the pageInspect authorization, URL and response
StructureTwo intended cues are parsedInspect header, timestamps and boundaries
RenderingBoth cues appear at the intended timesInspect track selection and player behavior

Acceptance evidence

  • The actual response contains UTF-8 WebVTT rather than a login or error page.
  • The minimal two-cue fixture loads and displays before complex features are added.
  • Blank lines, timestamp punctuation and literal character escaping are inspected separately.
  • A saved known-good version remains available for regression comparison.

Stop condition

Stop editing the transcript when network evidence shows that the player never received it. Fix the authorized delivery path first. If a destination requires a different caption format, use a real converter and reopen the result there; do not treat a filename change or one tolerant browser as a universal format-validation method.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example