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

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube Video Stream Text

Saves title, author and thumbnail of YouTube videos using Chrome for stream overlays 1 0 0-position

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
    npm
  3. (Optional) Open /run/config.json and change some settings that you want to change. 1 3 0-obs_prepend

updateInterval describes an update every specified amount of milliseconds.
prependSpaceForOBS adds a space in front of title and author to compensate the spacing at the end of text elements.
1 3 0-prependSpaceForOBS

  1. Run start-chrome.bat inside /run/ first, run-script.cmd right after and follow the guide.
    1 2 0-batches
  2. Open your broadcasting software and import the files of /data/ as needed. 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.
    1 0 0-elements
    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.
    1 0 0-unique 1 1 0-storage 1 1 0-image
    Feel free to resize the elements as needed.

Please note, that text elements need to have Read from file checked first.
1 0 0-text

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.
1 1 0-transform
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.
1 1 0-stretch

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.