CivArchive
    ComfyUI ControlNet Video Builder with Masking - v1.2
    NSFW
    Preview 5644202

    I've been too busy to make updates to this project, IH8Antelope has implemented a fix here, go show some love:
    https://civarchive.com/models/420317?modelVersionId=468375

    ComfyUI ControlNet Video Builder with Masking

    Introducing ComfyUI ControlNet Video Builder with Masking for quickly and easily turning any video input into portable, transferable, and manageable ControlNet Videos. Including the most useful ControlNet pre-processors for vid2vid and animate diffusion, you have instant access to Open Pose, Line Art, Depth Map, and Soft Edge ControlNet video outputs with and without background or actor thanks to COCO Segmenter colour masking. In addition to masked ControlNet video's you can output masked video composites, with the included example using Soft Edge over RAW.

    This workflow uses multiple custom nodes, it is recommended you install these using ComfyUI Manager. Output videos can be loaded into ControlNet applicators and stackers using Load Video nodes. Includes project naming for managing project save location.

    Description

    Unhooked the audio pipe that was causing errors when the input video had no audio track.

    Added support for M-LSD straight line ControlNet, useful for background ControlNet videos.

    Added basic instructions to the workflow.

    FAQ

    Comments (11)

    RalFingerJan 14, 2024· 1 reaction
    CivitAI

    Thank you for sharing! This is a great workflow!

    ruminator723Jan 14, 2024· 1 reaction
    CivitAI

    Say I've generated an output video showing the controlnet model move - is there a simple workflow I can upload these videos to? I'm a beginner in comfy and JBOOGX workflow you suggested is too complex for me? I'm guessing other newbie users might need the usecase spelled out for them? Thank you very much for your hard work!!

    bm02Jan 19, 2024· 1 reaction
    CivitAI

    Thank you very much for sharing.

    scraggydogJan 22, 2024· 1 reaction
    CivitAI

    Hi, In the workflow where it says "choose the correct colours" how do I do this please?

    I assumed you meant bypass the colours I didn't want, but this throws an error so got a bit confused, thought I'd just ask.

    walidfluxJan 30, 2024· 1 reaction
    CivitAI

    can you add just remove background to the workflow

    Crimson_IntellectFeb 20, 2024· 1 reaction
    CivitAI

    Thank you for sharing, the WF worked a few days ago but today I got TypeError: Cannot read properties of undefined (reading 'calcNodeInputs')

    Thxx

    walidfluxMar 24, 2024· 1 reaction
    CivitAI

    I updated comfy and frame_rate stared acting up, making a red circle around it and not giving me the outputs, i even tried to regenerate old outputs same issue, any ideas?

    Jon_KingApr 8, 2024
    CivitAI

    I am getting

    Traceback (most recent call last):

    File "/home/jonk/bin/AI/ComfyUI/execution.py", line 151, in recursive_execute

    output_data, output_ui = get_output_data(obj, input_data_all)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/home/jonk/bin/AI/ComfyUI/execution.py", line 81, in get_output_data

    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/home/jonk/bin/AI/ComfyUI/custom_nodes/ComfyUI-0246/utils.py", line 381, in new_func

    res_value = old_func(*final_args, **kwargs)

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/home/jonk/bin/AI/ComfyUI/execution.py", line 74, in map_node_over_list

    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    File "/home/jonk/bin/AI/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite/videohelpersuite/nodes.py", line 369, in combine_video

    output_process.send(image.tobytes())

    File "/home/jonk/bin/AI/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite/videohelpersuite/nodes.py", line 130, in ffmpeg_process

    raise Exception("An error occured in the ffmpeg subprocess:\n" \

    Exception: An error occured in the ffmpeg subprocess:

    [libx264 @ 0x64e7fe3ebf80] height not divisible by 2 (512x911)

    [vost#0:0/libx264 @ 0x64e7fe3ebc40] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    Crimson_IntellectApr 13, 2024
    CivitAI

    can you help for this erorr
    TypeError: Cannot read properties of undefined (reading 'calcNodeInputs')

    AisilingApr 22, 2024
    CivitAI

    Hi, how to use it please? I ran into the error "SyntaxError: Unexpected non-whitespace character after JSON at position 4 (line 1 column 5)"

    ThePuppetApr 26, 2024· 2 reactions
    CivitAI

    Anyone who is having issues with this workflow can download this. https://civitai.com/models/420317?modelVersionId=468375 It is the same workflow but I just removed the nodes that were giving issues. Full credit to MilitantHitchhiker

    Workflows
    Other

    Looks like we don't have an active mirror for this file right now.

    CivArchive is a community-maintained index — we catalog mirrors that volunteers upload to HuggingFace, torrents, and other public hosts. Looks like no one has uploaded a copy of this file yet.

    Some files do get recovered over time through contributions. If you're looking for this one, feel free to ask in Discord, or help preserve it if you have a copy.

    Details

    Downloads
    992
    Platform
    CivitAI
    Platform Status
    Deleted
    Created
    4/24/2025
    Updated
    5/1/2026
    Deleted
    5/6/2025

    Files

    comfyuiControlnetVideo_v12.zip

    Mirrors