Nodes Browser

ComfyDeploy: How ComfyUI-JaRue works in ComfyUI?

What is ComfyUI-JaRue?

A collection of nodes powering a tensor oracle on a home network with automation

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI-JaRue and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI-JaRue

Takes a YouTube Video ID and pulls a transcript (if available) from the YouTube server and delivers it in a format you can link to AnimatedDiff or any other ComfyUI batch prompt animation.

youtube2prompt

video_id - Find this on any YouTube video by visiting the page and extracting it from the url. If a YouTube video does not have a transcript the tool will give you an error telling you.

fps - Frames per second allows you to reduce a higher-framed YouTube transcript down to 10fps which is more friendly for batch animations in ComfyUI. You will see the frame counts return based on your fps setting.

begin - If you want to start reading the transcript later in the timeline you can enter a starting frame here and the frame counts will adjust. If you do this more than once you need to keep track of the last number and add it to the new number because the begin frame will always start at the beginning of the YouTube video and not at your last begin point.

cache - Enable cache to avoid spamming YouTube. When you disable cache and press queue the prior cache will be deleted and will force the tool to ask YouTube for the transcripts again.

YouTube2Transcript

You will need the YouTube Transcript API Library installed. See link.

https://pypi.org/project/youtube-transcript-api/

After following the install instructions you may discover an error in ComfyUI telling you the library is still not found. To fix this issue you will need to manually copy the api library you installed from your python library into your ComfyUI custom_nodes directory.

There is a Text2Image tool included with this library so you can superimpose the captions on top of the video but i am still working on the code to tie it all together. Right now, you can generate an image with the caption and manually connect that into a batch video.

t2icui

If you have trouble with the library installs you can remove the jru_text2image.py file from the init.py by commenting out the line and rebooting ComfyUI so you can use the YouTube tool.

I cover this node here in a video: https://youtu.be/Si4mwBQuzYQ?si=X306LyKT5NgDvP7a