Nodes/NKD Preview Tools/😺NKD Video Viewer
ComfyUI Node

😺NKD Video Viewer

Encodes frames (or a video) and previews the result in a scrubbable, looping viewer with frame-accurate stepping. The file is served raw, so seeking is native rather than a re-streamed approximation.

By Nekodificador·Created 5 months ago·Updated 3 days ago· 33
😺NKD Video Viewer
  • images
  • audio
  • reference
  • video
  • filepath
fps24.00
pingpongfalse
format
save_outputtrue
filename_prefix%project%/%category%/%node%
versioningoff
version1
numberingcounter
filename
Category😺NKD Nodes/Preview

Inputs (12)

NameTypeDefaultDescription
fpsFLOAT24.000.01–1000
pingpongBOOLEANfalsePlay forward then backward, for a seamless loop.
formatCOMBO6 options: [object Object], [object Object], [object Object], [object Object], [object Object], [object Object]
save_outputBOOLEANtrueOff writes to temp/ — a preview you can discard.
filename_prefixSTRING%project%/%category%/%node%Relative to output/. Tokens: %project% and %category% (the active ones, picked in the chip on this node — one click moves every NKD node in the graph), %node% (this node's TITLE — rename the node to SH010_comp and it lands there), %v###% (version, one digit per hash), %res%, %fps%, %frames%, %duration%, %format%, %codec%, %time:HH-mm-ss%, plus ComfyUI's own %date:yyyy-MM-dd% and %Node title.widget%. Tokens work in the folder part too.
versioningCOMBOoffAdds _v001 to the name — no need to type %v###% yourself; spell the token out only to place it elsewhere (a folder) or pad it differently. `auto` takes the next unused version in the target folder. Turning this on also drops ComfyUI's _00001_ counter, which would number the same thing twice. Note that a cached graph does not re-run, so it makes no new version — the render would be identical; use `manual` to force one (and it overwrites, like re-rendering a version in Nuke).
versionINT11–99999Used when versioning is `manual`.
numberingCOMBOcounter`counter` is ComfyUI's _00001_ suffix. `none` gives a clean name - what you want once the version is carrying the uniqueness.
filenameSTRINGSplit the name from the folder: leave this EMPTY and filename_prefix keeps carrying both, exactly as before. Fill it in and filename_prefix becomes the folder only — so you can keep %project%/%category% up there and change how files are named down here without ever touching the project's directory. Same tokens work in both.
imagesoptIMAGE,MASK,VIDEOWhat to encode: an IMAGE batch, a MASK, or a VIDEO to re-encode.
audiooptAUDIOOverrides the audio carried by `video`.
referenceoptIMAGE,MASK,VIDEOThe 'before' for the A/B compare - a video, a batch of frames or a mask. Wiring it beats the global NKD Reference slot: a connection is a statement, the slot is whatever ran last.

Outputs (2)

NameTypeDescription
videoVIDEO
filepathSTRING