Skip to content

Saves title, author and thumbnail of YouTube videos using Chrome for stream overlays

License

Notifications You must be signed in to change notification settings

ItsLeMax/YouTube-Video-Stream-Text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Video Stream Text

Saves title, author and thumbnail of YouTube videos using Chrome for stream overlays obs

Requirements

...that are necessary:

...that may have working alternatives:

...that have working alternatives:

Setup

  1. Download the source code by clicking on <> Code & Download ZIP and extract its content
    download
  2. Open the root folder and inside it the terminal
    (typing cmd inside the file explorer path works) and execute npm i
    cmd
  3. (Optional) Open /run/config.json and change some settings that you want to change

prependSpaceForOBS adds a space in front of title and author to compensate the spacing at the end of text elements.
prependSpaceForOBS

  1. Run start-chrome.bat inside /run/ first, run-script.cmd right after and follow the guide
  2. Open your broadcasting software and import the files inside /data/ as needed

Step 5 detailed

Inside OBS, you can create an element by right clicking in sources and clicking on add. You may use Text (GDI+) for title.txt and author.txt and Image for thumbnail.jpeg. After entering a unique name, you need to click on Browse and navigate to the downloaded code and /data/ and select the file you desire. Feel free to resize the elements as needed.
browse

Please note, that text elements need to have Read from file checked first.
read

Important

It is highly recommended to fixate the image size for the case that the script uses a low quality backup thumbnail. You can do so by right clicking the Image in sources, hovering on Transform and clicking on Edit Transform... right after. Set Bounding Box Type to Stretch to bounds, the Bounding Box Size to a size you want the image to always have and other settings that you'd like to use as seen in the image.
v3 1

Known Errors and how to fix them

  • Error [ERR_UNKNOWN_BUILTIN_MODULE]: No such built-in module: node:readline/promises
    This error occurs if your node version is not up to date. You can update it using the installer here. If newer versions also throw this error, you may use v22.2.0.