ComfyUI Node

PreView SRT

Read the subtitles you just generated without digging through folders

By AIFSH·Created 2 years ago·Updated about a year ago· 64
PreView SRT
  • srt

    PreView SRT is the "show me what I got" node of the ComfyUI-WhisperX pack. The WhisperX node writes .srt files into your output folder, but who wants to tab out and poke around the file system to check the result? Feed this node an SRT and it renders the whole subtitle file right on the canvas - scrollable, readable, no digging.

    It's a terminal node, the ComfyUI way of saying "this is where the pipeline stops and shows you something." Think of it like the preview nodes you already know from image workflows, just for text files instead of pixels.

    How it works

    Simple under the hood. The node takes an SRT (which, in this pack, is a path to a .srt file), reads the file contents, and returns them as UI data. The heavy lifting is in a bundled frontend extension (previewSRT.js) that catches that data and paints it into a text widget on the node. It also adds two entries to the node's right-click menu:

    • Open preview - opens the SRT file in a new browser tab via ComfyUI's /view endpoint.
    • Save preview - downloads the file directly, which is handy if you just want the file without going into ComfyUI/output.

    Inputs and outputs

    One input, zero outputs:

    • srt - the SRT path. Wire it to ori_SRT or trans_SRT from the WhisperX node and run the graph.

    That's it. If translation is off in WhisperX, both outputs point at the same file, so it doesn't matter which you feed in here.

    Install and notes

    No separate install - it comes with the pack, so if you installed ComfyUI-WhisperX you already have it. The one thing that surprises people: the preview only updates when the node executes, so run the graph first. If you wire it to a WhisperX node and nothing shows, that's why - the SRT file doesn't exist until the upstream node runs and writes it. It's also a pure display node, so it won't help you if you need the text inside the workflow - for that, use SRTToString and let it flow into something else.

    CategoryAIFSH_WhisperX

    Inputs (1)

    NameTypeDefaultDescription
    srtSRT

    Outputs (0)

    No outputs