ComfyUI Node
DIGIT Batch SRT From Video
Batch transcribe video files in a folder to SRT subtitles using Gemini via Vertex AI.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| video_folder | STRING | Folder containing video files to transcribe. Scans recursively. | |
| file_types | COMBO | all | Which video file types to process. 'all' includes mp4, mov, qt, m4v, mkv, avi, mxf. |
| subtitle_output | COMBO | srt_only | srt_only: sidecar file(s). burn_in_only: hardcode subs into video. both: file(s) + burned-in video. |
| model | COMBO | gemini-2.5-flash | 9 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_mode | COMBO | alongside_video | alongside_video: save next to each video. projekts_auto_srt: save all to project auto_srt folder. |
| overwrite | BOOLEAN | false | Overwrite existing output files. If false, skips videos that already have output. |
| gcp_project_id | STRING | GCP project ID. | |
| gcp_region | STRING | GCP region. | |
| extra_instructionsopt | STRING | — | |
| identify_speakersopt | BOOLEAN | true | Try to identify and label different speakers. |
| pad_framesopt | INT | 00–120 | Extend each subtitle by this many frames on both sides (head and tail). |
| frame_rateopt | FLOAT | 23.9761–120 | Frame rate of the video. Used for pad_frames and snap-to-frame. |
| snap_to_framesopt | BOOLEAN | false | Snap all timestamps to nearest frame boundary. Prevents subtitle flicker on frame-accurate systems. |
| max_chars_per_lineopt | INT | 420–80 | Max characters per subtitle line. 42 = Netflix/broadcast standard. 0 = no enforcement. |
| max_linesopt | INT | 21–4 | Max lines per subtitle entry. Entries exceeding this get split. |
| remove_hallucinationsopt | BOOLEAN | true | Detect and remove repeated/hallucinated subtitle entries. |
| output_formatopt | COMBO | srt | Output format(s). 'all' saves SRT + VTT + ASS + TXT. |
| languageopt | COMBO | auto | Language of the audio. 'auto' lets Gemini detect. Improves accuracy when specified. |
| translate_toopt | COMBO | none | Translate subtitles to this language after transcription. 'none' = no translation. |
| font_nameopt | STRING | Arial | Font family for burn-in subtitles. |
| font_sizeopt | INT | 248–120 | Font size for burn-in subtitles. |
| font_coloropt | COMBO | white | Subtitle text color. |
| outline_coloropt | COMBO | black | Subtitle outline/border color. |
| outline_widthopt | INT | 20–8 | Outline thickness around subtitle text. |
| shadow_depthopt | INT | 10–8 | Shadow depth behind subtitle text. |
| positionopt | COMBO | bottom_center | Where to place subtitles on screen. |
| margin_vopt | INT | 300–200 | Vertical margin from screen edge (pixels at 1080p). |
| delay_secondsopt | FLOAT | 1.00–30 | Delay between API calls to avoid rate limiting. |
| projekts_rootopt | COMBO | 1 options: /root/PROJEKTS | |
| projectopt | COMBO | 1 options: (no projects found) |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| log | STRING | — |
| transcribed_count | INT | — |
| output_folder | STRING | — |