Nodes/digit-comfyui/DIGIT Batch SRT From Video
ComfyUI Node

DIGIT Batch SRT From Video

Batch transcribe video files in a folder to SRT subtitles using Gemini via Vertex AI.

By thedepartmentofexternalservices·Created 6 months ago·Updated 6 days ago· 0
DIGIT Batch SRT From Video
    • log
    • transcribed_count
    • output_folder
    video_folder
    file_typesall
    subtitle_outputsrt_only
    modelgemini-2.5-flash
    output_modealongside_video
    overwritefalse
    gcp_project_id
    gcp_region
    extra_instructions
    identify_speakerstrue
    pad_frames0
    frame_rate23.976
    snap_to_framesfalse
    max_chars_per_line42
    max_lines2
    remove_hallucinationstrue
    output_formatsrt
    languageauto
    translate_tonone
    font_nameArial
    font_size24
    font_colorwhite
    outline_colorblack
    outline_width2
    shadow_depth1
    positionbottom_center
    margin_v30
    delay_seconds1.0
    projekts_root
    project
    CategoryDIGIT

    Inputs (30)

    NameTypeDefaultDescription
    video_folderSTRINGFolder containing video files to transcribe. Scans recursively.
    file_typesCOMBOallWhich video file types to process. 'all' includes mp4, mov, qt, m4v, mkv, avi, mxf.
    subtitle_outputCOMBOsrt_onlysrt_only: sidecar file(s). burn_in_only: hardcode subs into video. both: file(s) + burned-in video.
    modelCOMBOgemini-2.5-flash9 options: gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.0-flash, gemini-2.0-flash-lite, gemini-3.1-pro-preview, +3
    output_modeCOMBOalongside_videoalongside_video: save next to each video. projekts_auto_srt: save all to project auto_srt folder.
    overwriteBOOLEANfalseOverwrite existing output files. If false, skips videos that already have output.
    gcp_project_idSTRINGGCP project ID.
    gcp_regionSTRINGGCP region.
    extra_instructionsoptSTRING
    identify_speakersoptBOOLEANtrueTry to identify and label different speakers.
    pad_framesoptINT00–120Extend each subtitle by this many frames on both sides (head and tail).
    frame_rateoptFLOAT23.9761–120Frame rate of the video. Used for pad_frames and snap-to-frame.
    snap_to_framesoptBOOLEANfalseSnap all timestamps to nearest frame boundary. Prevents subtitle flicker on frame-accurate systems.
    max_chars_per_lineoptINT420–80Max characters per subtitle line. 42 = Netflix/broadcast standard. 0 = no enforcement.
    max_linesoptINT21–4Max lines per subtitle entry. Entries exceeding this get split.
    remove_hallucinationsoptBOOLEANtrueDetect and remove repeated/hallucinated subtitle entries.
    output_formatoptCOMBOsrtOutput format(s). 'all' saves SRT + VTT + ASS + TXT.
    languageoptCOMBOautoLanguage of the audio. 'auto' lets Gemini detect. Improves accuracy when specified.
    translate_tooptCOMBOnoneTranslate subtitles to this language after transcription. 'none' = no translation.
    font_nameoptSTRINGArialFont family for burn-in subtitles.
    font_sizeoptINT248–120Font size for burn-in subtitles.
    font_coloroptCOMBOwhiteSubtitle text color.
    outline_coloroptCOMBOblackSubtitle outline/border color.
    outline_widthoptINT20–8Outline thickness around subtitle text.
    shadow_depthoptINT10–8Shadow depth behind subtitle text.
    positionoptCOMBObottom_centerWhere to place subtitles on screen.
    margin_voptINT300–200Vertical margin from screen edge (pixels at 1080p).
    delay_secondsoptFLOAT1.00–30Delay between API calls to avoid rate limiting.
    projekts_rootoptCOMBO1 options: /root/PROJEKTS
    projectoptCOMBO1 options: (no projects found)

    Outputs (3)

    NameTypeDescription
    logSTRING
    transcribed_countINT
    output_folderSTRING