Nodes/AUN ComfyUI Nodes/Audio Input Options
ComfyUI Node

Audio Input Options

The legacy way to bolt audio onto a video save

By loz2754·Created 8 months ago·Updated about 15 hours ago· 5
Audio Input Options
    • AUDIO_INPUT_OPTIONS
    audio_input_path/path/
    clip_audiofalse
    audio_clip_start_seconds0.00
    audio_clip_duration0.00

    This node is a small piece of ComfyUI archaeology, and the honest first thing to tell you is that you probably don't need it. AudioInputOptions is a deprecated helper that packages an audio file path and some optional trimming settings into a single AUDIO_INPUT_OPTIONS value, which was fed to the old AUNSaveVideo node's audio_options socket to lay a music or voice track over your generated clip. It's still shipped in the pack so old workflows keep loading, but the author says it plainly in the code: prefer passing audio directly to current save/combine nodes.

    If you're loading someone's older workflow and it lights up with a Audio Input Options node connected into a AUN Save Video, here's what it's doing. It carries four inputs bundled into one output: audio_input_path (the file to use), clip_audio (a boolean that turns trimming on), and then audio_clip_start_seconds and audio_clip_duration which set where the clip begins and how long it runs. Turn clip_audio off and the whole file plays; flip it on and you slice the track to fit your video length. The single AUDIO_INPUT_OPTIONS output carries all of that down one wire, which is the whole point of the node - one socket instead of four spaghetti connections.

    The mechanism is gloriously simple: the node deep-copies its kwargs, resolves the audio path against your ComfyUI folder, and hands the dict over. The consuming save node checks whether the file actually exists, clips it with ffmpeg when asked, and muxes it into the output. No magic, no model files, nothing to download.

    If you're starting fresh, skip this node entirely. The modern path for muxing audio is to hand the audio file straight to a current save/combine node - in this pack's world that means the V2 filename builder family, and outside it Video Helper Suite's VHS_VideoCombine has audio handling built in. This node only earns its place when you're maintaining a legacy graph.

    Installation is the same as the rest of the AUN pack: ComfyUI Manager (search "AUN") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
    

    then restart ComfyUI. The pack pulls in piexif, opencv-python-headless, imageio-ffmpeg and requests via its requirements; if you cloned manually and get ModuleNotFoundError: piexif or cv2, run pip install -r custom_nodes/AUN-ComfyUI-Nodes/requirements.txt. For video nodes you also want ffmpeg on your PATH - imageio-ffmpeg from the requirements covers that. The one thing that bites people with legacy audio nodes: if your audio_input_path points at a file that doesn't exist, the node won't error - the save step just quietly skips the audio track. Double-check the path before assuming the muxing failed.

    CategoryAUN Nodes/Deprecated/Video

    Inputs (4)

    NameTypeDefaultDescription
    audio_input_pathSTRING/path/Path to the audio file to use with the video.
    clip_audioBOOLEANfalseEnable to clip the audio to a start time and duration.
    audio_clip_start_secondsFLOAT0.000–3.402823466e+38Start time in seconds for audio clipping (when clip_audio is enabled).
    audio_clip_durationFLOAT0.000–3.402823466e+38Duration in seconds for audio clipping (when clip_audio is enabled).

    Outputs (1)

    NameTypeDescription
    AUDIO_INPUT_OPTIONSAUDIO_INPUT_OPTIONS